/* Shared brand foundation. Local font files: see fonts/*-OFL.txt. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/Manrope-Variable.ttf") format("truetype"); }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Tajawal-Regular.ttf") format("truetype"); }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/Tajawal-Medium.ttf") format("truetype"); }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/Tajawal-Bold.ttf") format("truetype"); }
:root {
    --ui-font: "Manrope", "Tajawal", Tahoma, Arial, sans-serif;
    --ui-ink: #18323b;
    --ui-muted: #526970;
    --ui-accent: #007b88;
    --ui-accent-dark: #005e69;
    --ui-soft: #eaf5f5;
    --ui-line: #dce7e9;
    --ui-background: #f5f8f8;
    font-family: var(--ui-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    color: var(--ui-ink);
    background: var(--ui-background);
}
:lang(ar) { --ui-font: "Tajawal", "Manrope", Tahoma, Arial, sans-serif; font-family: var(--ui-font); }
:lang(en) { --ui-font: "Manrope", "Tajawal", Tahoma, Arial, sans-serif; font-family: var(--ui-font); }
body { min-height: 100vh; }
input, select, textarea, button { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }
a { color: var(--ui-accent-dark); text-underline-offset: .22em; }
.container { width: min(100% - 3rem, 80rem); }
.main-content { padding-block: 1.75rem 3rem; }
h1, .page-heading h1, .portal-heading h1, .quote-heading h1, .order-heading h1 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); line-height: 1.4; font-weight: 700; margin-block: 0 .65rem; }
h2 { font-weight: 700; line-height: 1.5; }
p { overflow-wrap: anywhere; }
.description, .portal-heading .description, .muted { font-size: .95rem; color: var(--ui-muted); }
.eyebrow { font-size: .85rem; font-weight: 600; margin-block: 0 .4rem; }
.page-heading, .quote-heading, .order-heading { margin-block: 0 1.25rem; gap: 1rem; }
.page-heading > div { min-width: 0; }
.page-heading p { margin-block: .3rem 0; }
.page-heading h1 { margin-block: .3rem; }
.portal-heading { margin-block-end: 1.25rem; }
.header-content { min-height: 5.5rem; padding-block: .65rem; }
.company-name { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand-logo { display: block; width: 13rem; height: auto; aspect-ratio: 1248 / 420; object-fit: contain; }
.header-actions { gap: .5rem; }
.header-actions form { margin: 0; }
.header-actions :is(.text-link, .link-button, .language-link), .public-header-actions .language-link {
    display: inline-flex; justify-content: center; align-items: center; min-height: 2.65rem;
    padding: .45rem .85rem; border: 1px solid var(--ui-line); border-radius: .6rem;
    background: #fff; color: var(--ui-accent-dark); font-size: .88rem; font-weight: 600; text-decoration: none;
}
.header-actions :is(.text-link, .link-button, .language-link):hover,
.public-header-actions .language-link:hover { background: var(--ui-soft); border-color: #b2d3d7; }
.header-actions [aria-current="page"] { background: var(--ui-soft); border-color: #b2d3d7; }
:where(a, button, summary, input, textarea, select):focus-visible { outline: 3px solid #008e9e; outline-offset: 3px; }
:where(a, button, summary) { touch-action: manipulation; }
.skip-link { position: fixed; z-index: 100; inset-inline-start: .75rem; top: -7rem; width: auto; height: auto; clip: auto; clip-path: none; padding: .75rem 1rem; background: #fff; color: #005e69; border: 2px solid #007b88; border-radius: .5rem; }
.skip-link:focus { top: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* Compact sizing is shared; semantic validation, disabled and danger states remain intact. */
.button, .primary-button, .contact-button, .home-button, .order-form button, .order-filter button, .catalog-search button {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 2.75rem; padding: .55rem 1rem; border-radius: .55rem;
    font-size: .92rem; font-weight: 700; line-height: 1.5; text-decoration: none; cursor: pointer;
}
.button, .primary-button, .contact-button { background: var(--ui-accent); color: #fff; border: 1px solid var(--ui-accent); }
.button.secondary { background: #fff; color: var(--ui-accent-dark); border-color: #bfd3d7; }
.button:hover, .primary-button:hover, .contact-button:hover { filter: brightness(.95); }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .6; cursor: not-allowed; }
input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=range]):not([type=color]), select, textarea {
    max-width: 100%; min-width: 0; border: 1px solid #b6cbd0; border-radius: .5rem;
    padding: .55rem .75rem; font: inherit; line-height: 1.5; background-color: #fff; color: var(--ui-ink);
}
input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select { min-height: 2.75rem; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: 1.1rem; height: 1.1rem; min-height: 0; flex-shrink: 0; accent-color: var(--ui-accent); }
label { font-size: .94rem; }
.auth-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .auth-form select, .edit-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .edit-form select, .edit-form textarea,
.filter-bar input:not([type=checkbox]):not([type=radio]), .filter-bar select, .quote-grid input:not([type=checkbox]):not([type=radio]), .quote-grid select, .quote-grid textarea,
.request-form select, .request-form textarea, .order-form input:not([type=hidden]):not([type=checkbox]):not([type=radio]), .order-form select, .order-form textarea {
    padding: .55rem .75rem; border-radius: .5rem; line-height: 1.5; min-height: 2.75rem;
}
.auth-card { max-width: 29rem; padding: clamp(1.25rem, 4vw, 2rem); border-color: var(--ui-line); border-radius: 1rem; box-shadow: 0 8px 28px #173a4607; }
.auth-card h1 { font-size: 1.85rem; }
.auth-intro { margin-block: .5rem 1.5rem; font-size: .95rem; }
.auth-form, .profile-fields { gap: 1rem; }
.auth-form small, .edit-form .muted { font-size: .84rem; line-height: 1.6; }
.auth-form label { margin-block-end: .4rem; }
.panel, .portal-panel, .order-panel, .order-card { padding: clamp(1rem, 2vw, 1.5rem); border: 1px solid var(--ui-line); border-radius: .8rem; background: #fff; }
.panel h2, .portal-panel h2, .customer-card h2 { font-size: 1.1rem; }
.edit-form { max-width: 62rem; margin-inline: auto; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-grid > *, .request-form-grid > *, .quote-grid > * { min-width: 0; }
.form-actions { margin-block-start: 1.25rem; gap: .65rem; }
.form-actions > .text-link, .profile-actions > .text-link, .request-actions > .text-link, .order-actions > a,
.filter-bar > .text-link, .order-filter > a, .product-search > a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem .85rem; border: 1px solid #bfd3d7; border-radius: .5rem; background: #fff; color: #005e69; font-size: .9rem; font-weight: 600; text-decoration: none; }
.form-actions > a:hover, .profile-actions > a:hover, .order-actions > a:hover { background: var(--ui-soft); }
.activation-box { margin-block: 1.25rem; padding: .85rem 1rem; }
.activation-box .muted { margin-block: .6rem 0; }
.filter-bar, .order-filter, .product-search { gap: .85rem; }
.filter-bar > div { min-width: 0; }
.filter-bar .grow { flex: 1 1 16rem; }
.filter-bar .check { max-width: 100%; align-items: center; }
.order-filter { background: #fff; border: 1px solid var(--ui-line); border-radius: .8rem; padding: 1.25rem; }
.order-filter > div { flex: 1 1 10rem; min-width: 0; }
.order-filter input, .order-filter select { width: 100%; }
.result-meta { margin-block: 1.1rem .75rem; font-size: .9rem; }
.table-wrap, .order-table { max-width: 100%; overscroll-behavior-inline: contain; }
td, th, .order-table td, .order-table th { padding: .75rem .8rem; line-height: 1.55; font-size: .9rem; }
th { font-size: .83rem; }
td:last-child { white-space: normal; }
tbody tr:hover { background: #f8fbfb; }
.empty-state, .order-empty, .portal-empty { padding: 1.75rem 1.25rem; font-size: .95rem; border-radius: .75rem; }
.empty-state h2 { font-size: 1.1rem; margin-block: 0 .4rem; }
.empty-state p { margin-block: .4rem; }
.pagination, .portal-pagination, .order-pagination { margin-block: 1.1rem 0; font-size: .85rem; }
.details-grid { grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr); gap: .7rem 1.25rem; }
.details-grid dd { min-width: 0; }
.notice, .alert { font-size: .92rem; padding: .85rem 1rem; line-height: 1.7; }
.notice p:first-child { margin-block-start: 0; }
@media (max-width: 680px) {
    .container { width: min(100% - 2rem, 80rem); }
    .main-content { padding-block: 1.25rem 2rem; }
    .header-content { flex-wrap: wrap; gap: .6rem; align-items: center; }
    .brand-logo { width: 11rem; }
    .header-actions { gap: .4rem; }
    .header-actions :is(.text-link, .link-button, .language-link) { padding: .45rem .65rem; }
    .form-grid, .quote-grid, .request-form-grid, .order-columns { grid-template-columns: minmax(0, 1fr); }
    .filter-bar > div { flex-basis: 100%; width: 100%; }
    .details-grid { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
    .details-grid dd { margin-block-end: .65rem; }
    .page-heading { align-items: flex-start; }
    .page-heading .form-actions { width: 100%; }
    .auth-card { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media print {
    .site-header, .workspace-sidebar, .skip-link { display: none !important; }
    .workspace-frame { display: block !important; }
    .container, .main-content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
    body { background: #fff !important; }
}

:is(.auth-form, .filter-bar, .quote-grid, .order-form) input:is([type=checkbox], [type=radio]) { width: 1.1rem; height: 1.1rem; min-height: 0; padding: 0; flex-shrink: 0; }
