:root {
    --ink: #17212b;
    --muted: #657282;
    --line: #d8e0e7;
    --soft: #f4f7f9;
    --surface: #ffffff;
    --brand: #0d766e;
    --brand-dark: #075850;
    --accent: #b12c3b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: linear-gradient(180deg, rgba(13, 118, 110, 0.08), rgba(244, 247, 249, 0) 340px), var(--soft);
    font-family: "Segoe UI", Arial, sans-serif;
}

.login-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(7, 88, 80, 0.95), rgba(13, 118, 110, 0.82)),
        url("../IMG/login.webp") center / cover no-repeat;
}

.login-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(9, 24, 31, 0.22);
    pointer-events: none;
}

.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 30px;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 0.72fr);
    gap: 26px;
    width: min(1160px, 100%);
    align-items: stretch;
    min-height: 560px;
}

.login-brand-panel,
.login-panel,
.signup-panel {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(5, 18, 25, 0.32);
}

.login-brand-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 560px;
    padding: 32px;
    color: #ffffff;
    background: rgba(5, 34, 39, 0.5);
    backdrop-filter: blur(16px);
}

.login-brand-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.login-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 286px;
    min-height: 92px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
    box-shadow: 0 18px 38px rgba(4, 22, 26, 0.22);
    backdrop-filter: blur(10px);
}

.login-logo {
    display: block;
    width: 100%;
    max-width: 238px;
    max-height: 68px;
    object-fit: contain;
}

.login-admin-link {
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    padding: 9px 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.12);
}

.login-admin-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.login-brand-copy {
    align-self: center;
    max-width: 610px;
}

.login-kicker,
.login-card-head span,
.signup-head span {
    color: #b9efdf;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-brand-copy h1 {
    margin: 10px 0 14px;
    font-size: clamp(42px, 5.4vw, 70px);
    line-height: 0.98;
    letter-spacing: 0;
}

.login-brand-copy p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.65;
}

.login-flip-wrap {
    min-height: 560px;
    perspective: 1400px;
}

.login-flip-card {
    position: relative;
    min-height: 560px;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.login-flip-wrap.is-flipped .login-flip-card {
    transform: rotateY(180deg);
}

.login-panel {
    padding: 30px;
}

.signup-panel {
    padding: 24px;
}

.login-panel,
.signup-panel {
    background: rgba(255, 255, 255, 0.96);
}

.login-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backface-visibility: hidden;
}

.login-back {
    transform: rotateY(180deg);
}

.login-card-head,
.signup-head {
    margin-bottom: 22px;
}

.login-card-head span,
.signup-head span {
    color: #0d766e;
}

.login-card-head h2,
.signup-head h2 {
    margin: 4px 0 6px;
    color: #111c24;
    font-size: 30px;
    font-weight: 850;
}

.signup-head h2 {
    font-size: 22px;
}

.login-card-head p {
    margin: 0;
    color: #647382;
    font-size: 14px;
}

.login-field {
    display: grid;
    gap: 7px;
    margin-bottom: 15px;
}

.login-field label {
    color: #263746;
    font-size: 13px;
    font-weight: 800;
}

.login-input {
    width: 100%;
    height: 46px;
    border: 1px solid #cfd9e2;
    border-radius: 6px;
    padding: 10px 12px;
    color: #17212b;
    background: #ffffff;
    font: 500 15px "Segoe UI", Arial, sans-serif;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-input:focus {
    border-color: #0d766e;
    box-shadow: 0 0 0 4px rgba(13, 118, 110, 0.12);
}

.login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.login-actions.compact {
    justify-content: flex-end;
    margin-top: 8px;
}

.login-switch-text {
    margin: 18px 0 0;
    color: #647382;
    font-size: 14px;
    text-align: center;
}

.login-switch-text a {
    color: #0d766e;
    font-weight: 900;
    text-decoration: none;
}

.login-switch-text a:hover {
    text-decoration: underline;
}

.login-primary-button,
.login-secondary-button {
    min-height: 44px;
    border-radius: 6px;
    padding: 0 18px;
    font: 800 14px "Segoe UI", Arial, sans-serif;
}

.login-primary-button {
    border: 0;
    color: #ffffff;
    background: #0d766e;
    box-shadow: 0 12px 24px rgba(13, 118, 110, 0.22);
}

.login-secondary-button {
    border: 1px solid #cfd9e2;
    color: #516171;
    background: #ffffff;
}

.signup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
}

