/*
 * „Мојот nsOxygen“ - the customer portal on moj.nsoxygen.mk (10062's store, template _nsoxygen-customerportal).
 * nsOxygen brand: orange #FF5A00, navy #1F2A36. Readability first: 15px base, dark text, secondary text #374151 on
 * light backgrounds and #E5E7EB on navy - never a light grey on white.
 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: "Segoe UI", "Noto Sans", Roboto, Arial, sans-serif; font-size: 15px; color: #111827; background: #F4F6F9; }
a { color: #D94C00; }
a:hover { color: #B23E00; }

/* the pages before sign-in: navy, the atom behind the white box */
.portal-auth { min-height: 100vh; background: #1F2A36; position: relative; overflow: hidden; display: flex; flex-direction: column;
	align-items: center; justify-content: center; padding: 40px 16px; }
.portal-auth-atom { position: absolute; top: 50%; left: 50%; width: 640px; max-width: 130vw; transform: translate(-25%, -50%); z-index: 0; pointer-events: none; }
.portal-auth-inner { position: relative; z-index: 1; width: 100%; max-width: 960px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.portal-brand { display: flex; align-items: center; gap: 12px; color: #F9FAFB; text-decoration: none; }
.portal-brand img { width: 44px; height: 44px; border-radius: 8px; }
.portal-brand span { font-size: 22px; font-weight: 600; }
.portal-card { background: #FFFFFF; border-radius: 14px; padding: 32px; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.portal-card h1 { margin: 0; font-size: 24px; font-weight: 600; }
.portal-card p { margin: 0; color: #374151; line-height: 1.5; }
.portal-card p b { color: #111827; }
.portal-field { display: flex; flex-direction: column; gap: 6px; }
.portal-field label { font-weight: 600; font-size: 14px; }
.portal-field input { font-size: 16px; padding: 12px; border: 1px solid #9CA3AF; border-radius: 8px; color: #111827; width: 100%; }
.portal-field input:focus { outline: 2px solid #FF5A00; outline-offset: 1px; border-color: #FF5A00; }
.portal-field-hint { font-size: 13px; color: #374151; }
.portal-button { display: inline-block; background: #FF5A00; color: #FFFFFF; font-weight: 600; font-size: 16px; text-align: center; text-decoration: none;
	padding: 13px 20px; border-radius: 8px; border: none; cursor: pointer; font-family: inherit; }
.portal-button:hover { background: #D94C00; color: #FFFFFF; }
.portal-button-block { width: 100%; }
.portal-button-secondary { background: #1F2A36; }
.portal-button-secondary:hover { background: #2D3B4B; }
.portal-card-footer { font-size: 13px; color: #374151; border-top: 1px solid #D9DEE5; padding-top: 14px; }
.portal-message { border-radius: 8px; padding: 12px 14px; line-height: 1.5; }
.portal-message-error { background: #FEF2F2; border: 1px solid #FCA5A5; color: #991B1B; }
.portal-message-ok { background: #ECFDF3; border: 1px solid #86EFAC; color: #14532D; }
.portal-message-info { background: #EEF6FC; border: 1px solid #BFDBFE; color: #1F2937; }
.portal-auth-footer { font-size: 13px; color: #E5E7EB; }

/* the signed-in shell */
.portal-header { background: #1F2A36; color: #F9FAFB; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 28px; }
.portal-header .portal-brand img { width: 36px; height: 36px; border-radius: 6px; }
.portal-header .portal-brand span { font-size: 19px; }
.portal-header-user { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.portal-header-user-name { text-align: right; }
.portal-header-user-name div:first-child { font-weight: 600; }
.portal-header-user-name div:last-child { font-size: 13px; color: #E5E7EB; }
.portal-logout { color: #F9FAFB; font-size: 14px; border: 1px solid #6B7280; border-radius: 6px; padding: 8px 14px; text-decoration: none; }
.portal-logout:hover { color: #FFFFFF; border-color: #F9FAFB; }
.portal-layout { display: flex; flex-wrap: wrap; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 24px 20px; }
.portal-nav { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; }
.portal-nav a { display: block; padding: 11px 14px; border-radius: 8px; color: #1F2937; text-decoration: none; }
.portal-nav a:hover { background: #E9EDF2; color: #111827; }
.portal-nav a.portal-nav-active { background: #FFE8DB; color: #8A3000; font-weight: 600; }
.portal-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.portal-main h1 { margin: 0; font-size: 28px; font-weight: 600; }
@media (max-width: 760px) {
	.portal-nav { max-width: none; flex-direction: row; flex-wrap: wrap; }
	.portal-header { padding: 12px 16px; }
	.portal-header-user-name { text-align: left; }
}

/* cards and pills of the signed-in pages */
.portal-section { background: #FFFFFF; border: 1px solid #D9DEE5; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.portal-section h2 { margin: 0; font-size: 19px; font-weight: 600; }
.portal-section-dark { background: #1F2A36; color: #F9FAFB; border: none; }
.portal-section-dark .portal-secondary { color: #E5E7EB; }
.portal-offer { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.portal-offer-left { display: flex; flex-direction: column; gap: 6px; min-width: 260px; }
.portal-offer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.portal-eyebrow { font-size: 13px; font-weight: 600; color: #D94C00; text-transform: uppercase; letter-spacing: 0.04em; }
.portal-offer-title { font-size: 22px; font-weight: 600; }
.portal-amount { font-size: 30px; font-weight: 700; }
.portal-secondary { color: #374151; }
.portal-small { font-size: 14px; }
.portal-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-step { border: 1px solid #D9DEE5; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.portal-step-number { width: 34px; height: 34px; border-radius: 50%; background: #1F2A36; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.portal-step-number-done { background: #15803D; }
.portal-step-title { font-weight: 600; font-size: 17px; }
.portal-pill { font-size: 13px; font-weight: 600; border-radius: 12px; padding: 3px 10px; align-self: flex-start; white-space: nowrap; }
.portal-pill-neutral { color: #1F2937; background: #EEF1F5; }
.portal-pill-orange { color: #8A3000; background: #FFE8DB; }
.portal-pill-waiting { color: #78350F; background: #FEF3C7; }
.portal-pill-done { color: #065F46; background: #D1FAE5; }
.portal-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) {
	.portal-steps, .portal-two { grid-template-columns: minmax(0, 1fr); }
	.portal-offer-right { align-items: flex-start; }
}

/* 20261028 Claude: step 3, second half - Профактури и фактури, Лиценци, Препорака, Јадро, Корисници */
.portal-lead { color: #1F2937; max-width: 760px; line-height: 1.5; margin: 0; }
.portal-note { font-size: 14px; color: #374151; max-width: 760px; }
.portal-pill-alert { color: #991B1B; background: #FEE2E2; }
.portal-table-wrap { overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.portal-table th { text-align: left; font-size: 14px; background: #EEF1F5; padding: 10px; border-bottom: 2px solid #9CA3AF; }
.portal-table td { padding: 12px 10px; border-bottom: 1px solid #E5E7EB; vertical-align: top; }
.portal-table .portal-number { text-align: right; white-space: nowrap; font-weight: 600; }
.portal-table .portal-actions { text-align: right; white-space: nowrap; }
.portal-empty { color: #374151; border: 2px dashed #D9DEE5; border-radius: 8px; padding: 22px; text-align: center; }
.portal-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.portal-facts div div:first-child { font-size: 13px; color: #E5E7EB; }
.portal-facts div div:last-child { font-weight: 600; }
.portal-form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.portal-form-row .portal-field { flex: 1 1 220px; }
.portal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portal-field select { font-size: 16px; padding: 12px; border: 1px solid #9CA3AF; border-radius: 8px; color: #111827; background: #FFFFFF; width: 100%; font-family: inherit; }
.portal-field select:focus { outline: 2px solid #FF5A00; outline-offset: 1px; border-color: #FF5A00; }
.portal-button-light { background: #FFFFFF; color: #1F2937; border: 1px solid #9CA3AF; font-size: 14px; padding: 8px 14px; }
.portal-button-light:hover { background: #F4F6F9; color: #111827; }
.portal-button-danger { background: #FFFFFF; color: #B91C1C; border: 1px solid #FCA5A5; font-size: 14px; padding: 8px 14px; }
.portal-button-danger:hover { background: #FEF2F2; color: #991B1B; }
.portal-link-button { background: none; border: none; padding: 0; color: #D94C00; font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit; text-decoration: underline; }
.portal-link-button:hover { color: #B23E00; }
.portal-inline-form { display: inline; margin: 0; }
.portal-code-input { font-size: 18px !important; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.portal-confirm-box { background: #FFF4EC; border: 1px solid #FFB98F; border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.portal-confirm-name { font-size: 21px; font-weight: 600; }
.portal-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.portal-big-code { font-size: 30px; font-weight: 700; letter-spacing: 0.06em; color: #FFFFFF; }
.portal-key { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.portal-key code { flex: 1 1 360px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #F4F6F9; border: 1px solid #D9DEE5;
	border-radius: 8px; padding: 11px; font-size: 14px; color: #111827; }
.portal-licence { border: 1px solid #D9DEE5; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.portal-licence-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.portal-licence-title { font-weight: 600; font-size: 17px; }
.portal-paid-strip { background: #ECFDF3; border: 1px solid #86EFAC; border-radius: 12px; padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 16px;
	align-items: center; justify-content: space-between; }
.portal-paid-strip-title { font-weight: 600; font-size: 17px; color: #14532D; }
.portal-place { display: flex; align-items: center; gap: 10px; }
.portal-nucleus { flex-direction: row; flex-wrap: wrap; gap: 28px; align-items: center; }
.portal-nucleus-grid { display: grid; grid-template-columns: repeat(4, 50px); gap: 10px; }
.portal-nucleus-place { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.portal-nucleus-proton { background: #FF5A00; color: #FFFFFF; }
.portal-nucleus-neutron { background: #1F2A36; color: #FFFFFF; }
.portal-nucleus-proton-free { border: 2px dashed #FF5A00; color: #B23E00; }
.portal-nucleus-neutron-free { border: 2px dashed #1F2A36; color: #1F2A36; }
.portal-nucleus-mine { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px #15803D; }
.portal-nucleus-legend { display: flex; flex-direction: column; gap: 10px; flex: 1 1 280px; }
.portal-nucleus-legend > div { display: flex; align-items: center; gap: 10px; }
.portal-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.portal-choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.portal-choice { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 10px; border: 1px solid #9CA3AF; cursor: pointer; background: #FFFFFF; }
.portal-choice input { width: 20px; height: 20px; margin: 2px 0 0 0; accent-color: #FF5A00; flex: 0 0 auto; }
.portal-choice span { display: flex; flex-direction: column; gap: 6px; }
.portal-choice b { font-size: 17px; }
.portal-choice:has(input:checked) { border: 2px solid #FF5A00; box-shadow: 0 0 0 3px #FFE8DB; }
.portal-consent { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; color: #1F2937; }
.portal-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: #FF5A00; flex: 0 0 auto; }
.portal-logo-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border: 2px dashed #9CA3AF; border-radius: 8px; padding: 12px; }
.portal-logo-box img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #EEF1F5; }
.portal-logo-empty { width: 64px; height: 64px; border-radius: 8px; background: #EEF1F5; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #374151; }
.portal-badge-owner { font-size: 12px; font-weight: 600; color: #FFFFFF; background: #1F2A36; border-radius: 10px; padding: 2px 8px; margin-left: 4px; }
@media (max-width: 760px) {
	.portal-facts, .portal-form-grid, .portal-choice-cards { grid-template-columns: minmax(0, 1fr); }
}

/* 20261029 Claude: „Следен чекор“ on Почетна - the one thing to do now, impossible to miss */
.portal-next { background: #FFF4ED; border: 2px solid #FF5A00; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; color: #111827; }
.portal-next-label { font-size: 13px; font-weight: 700; color: #B23E00; text-transform: uppercase; letter-spacing: 0.05em; }
.portal-next-title { font-size: 22px; font-weight: 700; color: #111827; }
.portal-next-steps { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.portal-next .portal-small { color: #374151; }

/* 20261029 Claude: the number of licences waiting to be entered in a till, on „Лиценци“ in the menu */
.portal-nav-badge { display: inline-block; min-width: 22px; padding: 1px 7px; margin-left: 6px; border-radius: 11px; background: #FF5A00; color: #FFFFFF;
	font-size: 13px; font-weight: 700; text-align: center; line-height: 20px; }

/* 20261029 Claude: „Прашања?“ on Почетна */
.portal-contact-lines { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 19px; font-weight: 600; }
.portal-contact-lines a { color: #111827; text-decoration: none; }
.portal-contact-lines a:hover { color: #B23E00; text-decoration: underline; }