.login-page .inline-message,
.login-page .error-message {
    width: min(1160px, 100%);
    margin: 16px auto 0;
    background: rgba(255, 255, 255, 0.96);
}

.dashboard-page {
    background: #f3f6f8;
}

.dashboard-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(216, 224, 231, 0.95);
    padding-bottom: 22px;
}

.dashboard-logo {
    display: block;
    width: min(250px, 72vw);
    max-height: 74px;
    object-fit: contain;
    margin-bottom: 14px;
}

.dashboard-header h1 {
    margin: 4px 0 8px;
    color: #111c24;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1;
}

.dashboard-header p {
    max-width: 720px;
    margin: 0;
    color: #586777;
    line-height: 1.6;
}

.dashboard-user {
    display: grid;
    gap: 4px;
    min-width: 240px;
    border: 1px solid rgba(216, 224, 231, 0.95);
    border-radius: 8px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.06);
}

.dashboard-user span {
    color: #657282;
    font-size: 13px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-card {
    border: 1px solid rgba(216, 224, 231, 0.95);
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(23, 33, 43, 0.055);
}

.dashboard-card h2 {
    margin: 0 0 14px;
    color: #13212c;
    font-size: 19px;
    font-weight: 850;
}

.dashboard-wide {
    margin-top: 16px;
}

.form-stack {
    display: grid;
    gap: 12px;
}

.dashboard-input {
    width: 100%;
    border: 1px solid #cfd9e2;
    border-radius: 6px;
    padding: 10px 12px;
    color: #17212b;
    background: #ffffff;
    font: 500 15px "Segoe UI", Arial, sans-serif;
    outline: none;
}

.dashboard-input:focus {
    border-color: #0d766e;
    box-shadow: 0 0 0 4px rgba(13, 118, 110, 0.12);
}

.dashboard-file {
    width: 100%;
    border: 1px dashed rgba(13, 118, 110, 0.38);
    border-radius: 8px;
    padding: 12px;
    background: #f8fcfb;
}

.dashboard-note {
    margin: 0 0 12px;
    color: #657282;
    font-size: 14px;
    line-height: 1.55;
}

.order-entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px auto;
    gap: 10px;
    align-items: center;
}

.order-cart-grid {
    font-size: 13px;
}

.grid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.grid-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(13, 118, 110, 0.2);
    border-radius: 6px;
    padding: 5px 9px;
    color: #0a6159;
    background: #f8fcfb;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.product-admin-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
}

.product-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.narrow-dashboard {
    max-width: 920px;
}

.admin-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-module-grid a {
    border: 1px solid rgba(216, 224, 231, 0.95);
    border-radius: 8px;
    padding: 14px;
    color: #0a6159;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.05);
    font-weight: 850;
    text-decoration: none;
}

.admin-module-grid a:hover {
    border-color: rgba(13, 118, 110, 0.35);
    background: #f8fcfb;
}

.admin-dx-fields {
    display: grid;
    gap: 15px;
}

.admin-login-page .dxeCaption {
    color: #263746;
    font-size: 13px;
    font-weight: 800;
}

.admin-login-page .dxeTextBoxSys {
    border-radius: 6px;
}

.admin-login-button {
    min-width: 120px;
    border: 0 !important;
    border-radius: 6px !important;
    background: #0d766e !important;
    box-shadow: 0 12px 24px rgba(13, 118, 110, 0.22);
}

.admin-login-button .dxb {
    border-radius: 6px !important;
    padding: 10px 18px !important;
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 800;
}

.admin-login-button input,
.admin-login-button span {
    color: #ffffff !important;
    font-weight: 800;
}

.admin-info-list {
    display: grid;
    gap: 12px;
}

.admin-info-list div {
    border: 1px solid rgba(216, 224, 231, 0.92);
    border-radius: 8px;
    padding: 14px;
    background: #f8fbfb;
}

.admin-info-list strong,
.admin-info-list span {
    display: block;
}

.admin-info-list strong {
    color: #13212c;
    margin-bottom: 4px;
}

.admin-info-list span {
    color: #647382;
    font-size: 14px;
    line-height: 1.5;
}

.registration-page {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0, rgba(244, 247, 249, 0.92) 360px),
        radial-gradient(circle at 12% 12%, rgba(13, 118, 110, 0.08), transparent 30%),
        #f3f6f8;
}

.registration-page .page {
    width: min(1180px, calc(100% - 40px));
    padding: 22px 0 64px;
}

.registration-hero {
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(216, 224, 231, 0.9);
    padding: 8px 0 24px;
}

.registration-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 58px;
}

.registration-logo {
    display: block;
    width: min(255px, 64vw);
    max-height: 72px;
    object-fit: contain;
}

.registration-page .nav-link {
    border: 1px solid rgba(13, 118, 110, 0.22);
    border-radius: 999px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.06);
    white-space: nowrap;
}

.registration-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
    gap: 28px;
    align-items: end;
    padding-top: 24px;
}

.registration-copy h1 {
    max-width: 780px;
    margin: 5px 0 10px;
    color: #111c24;
    font-size: clamp(38px, 5.4vw, 68px);
    line-height: 0.98;
    letter-spacing: 0;
}

.registration-copy p:not(.eyebrow) {
    max-width: 690px;
    margin: 0;
    color: #586777;
    font-size: 17px;
    line-height: 1.65;
}

.application-summary {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(216, 224, 231, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 42px rgba(23, 33, 43, 0.08);
}

.application-summary div {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    min-height: 46px;
    border-radius: 6px;
    padding: 8px 10px;
    background: #f8fafb;
}

.application-summary span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: #0d766e;
    font-size: 12px;
    font-weight: 800;
}

.application-summary strong {
    color: #1a2733;
    font-size: 14px;
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 16px;
    border: 1px solid rgba(216, 224, 231, 0.95);
    border-radius: 8px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(23, 33, 43, 0.05);
}

.step-counter {
    display: inline-flex;
    margin-bottom: 4px;
    color: #0d766e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.step-header h2 {
    margin: 0;
    color: #13212c;
    font-size: 22px;
    line-height: 1.2;
}

.step-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(52px, 1fr));
    gap: 8px;
    width: min(360px, 42vw);
}

.step-track span {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: #dce5eb;
}

.step-track span.is-active {
    background: #0d766e;
}

.application-step {
    display: none;
}

.application-step.is-active {
    display: block;
}

.registration-page .form-section,
.registration-page .success-panel {
    position: relative;
    margin-bottom: 16px;
    padding: 24px;
    border: 1px solid rgba(216, 224, 231, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(23, 33, 43, 0.055);
}

.registration-page .form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #0d766e, #b12c3b);
    opacity: 0.82;
}

.registration-page .form-section h2,
.registration-page .success-panel h2 {
    margin: 0 0 20px;
    color: #13212c;
    font-size: 18px;
    font-weight: 800;
}

.registration-page .grid {
    gap: 16px;
}

.registration-page .company-entry {
    grid-template-columns: 120px 1fr;
    border-color: rgba(216, 224, 231, 0.88);
    background: #f9fbfc;
}

.registration-page .company-entry-title {
    color: #0a6159;
    letter-spacing: 0;
}

.registration-page .dxeBase,
.registration-page .dxeEditArea,
.registration-page .dxeButtonEdit,
.registration-page .dxeTextBox,
.registration-page .dxeMemo,
.registration-page .dxeComboBox,
.registration-page .dxeSpinEdit,
.registration-page .dxeCalendar,
.registration-page .dxeListBox {
    font-family: "Segoe UI", Arial, sans-serif;
}

.registration-page .dxeCaption {
    color: #314353;
    font-size: 13px;
    font-weight: 700;
}

.registration-page .dxeTextBoxSys,
.registration-page .dxeButtonEditSys,
.registration-page .dxeMemoSys {
    border-radius: 6px;
}

.registration-page .upload-grid {
    align-items: stretch;
}

.registration-page .upload-grid > * {
    min-height: 78px;
    border: 1px dashed rgba(13, 118, 110, 0.32);
    border-radius: 8px;
    padding: 12px;
    background: #f8fcfb;
}

.upload-help {
    margin: -8px 0 14px;
    color: #657282;
    font-size: 14px;
    line-height: 1.5;
}

.document-name-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.document-name-list span {
    border: 1px solid rgba(13, 118, 110, 0.18);
    border-radius: 999px;
    padding: 7px 11px;
    color: #0a6159;
    background: #f8fcfb;
    font-size: 13px;
    font-weight: 800;
}

.upload-preview-card {
    display: grid;
    gap: 10px;
}

.upload-preview {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    border: 1px solid #d8e0e7;
    border-radius: 8px;
    padding: 8px;
    color: #415363;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.upload-preview.has-image,
.upload-preview.has-pdf,
.upload-preview.is-invalid {
    display: flex;
}

.upload-preview img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
}

.upload-preview.is-invalid {
    border-color: rgba(177, 44, 59, 0.35);
    color: #9d2634;
    background: #fff7f8;
}

.pdf-badge {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    color: #ffffff;
    background: #b12c3b;
    font-size: 12px;
    font-weight: 900;
}

.registration-page .declaration {
    margin-top: 18px;
    border: 1px solid rgba(216, 224, 231, 0.9);
    border-radius: 8px;
    padding: 12px 14px;
    background: #f9fbfc;
}

.registration-page .submit-bar {
    position: static;
    margin-top: 18px;
    border-color: rgba(13, 118, 110, 0.24);
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.98);
}

.registration-page .submit-bar strong {
    color: #13212c;
}

.registration-page .submit-button {
    min-width: 210px;
    border: 0 !important;
    border-radius: 6px !important;
    background: #0d766e !important;
    box-shadow: 0 12px 24px rgba(13, 118, 110, 0.22);
}

.registration-page .submit-button .dxb {
    border-radius: 6px !important;
    padding: 10px 18px !important;
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 800;
}

.registration-page .submit-button input,
.registration-page .submit-button span {
    color: #ffffff !important;
    font-weight: 800;
}

.step-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.step-button {
    min-height: 44px;
    border: 1px solid rgba(13, 118, 110, 0.28);
    border-radius: 6px;
    padding: 0 18px;
    font: 800 14px "Segoe UI", Arial, sans-serif;
    cursor: pointer;
}

.step-button.secondary {
    color: #0a6159;
    background: #ffffff;
}

.step-button.primary,
.registration-page .next-step-button {
    color: #ffffff !important;
    background: #0d766e !important;
    box-shadow: 0 12px 24px rgba(13, 118, 110, 0.18);
}

.registration-page .next-step-button {
    border: 0 !important;
    border-radius: 6px !important;
}

.registration-page .next-step-button .dxb {
    border-radius: 6px !important;
    padding: 10px 18px !important;
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 800;
}

.registration-page .next-step-button input,
.registration-page .next-step-button span {
    color: #ffffff !important;
    font-weight: 800;
}

.home-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 28px;
    align-items: center;
    min-height: 330px;
    padding: 22px 0 26px;
}

.home-copy {
    display: grid;
    justify-items: start;
}

.home-logo {
    width: min(310px, 80vw);
    max-height: 90px;
    object-fit: contain;
    margin-bottom: 18px;
}

.home-visual {
    overflow: hidden;
    border: 1px solid rgba(216, 224, 231, 0.8);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(23, 33, 43, 0.12);
}

.home-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.home-copy h1 {
    margin: 4px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
    letter-spacing: 0;
}

.home-copy p:not(.eyebrow) {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.admin-home-link {
    margin-top: 18px;
}

.page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 22px 0 18px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(145deg, var(--brand), var(--brand-dark));
    box-shadow: 0 12px 30px rgba(13, 118, 110, 0.24);
    font-weight: 800;
}

.small-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 2px 0 8px;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1;
    letter-spacing: 0;
}

.hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.form-section,
.success-panel {
    margin-bottom: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 16px 36px rgba(23, 33, 43, 0.06);
}

.form-section h2,
.success-panel h2 {
    margin: 0 0 18px;
    font-size: 20px;
}

.success-panel {
    border-color: rgba(13, 118, 110, 0.28);
    background: #f6fbfa;
}

.success-panel p {
    margin: 8px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 14px;
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.one {
    grid-template-columns: 1fr;
}

.grid > * {
    min-width: 0;
}

.company-list {
    display: grid;
    gap: 12px;
}

.company-entry {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    align-items: end;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.company-entry-title {
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
}

.territories-grid {
    margin-top: 14px;
}

.upload-grid .dxeBase {
    width: 100%;
}

.declaration {
    display: block;
    margin-top: 16px;
}

.error-message {
    margin-top: 14px;
    border: 1px solid rgba(177, 44, 59, 0.28);
    border-radius: 8px;
    padding: 12px 14px;
    color: #8b1f2b;
    background: #fff5f6;
    font-weight: 700;
}

.submit-bar {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(23, 33, 43, 0.14);
}

.submit-bar div {
    display: grid;
    gap: 2px;
}

.submit-bar span {
    color: var(--muted);
    font-size: 14px;
}

.submit-button {
    min-width: 190px;
}

.portal-page {
    max-width: 980px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.home-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(23, 33, 43, 0.08);
}

.primary-panel {
    border-color: rgba(13, 118, 110, 0.32);
    background: #f8fcfb;
}

.home-card-head {
    margin-bottom: 18px;
}

.home-card-head h2 {
    margin: 2px 0 0;
    font-size: 24px;
}

.home-card-kicker {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
}

.verification-actions {
    display: flex;
    gap: 10px;
    align-items: end;
    justify-content: flex-start;
}

.cookie-panel {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid rgba(13, 118, 110, 0.25);
    border-radius: 8px;
    background: #f6fbfa;
}

.cookie-panel span {
    color: var(--muted);
    font-size: 14px;
}

.top-actions {
    justify-content: space-between;
    margin: 0 0 14px;
}

.text-link {
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.hero-link {
    display: inline-block;
    margin-top: 10px;
}

.data-grid {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.data-grid th,
.data-grid td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-grid th {
    color: #ffffff;
    background: var(--brand-dark);
    font-size: 13px;
}

.print-page {
    min-height: 100vh;
    background: #eef3f5;
}

.print-shell {
    width: min(940px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.print-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.order-print-card {
    border: 1px solid rgba(216, 224, 231, 0.95);
    border-radius: 8px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(23, 33, 43, 0.08);
}

.order-print-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    border-bottom: 2px solid #0d766e;
    padding-bottom: 18px;
    margin-bottom: 22px;
}

.order-print-header img {
    width: 230px;
    max-height: 82px;
    object-fit: contain;
}

.order-print-header h1 {
    margin: 0 0 6px;
    color: #111c24;
    font-size: 32px;
    line-height: 1.1;
}

.order-print-header p {
    margin: 0;
    color: #586777;
}

.order-print-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.order-print-meta div {
    border: 1px solid #d8e0e7;
    border-radius: 6px;
    padding: 10px 12px;
    background: #f9fbfc;
}

.order-print-meta span {
    display: block;
    margin-bottom: 3px;
    color: #667583;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.order-print-meta strong {
    color: #13212c;
    font-size: 14px;
}

.order-print-details {
    margin: 0;
    border: 1px solid #d8e0e7;
    border-radius: 8px;
    padding: 18px;
    color: #17212b;
    background: #ffffff;
    font: 500 14px/1.7 "Segoe UI", Arial, sans-serif;
    white-space: pre-wrap;
}

.order-print-footer {
    margin-top: 22px;
    color: #657282;
    font-size: 13px;
    text-align: right;
}

.spaced-control,
.inline-message {
    margin-top: 14px;
}

@media (max-width: 900px) {
    .login-shell {
        padding: 20px;
    }

    .login-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .login-flip-wrap,
    .login-flip-card {
        min-height: 560px;
    }

    .grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-hero {
        grid-template-columns: 1fr;
    }

    .registration-hero-content {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .application-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .application-summary div {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .step-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .step-track {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .login-shell {
        padding: 12px;
    }

    .login-brand-panel,
    .login-panel,
    .signup-panel {
        padding: 18px;
    }

    .login-flip-wrap,
    .login-flip-card {
        min-height: 590px;
    }

    .login-brand-panel {
        min-height: auto;
        gap: 34px;
    }

    .login-logo-wrap {
        width: 100%;
        justify-content: center;
    }

    .login-brand-top,
    .login-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .login-admin-link,
    .login-primary-button,
    .login-secondary-button {
        width: 100%;
        text-align: center;
    }

    .login-brand-copy h1 {
        font-size: 40px;
    }

    .dashboard-shell {
        width: min(100% - 24px, 1220px);
        padding-top: 14px;
    }

    .dashboard-header,
    .dashboard-grid,
    .order-entry-grid,
    .order-print-meta,
    .product-admin-grid,
    .product-form-grid,
    .admin-module-grid {
        grid-template-columns: 1fr;
    }

    .order-print-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-header {
        display: grid;
    }

    .dashboard-user {
        min-width: 0;
    }

    .page {
        width: min(100% - 24px, 1120px);
        padding-top: 12px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-shell {
        width: min(100% - 24px, 1180px);
        padding-top: 16px;
    }

    .home-hero {
        min-height: 0;
        gap: 18px;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .form-section,
    .success-panel {
        padding: 16px;
    }

    .grid.two,
    .grid.three,
    .portal-grid,
    .home-grid {
        grid-template-columns: 1fr;
    }

    .company-entry {
        grid-template-columns: 1fr;
    }

    .submit-bar {
        position: static;
        display: grid;
    }

    .submit-button {
        width: 100%;
        min-width: 0;
    }

    .registration-page .page {
        width: min(100% - 24px, 1180px);
        padding-top: 10px;
    }

    .registration-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .registration-logo {
        width: min(235px, 76vw);
    }

    .registration-page .nav-link {
        width: 100%;
        text-align: center;
    }

    .registration-hero-content {
        gap: 18px;
        padding-top: 16px;
    }

    .registration-copy h1 {
        font-size: 40px;
    }

    .application-summary {
        grid-template-columns: 1fr;
    }

    .step-header {
        padding: 14px;
    }

    .step-header h2 {
        font-size: 20px;
    }

    .registration-page .form-section,
    .registration-page .success-panel {
        padding: 18px;
    }

    .registration-page .form-section::before {
        left: 18px;
        right: 18px;
    }

    .registration-page .company-entry {
        grid-template-columns: 1fr;
    }

    .registration-page .submit-bar {
        position: static;
    }

    .step-actions,
    .step-button,
    .registration-page .next-step-button,
    .registration-page .submit-button {
        width: 100%;
    }
}

@media print {
    .print-page {
        background: #ffffff;
    }

    .print-shell {
        width: 100%;
        padding: 0;
    }

    .print-toolbar {
        display: none;
    }

    .order-print-card {
        border: 0;
        box-shadow: none;
        padding: 0;
    }
}
