/* =========================
   RESET BÁSICO
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    line-height: 1.5;
}

/* =========================
   LAYOUT
========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* =========================
   HEADER / NAV
========================= */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e6ed;
    padding: 16px 24px;
}

.header h1 {
    margin-bottom: 12px;
    font-size: 22px;
    color: #1f2d3d;
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #3498db;
    font-weight: 600;
}

.nav a:hover {
    text-decoration: underline;
}

/* =========================
   MESSAGES
========================= */
.message {
    background-color: #eaf4ff;
    border: 1px solid #bcdcff;
    color: #1f4e79;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 8px;
}

/* =========================
   TITLES
========================= */
h2 {
    margin-bottom: 18px;
    font-size: 28px;
    color: #1f2d3d;
}

h3 {
    margin: 28px 0 12px;
    font-size: 20px;
    color: #2c3e50;
}

p {
    margin-bottom: 12px;
}

/* =========================
   TABLE UI
========================= */
.table-ui {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #e6ecf2;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.table-ui th {
    background-color: #f1f5f9;
    text-align: left;
    padding: 12px;
    font-size: 13px;
    text-transform: uppercase;
    color: #6b7a8c;
    letter-spacing: 0.03em;
}

.table-ui td {
    padding: 12px;
    border-top: 1px solid #e6ecf2;
    vertical-align: middle;
}

.table-ui tbody tr:nth-child(even) {
    background-color: #fafcfe;
}

.table-ui tbody tr:hover {
    background-color: #f4f8fc;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #8a97a6;
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #3498db;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2c80b4;
}

.btn-success {
    background-color: #2ecc71;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #27ae60;
}

.btn-danger {
    background-color: #e74c3c;
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #c0392b;
}

/* =========================
   BADGES
========================= */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-muted {
    background-color: #ecf0f1;
    color: #4b5b6a;
}

.badge-success {
    background-color: #2ecc71;
    color: #ffffff;
}

.badge-warning {
    background-color: #f39c12;
    color: #ffffff;
}

.badge-danger {
    background-color: #e74c3c;
    color: #ffffff;
}
/* =========================
   FORM UI
========================= */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    max-width: 420px;
    padding: 8px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

textarea.form-control {
    min-height: 70px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-checkbox input {
    transform: scale(1.1);
}

/* =========================
   PAGE / DETAIL LAYOUT
========================= */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.page-subtitle {
    color: #6b7a8c;
    margin-top: 4px;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e6ecf2;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.detail-grid {
    display: grid;
    gap: 12px;
}

.detail-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    align-items: center;
}

.detail-label {
    font-weight: 700;
    color: #4b5b6a;
}

.detail-value {
    color: #1f2d3d;
}

.notes-box {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e6ecf2;
}

.notes-box h3,
.notes-box h4 {
    margin-bottom: 8px;
}

.notes-content {
    background-color: #f8fafc;
    border: 1px solid #e6ecf2;
    border-radius: 8px;
    padding: 12px;
}

.info-box {
    margin-top: 16px;
    background-color: #f8fafc;
    border: 1px solid #e6ecf2;
    border-radius: 8px;
    padding: 12px;
    color: #334155;
}

/* =========================
   REQUEST ITEM DETAIL
========================= */
.request-item-card h4 {
    margin-bottom: 6px;
}

.request-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
}

.item-product {
    font-size: 17px;
    font-weight: 600;
    color: #1f2d3d;
    margin: 0;
}

.item-top-actions {
    flex-shrink: 0;
}

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

.stat-card {
    background-color: #f8fafc;
    border: 1px solid #e6ecf2;
    border-radius: 8px;
    padding: 12px;
}

.stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #6b7a8c;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #1f2d3d;
}

.matches-box {
    margin-top: 16px;
}

.external-request-page h3,
.external-request-page .section-card-header,
.external-request-page .request-item-card {
    margin-left: 0;
}

.external-request-page .request-section-title {
    margin: 26px 0 14px;
    padding-left: 0;
}

.external-request-page .request-notes-box {
    margin-top: 18px;
}

.request-notes-card {
    padding: 14px;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    background: #ffffff;
}

.external-request-page .request-notes-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.request-notes-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.request-notes-card .notes-content {
    background: #f8fafc;
    border-color: #d9e2ef;
}

.external-request-items-card {
    margin-top: 22px;
}

.external-request-items-card .request-item-card {
    border: 1px solid #e6ecf2;
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 18px;
    padding: 18px;
}

.external-request-items-card .request-item-card:last-child {
    margin-bottom: 0;
}

.internal-request-summary-card {
    border-top: 4px solid #2563eb;
}

.internal-request-summary-card .section-card-header h3 {
    font-size: 22px;
}

.request-detail-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 16px;
}

.request-detail-summary-grid .stat-value {
    font-size: 16px;
    line-height: 1.35;
}

.internal-request-items-card {
    margin-top: 22px;
}

.internal-request-items-card .request-item-card {
    border: 1px solid #e6ecf2;
    border-radius: 12px;
    box-shadow: none;
    margin-bottom: 18px;
    padding: 18px;
}

.internal-request-items-card .request-item-card:last-child {
    margin-bottom: 0;
}

.request-announced-batches {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid #d9e5f2;
    border-radius: 14px;
    background: #f8fafc;
}

.request-announced-batches .batch-list {
    align-items: flex-start;
    justify-content: flex-start;
}

.request-announced-batches .batch-list:has(.batch-pill:only-child) {
    align-items: flex-start;
}

.request-origin-pill {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 0 0 16px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #eef4fb;
    border: 1px solid #d9e5f2;
    color: #42566f;
    font-size: 13px;
    font-weight: 700;
}

.request-origin-link {
    color: #1e6eda;
    font-weight: 800;
    text-decoration: none;
}

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

.item-actions-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e6ecf2;
}

.action-hint {
    color: #6b7a8c;
    font-size: 14px;
}

.action-hint-success {
    color: #1f7a45;
    font-weight: 600;
}

.page-actions {
    margin-top: 24px;
}

/* =========================
   BUTTON VARIANTS
========================= */
.btn-secondary {
    background-color: #eef2f7;
    color: #2c3e50;
}

.btn-secondary:hover {
    background-color: #dde6ef;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .detail-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .request-item-top {
        flex-direction: column;
    }

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

    .item-actions-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

.request-item-card {
    margin-bottom: 28px; /* mais espaço entre itens */
}

.request-item-card:last-child {
    margin-bottom: 0;
}
/* =========================
   DASHBOARD HERO
========================= */
.dashboard-hero {
    position: relative;
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
    background-image:
        linear-gradient(135deg, rgba(4, 33, 82, 0.88), rgba(8, 67, 145, 0.72)),
        url("/static/images/dashboard-hero.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 12px 30px rgba(20, 40, 80, 0.16);
}

.dashboard-hero-overlay {
    width: 100%;
    height: 100%;
}

.dashboard-hero-content {
    padding: 36px;
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.dashboard-hero h2 {
    color: #ffffff;
    font-size: 40px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 26px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.92);
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    max-width: 560px;
}

.hero-meta-item {
    background-color: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 14px 16px;
}

.hero-meta-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.78);
}

.hero-meta-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* =========================
   DASHBOARD CONTENT
========================= */
.dashboard-grid {
    display: grid;
    gap: 20px;
}

.dashboard-card h3 {
    margin-bottom: 14px;
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.dashboard-card-header h3 {
    margin-bottom: 0;
}

.dashboard-card-header span {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filters-bar .form-group {
    min-width: 180px;
    margin-bottom: 0;
}

.page-section > .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
}

.data-table td {
    color: #25364a;
}

.muted {
    color: #64748b;
}

.mt-3 {
    margin-top: 1rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.summary-grid > div {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.summary-grid strong {
    display: block;
    color: #17324e;
}

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

.choice-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dbe6f1;
    border-radius: 12px;
    background: #ffffff;
    color: #17324e;
    font-weight: 800;
    cursor: pointer;
}

.choice-card input {
    width: 18px;
    height: 18px;
}

.reservation-inline-link {
    display: inline-block;
    margin-top: 8px;
    color: #1f6feb;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.section-card-subsection {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.section-card-subsection h3 {
    margin: 0 0 8px;
}

.section-card-subsection p {
    margin: 0;
    color: #475569;
}

.reservation-pdf-page {
    max-width: 720px;
    margin: 12px auto;
}

.reservation-pdf-card {
    padding: 18px 22px;
    border: 1px solid #dbe6f1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.reservation-pdf-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 10px;
}

.reservation-pdf-header > div {
    width: 100%;
}

.reservation-pdf-header span {
    display: block;
    color: #1f6feb;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.reservation-pdf-header h1 {
    margin: 8px 0 2px;
    color: #10233f;
    font-size: 22px;
}

.reservation-pdf-header p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.reservation-pdf-logo {
    display: block;
    max-width: 180px;
    max-height: 72px;
    margin-bottom: 14px;
}

.reservation-pdf-banner {
    display: block;
    width: min(100%, 650px);
    max-height: 145px;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: cover;
}

.reservation-code-box {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
}

.reservation-code-box span {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.reservation-code-box strong {
    color: #10233f;
    font-size: 20px;
    letter-spacing: 0.08em;
}

.reservation-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.reservation-detail-table th,
.reservation-detail-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.reservation-detail-table th {
    width: 190px;
    color: #475569;
    font-weight: 900;
    background: #f8fafc;
}

.reservation-detail-table td {
    color: #17324e;
}

.reservation-alert-box {
    margin-top: 10px;
    padding: 10px 14px;
    border-left: 4px solid #1f6feb;
    background: #f8fafc;
    color: #475569;
}

.reservation-alert-box strong {
    display: block;
    margin-bottom: 6px;
    color: #17324e;
}

.reservation-alert-box ul {
    margin: 0;
    padding-left: 18px;
}

.reservation-alert-box li {
    margin-bottom: 3px;
    font-size: 12px;
}

.reservation-pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

@media print {
    .no-print,
    header,
    nav,
    .navbar,
    .messages {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .reservation-pdf-page {
        max-width: 100% !important;
        margin: 0 !important;
    }

    .reservation-pdf-card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    @page {
        size: A4;
        margin: 18mm;
    }
}

.pickup-ticket {
    max-width: 720px;
    margin: 0 auto;
}

.ticket-code {
    margin: 20px 0;
    padding: 22px;
    border: 2px dashed #1f6feb;
    border-radius: 14px;
    color: #10233f;
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.ticket-details {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
}

.ticket-details div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.ticket-details dt {
    color: #64748b;
    font-weight: 800;
}

.ticket-details dd {
    margin: 0;
    color: #17324e;
}

@media print {
    .public-header,
    .app-header,
    .sidebar,
    .print-hide {
        display: none !important;
    }

    .pickup-ticket-page {
        margin: 0;
    }

    .pickup-ticket {
        box-shadow: none;
        border: 1px solid #cbd5e1;
    }
}

@media (max-width: 640px) {
    .filters-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filters-bar .form-group {
        min-width: 0;
    }

    .filters-bar .btn {
        width: 100%;
    }

    .ticket-details div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.dashboard-card-actions {
    margin-top: 16px;
}

.dashboard-section {
    margin-top: 2rem;
}

.management-card-admin {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(31,111,235,0.16), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f3f7fb 100%);
    border: 1px solid #dbe6f1;
    box-shadow: 0 22px 60px rgba(15,35,55,0.10);
}

.management-card-admin::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(31,111,235,0.10), transparent 70%);
    pointer-events: none;
}

.management-card-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: #5a7491;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.management-card-admin h2 {
    margin: 0 0 12px;
    color: #1f2f42;
    font-size: 2rem;
    line-height: 1.1;
}

.management-card-admin p {
    max-width: 700px;
    margin: 0 0 22px;
    color: #667b92;
    line-height: 1.7;
}

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

.activity-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid #e6ecf2;
    border-radius: 8px;
    background: #f8fafc;
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.activity-meta span,
.activity-user {
    color: #64748b;
    font-size: 13px;
}

.activity-description {
    color: #17324e;
}

.activity-item a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.activity-item a:hover {
    text-decoration: underline;
}

.activity-date-filter {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.activity-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.activity-summary-card {
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    padding: 1rem;
    background: #ffffff;
}

.activity-summary-card strong {
    display: block;
    font-size: 1.6rem;
    color: #1d4ed8;
}

.activity-summary-card span {
    color: #64748b;
    font-size: 0.9rem;
}

.activity-timeline {
    display: grid;
    gap: 1rem;
}

.activity-timeline-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1rem;
}

.activity-time {
    color: #64748b;
    font-weight: 700;
    padding-top: 1rem;
}

.activity-body {
    border: 1px solid #d9e2ef;
    border-radius: 16px;
    padding: 1rem;
    background: #ffffff;
}

.activity-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.activity-title-row span {
    color: #64748b;
    font-size: 0.9rem;
}

.activity-detail-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 700;
}

.activity-details {
    margin-top: 0.75rem;
}

.activity-details summary {
    cursor: pointer;
}

.activity-detail-list {
    display: grid;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.activity-detail-row {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(140px, 0.8fr) auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.activity-detail-row span {
    color: #64748b;
    font-size: 0.9rem;
}

.activity-detail-row p {
    grid-column: 1 / -1;
    margin: 0;
    color: #334155;
}

.inline-details {
    display: inline-block;
    text-align: center;
}

.inline-details summary {
    cursor: pointer;
}

.interaction-detail-list {
    min-width: 320px;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    text-align: left;
}

.interaction-detail-row {
    display: grid;
    gap: 0.4rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.interaction-detail-row:last-child {
    border-bottom: 0;
}

.request-responses-table th,
.request-responses-table td,
.interaction-summary-table th,
.interaction-summary-table td {
    vertical-align: middle;
}

.interaction-summary-table th,
.interaction-summary-table td {
    text-align: center;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .dashboard-hero {
        min-height: 280px;
    }

    .dashboard-hero-content {
        padding: 24px;
    }

    .dashboard-hero h2 {
        font-size: 30px;
    }

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

    .dashboard-card-header,
    .activity-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-date-filter,
    .activity-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-timeline-item {
        grid-template-columns: 1fr;
    }

    .activity-time {
        padding-top: 0;
    }
}

/* =========================
   OPEN REQUEST LIST TABLE
========================= */

.open-requests-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.open-requests-table th.col-pharmacy {
    width: 15%;
    min-width: 0;
}

.open-requests-table th.col-products {
    width: 24%;
    min-width: 0;
}

.open-requests-table th.col-urgency {
    width: 9%;
    min-width: 0;
    text-align: center;
}

.open-requests-table td.col-urgency {
    text-align: center;
}

.open-requests-table th.col-status {
    width: 11%;
    min-width: 0;
}

.open-requests-table th.col-interaction {
    width: 10%;
    min-width: 0;
}

.open-requests-table th.col-items {
    width: 5%;
    min-width: 0;
}

.open-requests-table th.col-expires-at {
    width: 10%;
    min-width: 0;
}

.open-requests-table th.col-actions,
.open-requests-table td.col-actions {
    width: 16%;
    min-width: 0;
}

.open-requests-table td.col-pharmacy,
.open-requests-table td.col-products,
.open-requests-table td.col-expires-at {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* stack vertical dos botões da coluna ações */

.open-request-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.open-request-actions .btn {
    min-width: 0;
    width: 100%;
}

.open-request-actions form {
    margin: 0;
}

/* botão discreto para "Ver detalhes" */

.btn-outline-soft {
    background-color: #f3f6fa;
    color: #4b2ca3;
    border: 1px solid #dbe3ee;
}

.btn-outline-soft:hover {
    background-color: #e9eef5;
}

/* Centrar nomes das colunas dos pedidos pendentes */
.requests-table th {
    text-align: center;
    vertical-align: middle;
}

.requests-table td:nth-child(1),
.requests-table td:nth-child(4),
.requests-table td:nth-child(5),
.requests-table td:nth-child(6),
.requests-table td:nth-child(7),
.requests-table td:nth-child(8),
.requests-table td:nth-child(9) {
    text-align: center;
}

/* =========================
   AVAILABILITY TABLE
========================= */

.availability-table td:nth-child(1) {
    width: 30%;
    vertical-align: top;
}
.availability-table td {
    vertical-align: middle;
}

.availability-table td:nth-child(6) {
    vertical-align: top;
}
.availability-table .badge-muted {
    background-color: #eef2f7;
    color: #526273;
    font-weight: 600;
}
.availability-table td:nth-child(5),
.availability-table td:nth-child(7),
.availability-table td:nth-child(8),
.availability-table td:nth-child(9),
.availability-table td:nth-child(10) {
    text-align: center;
    white-space: nowrap;
}

.availability-table td:nth-child(6) {
    font-size: 13px;
    color: #4b5b6a;
}

/* =========================
   AVAILABILITY PRODUCT CELL
========================= */

.availability-product-cell {
    min-width: 280px;
    max-width: 360px;
}

.product-summary {
    min-width: 0;
}

.product-summary-code,
.availability-product-main {
    font-size: 15px;
    font-weight: 700;
    color: #1f2d3d;
    margin-bottom: 4px;
    line-height: 1.3;
}

.product-summary-name,
.availability-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #23415f;
    line-height: 1.45;
    margin-bottom: 4px;
}

.product-summary-meta,
.availability-product-meta {
    font-size: 13px;
    color: #6b7a8c;
    line-height: 1.45;
}

.product-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
}

.product-summary-meta span + span::before {
    content: "|";
    margin-right: 8px;
    color: #9aa8b6;
}

.product-summary-extra {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.product-summary-code,
.product-summary-name,
.product-summary-meta {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-cell {
    min-width: 280px;
    max-width: 380px;
    text-align: left;
}

/* =========================
   AVAILABILITY BATCHES
========================= */

.availability-batches-cell {
    min-width: 150px;
    vertical-align: middle !important;
}

.batch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    height: 100%;
}

.availability-batches-cell {
    vertical-align: middle;
}

.batch-list:has(.batch-pill:only-child) {
    align-items: center;
}

.availability-batches-cell .batch-list {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.availability-batches-cell .batch-list:has(.batch-pill:only-child) {
    align-items: center;
}

.availability-table td.availability-batches-cell {
    vertical-align: middle !important;
}

.batch-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background-color: #f3f6fa;
    border: 1px solid #dbe3ee;
    font-size: 13px;
    color: #334155;
    font-weight: 600;
}

.batch-pill-primary {
    background-color: #eaf4ff;
    border-color: #bcdcff;
    color: #1f4e79;
}

.batch-expiry {
    font-weight: 700;
}

.batch-separator {
    color: #8a97a6;
}

.batch-qty {
    font-weight: 700;
}

.text-muted {
    color: #8a97a6;
}

/* =========================
   AVAILABILITY TABLE HEADERS
========================= */

.availability-table th {
    text-align: center;
    vertical-align: middle;
}

.availability-table th:first-child {
    text-align: left;
}

/* Conteúdo: produto à esquerda, resto mais organizado */
.availability-table td:nth-child(2),
.availability-table td:nth-child(3),
.availability-table td:nth-child(5),
.availability-table td:nth-child(6),
.availability-table td:nth-child(7),
.availability-table td:nth-child(8),
.availability-table td:nth-child(9),
.availability-table td:nth-child(10) {
    text-align: center;
    vertical-align: middle;
}

.detail-value .batch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.form-control,
select.form-control,
input.form-control,
textarea.form-control {
    max-width: 520px;
}

#product-results {
    background-color: #ffffff;
    border: 1px solid #e6ecf2;
    border-radius: 8px;
    overflow: hidden;
}

#product-results > div:hover {
    background-color: #f4f8fc;
}

#batch-table .form-control {
    max-width: 100%;
}

#batch-table td {
    vertical-align: middle;
}

#batch-table .btn {
    min-width: 110px;
}

.form-group-product {
    width: 100%;
    max-width: 980px;
}

.form-group-product .product-search-input {
    width: 100%;
    max-width: 980px !important;
    font-weight: 600;
}

.form-group-product .form-control {
    max-width: 980px !important;
}

.product-search-input {
    font-weight: 600;
}

/* =========================
   REQUEST LIST (MINE)
========================= */

.filter-card {
    margin-bottom: 20px;
}

.filter-grid {
    display: grid;
    gap: 16px;
    align-items: end;
}

.filter-grid-requests {
    grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
}

.filter-grid-requests .form-group {
    margin-bottom: 0;
}

.filter-grid-requests .form-control,
.filter-grid-requests select.form-control,
.filter-grid-requests input.form-control {
    max-width: 100%;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.mine-requests-table th.col-id {
    width: 70px;
}

.mine-requests-table th.col-products {
    min-width: 360px;
}

.mine-requests-table th.col-urgency {
    min-width: 110px;
}

.mine-requests-table th.col-status {
    min-width: 150px;
}

.mine-requests-table th.col-items {
    width: 70px;
}

.mine-requests-table th.col-created-by {
    min-width: 130px;
}

.mine-requests-table th.col-created-at {
    min-width: 130px;
}

.mine-requests-table th.col-actions,
.mine-requests-table td.col-actions {
    width: 170px;
}

.request-products-cell {
    line-height: 1.55;
    white-space: normal;
    text-align: left;
}

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

.request-product-list .product-summary + .product-summary {
    padding-top: 12px;
    border-top: 1px solid #e6ecf2;
}

.request-list-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.request-list-actions .btn {
    min-width: 135px;
}

@media (max-width: 900px) {
    .filter-grid-requests {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        grid-column: auto;
    }
}

/* =========================
   MY AVAILABILITY LIST
========================= */

.filter-grid-my-availabilities {
    grid-template-columns: minmax(280px, 2fr) minmax(180px, 1fr) minmax(180px, 1fr);
}

.filter-grid-my-availabilities .form-group {
    margin-bottom: 0;
}

.filter-grid-my-availabilities .form-control,
.filter-grid-my-availabilities select.form-control,
.filter-grid-my-availabilities input.form-control {
    max-width: 100%;
}

.my-availability-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}

.my-availability-table th,
.my-availability-table td {
    vertical-align: middle;
}

.my-availability-table th {
    text-align: center;
    vertical-align: middle;
}

.my-availability-table th.col-product {
    width: 25%;
    min-width: 0;
    text-align: left;
}

.my-availability-table th.col-origin {
    width: 9%;
    min-width: 0;
}

.my-availability-table th.col-type {
    width: 11%;
    min-width: 0;
}

.my-availability-table th.col-quantity {
    width: 8%;
    min-width: 0;
}

.my-availability-table th.col-batches {
    width: 11%;
    min-width: 0;
}

.my-availability-table th.col-status {
    width: 8%;
    min-width: 0;
}

.my-availability-table th.col-expires {
    width: 13%;
    min-width: 0;
}

.my-availability-table th.col-actions,
.my-availability-table td.col-actions {
    width: 15%;
    min-width: 0;
}

.my-availability-product-cell {
    min-width: 0;
    max-width: none;
    width: auto;
}

.my-availability-table .product-summary-code,
.my-availability-table .product-summary-name,
.my-availability-table .product-summary-meta {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.my-availability-table td:nth-child(2),
.my-availability-table td:nth-child(3),
.my-availability-table td:nth-child(4),
.my-availability-table td:nth-child(5),
.my-availability-table td:nth-child(6),
.my-availability-table td:nth-child(7),
.my-availability-table td:nth-child(8) {
    text-align: center;
    vertical-align: middle;
}

.my-availability-table td:nth-child(7) {
    white-space: nowrap;
}

.my-availability-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.my-availability-actions form {
    margin: 0;
}

.my-availability-actions .btn {
    width: 100%;
    min-width: 0;
    text-align: center;
}

@media (max-width: 1100px) {
    .my-availability-table th.col-product {
        min-width: 250px;
    }

    .my-availability-product-cell {
        min-width: 250px;
        max-width: 320px;
    }
}

@media (max-width: 900px) {
    .filter-grid-my-availabilities {
        grid-template-columns: 1fr;
    }
}

/* =========================
   APP SHELL / GLOBAL DEPTH
========================= */

body.app-shell {
    background:
        radial-gradient(circle at 12% 10%, rgba(32, 110, 218, 0.10), transparent 32%),
        radial-gradient(circle at 88% 14%, rgba(12, 67, 145, 0.08), transparent 28%),
        radial-gradient(circle at 82% 88%, rgba(52, 152, 219, 0.07), transparent 30%),
        linear-gradient(180deg, #f4f7fb 0%, #edf3f9 100%);
    background-attachment: fixed;
}

body.auth-shell {
    background:
        radial-gradient(circle at top left, rgba(32, 110, 218, 0.08), transparent 30%),
        linear-gradient(180deg, #f5f7fa 0%, #eef3f8 100%);
    min-height: 100vh;
}

/* =========================
   HEADER / NAV REWORK
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(224, 230, 237, 0.88);
    box-shadow: 0 12px 30px rgba(15, 35, 75, 0.07);
    padding: 14px 24px;
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

body.auth-shell .header-inner {
    grid-template-columns: auto;
}

body.auth-shell.public-shell {
    display: block;
    align-items: initial;
    justify-content: initial;
    min-height: 100vh;
    padding: 0;
}

body.auth-shell.public-shell .header {
    position: relative;
    width: min(1760px, calc(100vw - 32px));
    margin: 16px auto 0;
    padding: 16px 24px;
    background: #ffffff;
    border: 1px solid #dfe8f2;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 35, 55, 0.08);
    backdrop-filter: none;
}

body.auth-shell.public-shell .header-inner {
    width: 100%;
    max-width: none;
    grid-template-columns: auto;
    justify-items: start;
}

body.auth-shell.public-shell .brand-block {
    justify-self: start;
}

body.auth-shell.public-shell .container {
    max-width: none;
    width: 100%;
    padding: 18px 0 56px;
}

@media (max-width: 820px) {
    body.auth-shell.public-shell .header {
        width: min(100%, calc(100vw - 20px));
        margin-top: 10px;
        padding: 14px 16px;
        border-radius: 22px;
    }
}

.brand-block {
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: none;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 22px rgba(30, 110, 218, 0.24);
}

.brand-mark::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(8, 48, 107, 0.80), rgba(30, 110, 218, 0.62)),
        url("/static/images/dashboard-hero.png");
    background-size: cover;
    background-position: center;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 32%);
}

.brand-mark {
    isolation: isolate;
}

.brand-mark span {
    position: relative;
    z-index: 2;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #17324e;
    line-height: 1;
}

.brand-subtitle {
    font-size: 12px;
    font-weight: 600;
    color: #6b7a8c;
    line-height: 1.2;
}

.nav-main {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-main a {
    white-space: nowrap;
    font-size: 15px;
}

.nav-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    white-space: nowrap;
}

.nav a {
    position: relative;
    text-decoration: none;
    color: #2783d6;
    font-weight: 700;
    padding: 8px 0;
    transition: color 0.2s ease, transform 0.15s ease;
}

.nav a:hover {
    text-decoration: none;
    color: #174f8f;
    transform: translateY(-1px);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3498db, #174f8f);
    transition: width 0.22s ease;
}

.nav a:hover::after {
    width: 100%;
}

.logout-form {
    margin: 0;
}

.brand-login-link {
    font-weight: 700;
}

/* =========================
   RESPONSIVE HEADER GRID FIX
========================= */

@media (max-width: 1100px) {

    .header-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .brand-block {
        justify-content: flex-start;
    }

    .nav-main {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .nav-actions {
        justify-content: flex-start;
    }

}

/* =========================
   CONTAINER / SURFACE
========================= */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 24px 40px;
}

/* =========================
   BUTTON POLISH
========================= */

.btn {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #3a9be4 0%, #1e6eda 55%, #11478f 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(30, 110, 218, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #46a5ec 0%, #2574df 55%, #144a95 100%);
    box-shadow: 0 12px 24px rgba(30, 110, 218, 0.28);
}

.btn-secondary {
    background-color: #eef3f8;
    color: #243b53;
    border: 1px solid #dde6ef;
}

.btn-secondary:hover {
    background-color: #e6edf5;
    box-shadow: 0 8px 18px rgba(30, 60, 100, 0.08);
}

.btn-danger {
    background: linear-gradient(135deg, #ef5b49 0%, #e74c3c 100%);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(231, 76, 60, 0.18);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #f16a59 0%, #df4939 100%);
    box-shadow: 0 10px 22px rgba(231, 76, 60, 0.24);
}

.btn-outline-soft {
    background-color: #f7f9fc;
    color: #4b2ca3;
    border: 1px solid #dbe3ee;
}

.btn-outline-soft:hover {
    background-color: #eef3f9;
    box-shadow: 0 8px 18px rgba(50, 70, 110, 0.08);
}

/* =========================
   CARD DEPTH
========================= */

.card {
    background-color: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(230, 236, 242, 0.95);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 14px 36px rgba(18, 40, 72, 0.06);
}

/* =========================
   TABLE SURFACE
========================= */

.table-ui {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid #e6ecf2;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(16, 38, 70, 0.05);
}

.table-ui th {
    background: linear-gradient(180deg, #f7faff 0%, #eef3f8 100%);
}

/* =========================
   MESSAGES
========================= */

.message {
    background: linear-gradient(180deg, #eef7ff 0%, #e8f3ff 100%);
    border: 1px solid #bfdcff;
    color: #1f4e79;
    padding: 13px 15px;
    margin-bottom: 16px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(31, 78, 121, 0.06);
}

/* =========================
   DASHBOARD POLISH
========================= */

.dashboard-hero {
    box-shadow:
        0 24px 50px rgba(14, 44, 96, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.12), transparent 26%),
        radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.08), transparent 24%),
        radial-gradient(circle at 80% 75%, rgba(255, 255, 255, 0.10), transparent 22%);
    pointer-events: none;
}

.dashboard-hero-content {
    position: relative;
    z-index: 1;
}

.hero-meta-item {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* =========================
   LOGIN BASE PREP
========================= */

body.auth-shell .container {
    max-width: 520px;
    padding-top: 56px;
}

/* =========================
   RESPONSIVE HEADER
========================= */

@media (max-width: 768px) {
    .header {
        padding: 16px 18px 14px;
    }

    .header h1 {
        font-size: 21px;
        margin-bottom: 12px;
    }

    .container {
        padding: 22px 16px 34px;
    }
}

/* =========================
   PAGE HERO (REUSABLE)
========================= */

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 24px;
    background:
        linear-gradient(135deg, rgba(8, 48, 107, 0.94), rgba(18, 87, 170, 0.84)),
        url("/static/images/dashboard-hero.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 22px 46px rgba(14, 44, 96, 0.16);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 24%, rgba(255, 255, 255, 0.10), transparent 24%),
        radial-gradient(circle at 74% 34%, rgba(255, 255, 255, 0.08), transparent 22%),
        radial-gradient(circle at 80% 78%, rgba(255, 255, 255, 0.08), transparent 18%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    padding: 28px 32px;
    color: #ffffff;
}

.page-hero-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82);
}

.page-hero-title {
    margin: 0 0 10px;
    font-size: 38px;
    line-height: 1.08;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.page-hero-subtitle {
    margin: 0;
    max-width: 760px;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.page-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.page-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.page-hero-pill-label {
    color: rgba(255, 255, 255, 0.74);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 11px;
}

.page-hero + .page-header {
    margin-top: -2px;
}

@media (max-width: 768px) {
    .page-hero-content {
        padding: 24px 22px;
    }

    .page-hero-title {
        font-size: 30px;
    }

    .page-hero-subtitle {
        font-size: 15px;
    }

    .page-hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   NETWORK AVAILABILITY LIST
========================= */

.filter-grid-network-availability {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.filter-grid-network-availability .form-group {
    margin-bottom: 0;
}

.filter-grid-network-availability .form-control,
.filter-grid-network-availability select.form-control,
.filter-grid-network-availability input.form-control {
    max-width: 100%;
}

.status-pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.section-card-header {
    margin-bottom: 14px;
}

.section-card-header h3 {
    margin: 0 0 6px;
}

.section-card-subtitle {
    margin: 0;
    color: #6b7a8c;
    font-size: 14px;
}

.network-availability-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 140px;
}

.network-availability-actions form {
    margin: 0;
}

.network-availability-actions .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 1000px) {
    .filter-grid-network-availability {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .filter-grid-network-availability {
        grid-template-columns: 1fr;
    }
}

/* =========================
   NETWORK FILTER COMPACT
========================= */

.network-filter-card {
    padding: 16px 20px 18px;
}

.compact-filter-grid {
    gap: 12px;
}

.compact-filter-grid .form-group {
    margin-bottom: 0;
}

.compact-filter-grid label {
    margin-bottom: 5px;
    font-size: 14px;
}

.compact-filter-grid .form-control,
.compact-filter-grid select.form-control,
.compact-filter-grid input.form-control {
    max-width: 100%;
}

.compact-filter-actions {
    margin-top: 2px;
}

.compact-status-pill-row {
    margin-top: 14px;
}

/* =========================
   COLLAPSIBLE SECTIONS
========================= */

.collapsible-section {
    padding: 0;
    overflow: hidden;
}

.collapsible-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
}

.collapsible-summary::-webkit-details-marker {
    display: none;
}

.collapsible-summary h3 {
    margin: 0 0 4px;
}

.collapsible-meta {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef3f8;
    color: #31475f;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.collapsible-content {
    padding: 0 20px 20px;
}

.collapsible-section[open] .collapsible-summary {
    border-bottom: 1px solid #e8eef5;
}

@media (max-width: 1000px) {
    .filter-grid-network-availability {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .filter-grid-network-availability {
        grid-template-columns: 1fr;
    }

    .collapsible-summary {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   OPEN REQUEST FILTERS
========================= */

.filter-grid-open-requests {
    grid-template-columns: repeat(5, minmax(170px, 1fr));
}

.filter-grid-open-requests .form-group {
    margin-bottom: 0;
}

.filter-grid-open-requests .form-control,
.filter-grid-open-requests select.form-control,
.filter-grid-open-requests input.form-control {
    max-width: 100%;
}

@media (max-width: 1200px) {
    .filter-grid-open-requests {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

@media (max-width: 850px) {
    .filter-grid-open-requests {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PENDING PAGE ACTION STACK
========================= */

.open-request-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 140px;
}

.open-request-actions form {
    margin: 0;
}

.open-request-actions .btn {
    width: 100%;
    text-align: center;
}

/* =========================
   EMPTY STATES
========================= */

.empty-state {
    padding: 18px 20px;
    background: #f6f9fc;
    border-radius: 10px;
    color: #5b6b7c;
}

/* =========================
   PAGINATION
========================= */

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 14px 0 2px;
}

.pagination-summary {
    color: #526579;
    font-size: 0.92rem;
}

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

.pagination-current {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #0f4f96;
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 700px) {
    .pagination-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .pagination-actions {
        justify-content: flex-start;
    }
}

/* =========================
   SUBSCRIPTION STATUS PANEL
========================= */

.subscription-status-panel {
    display: grid;
    gap: 18px;
    margin: 20px 0 26px;
    padding: 20px;
    border: 1px solid #cfe0f3;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(239, 247, 255, 0.96), rgba(255, 255, 255, 0.98));
    box-shadow: 0 16px 34px rgba(22, 50, 84, 0.08);
}

.subscription-status-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.subscription-status-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #0f4f96;
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(15, 79, 150, 0.22);
}

.subscription-status-copy {
    min-width: 0;
}

.subscription-status-kicker {
    display: block;
    margin-bottom: 5px;
    color: #5f748a;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.subscription-status-panel h4 {
    margin: 0 0 8px;
    color: #24384d;
    font-size: 1.15rem;
}

.subscription-status-panel p {
    margin: 0;
    color: #526579;
    line-height: 1.45;
}

.subscription-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8f3ff;
    color: #0f4f96;
    border: 1px solid #bdd8f5;
    font-size: 0.84rem;
    font-weight: 900;
    white-space: nowrap;
}

.subscription-status-active .subscription-status-badge,
.subscription-status-trial_active .subscription-status-badge {
    background: #e8f8ef;
    color: #176b3a;
    border-color: #b9e4ca;
}

.subscription-status-trial_expired .subscription-status-badge,
.subscription-status-suspended .subscription-status-badge,
.subscription-status-cancelled .subscription-status-badge {
    background: #fff1f1;
    color: #9b1c1c;
    border-color: #f0c2c2;
}

.subscription-status-grid {
    display: grid;
    grid-template-columns:
        minmax(165px, 0.88fr)
        minmax(155px, 0.82fr)
        minmax(340px, 1.55fr)
        minmax(150px, 0.72fr)
        minmax(150px, 0.72fr);
    gap: 12px;
    margin: 0;
}

.subscription-status-grid div {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #dfe9f4;
}

.subscription-status-grid dt {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.subscription-status-grid dd {
    margin: 4px 0 0;
    color: #24384d;
    font-weight: 800;
    line-height: 1.25;
}

.management-trial-panel {
    margin: 1.5rem 0;
}

.management-trial-actions {
    margin-top: 1.5rem;
}

@media (max-width: 1200px) {
    .subscription-status-grid {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }
}

@media (max-width: 720px) {
    .subscription-status-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .subscription-status-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* =========================
   NOTIFICATIONS
========================= */

.notification-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.notification-filter-card {
    margin-bottom: 18px;
}

.notification-filter-grid {
    grid-template-columns: minmax(220px, 280px) auto;
    align-items: end;
}

.notification-filter-actions {
    justify-content: flex-start;
}

.notification-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(230, 236, 242, 0.95);
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 12px 28px rgba(16, 38, 70, 0.06);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.notification-header-main {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3f8;
    border: 1px solid #dbe3ee;
    color: #2c4a68;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.notification-date {
    font-size: 13px;
    color: #7b8a9a;
    white-space: nowrap;
}

.notification-body {
    font-size: 15px;
    line-height: 1.65;
    color: #33495f;
}

.notification-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

@media (max-width: 700px) {
    .notification-filter-grid {
        grid-template-columns: 1fr;
    }

    .notification-filter-actions {
        width: 100%;
    }

    .notification-filter-actions .btn {
        flex: 1;
    }

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

    .notification-date {
        white-space: normal;
    }

    .notification-actions {
        justify-content: flex-start;
    }
}
/* =========================
   MATCHING PANEL
========================= */

.matches-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e6ecf2;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 12px;
}

.matches-panel-header {
    margin-bottom: 14px;
}

.matches-panel-header h4 {
    margin: 0 0 10px;
    font-size: 22px;
    color: #2c3e50;
}

.matches-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.matches-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef3f8;
    border: 1px solid #dbe3ee;
    color: #31475f;
    font-size: 14px;
    font-weight: 600;
}

.matches-section {
    margin-top: 18px;
}

.matches-section:first-of-type {
    margin-top: 0;
}

.matches-section-title {
    margin: 0 0 10px;
    font-size: 17px;
    color: #33495f;
}

.matches-table {
    margin-bottom: 0;
}

.matches-product-cell {
    min-width: 280px;
}

.matches-product-name {
    font-weight: 700;
    color: #243b53;
    margin-bottom: 4px;
    line-height: 1.35;
}

.matches-product-meta {
    font-size: 13px;
    color: #6b7a8c;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .matches-summary-pills {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   AVAILABILITY REQUEST FORM
========================= */

.availability-request-card .detail-row {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.availability-request-card .detail-label {
    min-width: 0;
    margin: 0;
}

.availability-request-card .detail-value {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-width: 0;
    text-align: left;
}

.request-product-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    margin-top: 8px;
}

.request-product-summary-label {
    font-size: 15px;
    font-weight: 800;
    color: #344256;
}

.request-product-summary-value {
    font-size: 16px;
    color: #1f2d3d;
}

.availability-request-card .batch-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.availability-request-card .form-group {
    max-width: 520px;
}

.availability-request-card .form-control,
.availability-request-card input.form-control,
.availability-request-card textarea.form-control,
.availability-request-card select.form-control {
    max-width: 520px;
}

.availability-request-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .availability-request-card .detail-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .availability-request-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =========================
   REQUEST CREATE SCROLL HIGHLIGHT
========================= */

.card-highlight {
    animation: cardPulseHighlight 1.8s ease;
}

@keyframes cardPulseHighlight {
    0% {
        box-shadow:
            0 0 0 0 rgba(58, 155, 228, 0.28),
            0 14px 36px rgba(18, 40, 72, 0.06);
        border-color: rgba(58, 155, 228, 0.55);
    }
    35% {
        box-shadow:
            0 0 0 10px rgba(58, 155, 228, 0.10),
            0 18px 40px rgba(18, 40, 72, 0.08);
        border-color: rgba(58, 155, 228, 0.75);
    }
    100% {
        box-shadow:
            0 14px 36px rgba(18, 40, 72, 0.06);
        border-color: rgba(230, 236, 242, 0.95);
    }
}

/* =========================
   PRODUCT SEARCH LOCKED STATE
========================= */

.product-search-shell {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.product-search-shell .form-control {
    max-width: 100%;
    padding-right: 44px;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    text-overflow: clip;
    scrollbar-width: thin;
}

.product-search-shell .form-control::-webkit-scrollbar {
    height: 8px;
}

.product-search-shell .form-control::-webkit-scrollbar-thumb {
    background-color: #c7d4e2;
    border-radius: 999px;
}

.product-search-shell .form-control::-webkit-scrollbar-track {
    background-color: #eef3f8;
    border-radius: 999px;
}

.product-selected {
    background-color: #f7fafd;
    border-color: #bcdcff;
    color: #1f2d3d;
    font-weight: 600;
    cursor: default;
    overflow-x: auto;
}

.product-selected:focus {
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.12);
}

.product-clear-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: #e9eef5;
    color: #44576b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-clear-btn:hover {
    background: #dbe6f1;
    color: #243b53;
}

.product-clear-btn.is-visible {
    display: inline-flex;
}

/* =========================
   PRODUCT SEARCH LOCKED STATE
========================= */

.product-search-shell {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.product-search-shell .form-control {
    max-width: 100%;
    padding-right: 44px;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    text-overflow: clip;
    scrollbar-width: thin;
}

.product-search-shell .form-control::-webkit-scrollbar {
    height: 8px;
}

.product-search-shell .form-control::-webkit-scrollbar-thumb {
    background-color: #c7d4e2;
    border-radius: 999px;
}

.product-search-shell .form-control::-webkit-scrollbar-track {
    background-color: #eef3f8;
    border-radius: 999px;
}

.product-selected {
    background-color: #f7fafd;
    border-color: #bcdcff;
    color: #1f2d3d;
    font-weight: 600;
    cursor: default;
    overflow-x: auto;
}

.product-selected:focus {
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.12);
}

.product-clear-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 999px;
    background: #e9eef5;
    color: #44576b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-clear-btn:hover {
    background: #dbe6f1;
    color: #243b53;
}

.product-clear-btn.is-visible {
    display: inline-flex;
}
/* =========================
   MANAGEMENT / BILLING
========================= */

.page-section {
    margin-top: 2rem;
}

.section-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(230, 236, 242, 0.95);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 14px 36px rgba(18, 40, 72, 0.06);
}

.section-header {
    margin-bottom: 20px;
}

.section-header h2 {
    margin: 0 0 8px;
}

.section-header p {
    margin: 0;
    color: #6b7a8c;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.quick-link-card {
    display: block;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-link-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(18, 40, 72, 0.08);
    border-color: #cfd9e5;
    text-decoration: none;
}

.quick-link-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.quick-link-card p {
    margin: 0;
    color: #6b7280;
}

.quick-link-card.is-disabled {
    opacity: 0.72;
    pointer-events: none;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 6px;
}

.form-row label {
    font-weight: 600;
    color: #2c3e50;
}

.form-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.form-check-row label {
    margin: 0;
    font-weight: 600;
}

.form-check-input {
    transform: scale(1.1);
}

.form-error {
    color: #b91c1c;
    font-size: 13px;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.pharmacy-settings-card {
    padding: 0;
    overflow: hidden;
}

.pharmacy-settings-header {
    padding: 24px 24px 18px;
    background: linear-gradient(135deg, rgba(239, 247, 255, 0.86), rgba(255, 255, 255, 0.96));
    border-bottom: 1px solid #dbe5f2;
}

.pharmacy-settings-header h3 {
    margin: 0 0 8px;
    color: #24384d;
    font-size: 21px;
}

.pharmacy-settings-header p {
    margin: 0;
}

.pharmacy-settings-card .section-divider {
    margin: 0;
}

.pharmacy-settings-block {
    display: grid;
    grid-template-columns: minmax(220px, 0.38fr) minmax(280px, 0.62fr);
    gap: 24px;
    align-items: center;
    padding: 22px 24px;
}

.pharmacy-settings-copy h4 {
    margin: 0 0 6px;
    color: #24384d;
    font-size: 16px;
}

.pharmacy-settings-copy p {
    margin: 0;
    color: #71839a;
    line-height: 1.55;
}

.pharmacy-settings-control {
    max-width: 560px;
}

.pharmacy-settings-control .form-check-row {
    width: fit-content;
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #f8fbff;
}

.pharmacy-settings-control .form-help {
    display: block;
    color: #64748b;
    line-height: 1.5;
}

.billing-entity-section {
    padding: 22px 24px;
}

.billing-entity-section .subscription-status-panel {
    margin: 0;
}

.billing-entity-block {
    align-items: start;
}

.billing-entity-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    max-width: 820px;
}

.billing-entity-fields .form-row {
    min-width: 0;
}

.duration-field-row {
    display: grid;
    grid-template-columns: minmax(84px, 0.35fr) minmax(130px, 0.65fr);
    gap: 10px;
}

.duration-field-row .form-control {
    min-width: 0;
}

.platform-identification-fields {
    align-items: start;
}

.platform-identification-fields > .form-group {
    align-self: start;
}

.platform-identification-fields > .form-group input.form-control {
    height: 44px;
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.billing-entity-full {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .form-grid-two {
        grid-template-columns: 1fr;
    }

    .pharmacy-settings-block {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
    }

    .pharmacy-settings-header {
        padding: 22px 20px 16px;
    }

    .pharmacy-settings-control {
        max-width: none;
    }

    .billing-entity-section {
        padding: 20px;
    }

    .billing-entity-fields {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .duration-field-row {
        grid-template-columns: 1fr;
    }

    .platform-pharmacy-controls {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .platform-pharmacy-form .input-action-row {
        flex-direction: column;
    }
}
.stock-export-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.stock-export-title {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.stock-export-note {
    margin: 6px 0 0 0;
    color: #6b7a8c;
    font-size: 14px;
    line-height: 1.5;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.supplier-availability-table {
    table-layout: auto;
}

.supplier-availability-table th,
.supplier-availability-table td {
    vertical-align: middle;
}

.supplier-availability-table th {
    text-align: center;
}

.supplier-availability-table th:first-child,
.supplier-availability-table td.col-pharmacy,
.supplier-availability-table td.col-product,
.supplier-availability-table td.col-supplier {
    text-align: left;
}

.supplier-availability-table th.col-actions,
.supplier-availability-table td.col-actions {
    min-width: 150px;
}

.supplier-availability-table td.col-pharmacy {
    min-width: 130px;
    width: 130px;
}

.supplier-availability-table td.col-product {
    min-width: 320px;
    max-width: 380px;
    line-height: 1.45;
    word-break: break-word;
}

.supplier-availability-table td.col-supplier {
    min-width: 200px;
    max-width: 240px;
    line-height: 1.45;
    word-break: break-word;
}

.supplier-availability-table td.col-type {
    min-width: 140px;
    text-align: center;
}

.supplier-availability-table td.col-quantity,
.supplier-availability-table td.col-status,
.supplier-availability-table td.col-expiry,
.supplier-availability-table td.col-interaction {
    text-align: center;
    white-space: nowrap;
}

.supplier-availability-table .network-availability-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    min-width: 120px;
}

.supplier-availability-table .network-availability-actions .btn {
    width: 100%;
    text-align: center;
}

.communication-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.communication-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid #d9dee7;
    border-radius: 18px;
    background: #fff;
}

.communication-row-main {
    flex: 1;
    min-width: 0;
}

.communication-title {
    margin: 0 0 0.45rem 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.communication-preview {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.communication-row-side {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.communication-meta-inline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.communication-date {
    color: #475569;
    font-weight: 500;
}

.communication-row-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.badge-communication {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
}

.badge-communication-muted {
    background: #eef2f7;
    color: #5b6678;
}

.badge-communication-group {
    background: #e0f2fe;
    color: #075985;
}

.badge-communication-local {
    background: #ecfdf5;
    color: #047857;
}

.badge-communication-success {
    background: #31c36b;
    color: #fff;
}

.badge-communication-warning {
    background: #f59e0b;
    color: #fff;
}

@media (max-width: 980px) {
    .communication-row {
        flex-direction: column;
        align-items: stretch;
    }

    .communication-row-side {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    .communication-row-side,
    .communication-row-actions,
    .communication-meta-inline {
        flex-direction: column;
        align-items: flex-start;
    }
}

.field-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.08);
}

/* =========================
   HEADER NAV DROPDOWNS / UTILITIES
========================= */

.nav-shell {
    gap: 18px;
    justify-content: flex-start;
}

.nav-direct-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    flex: 1;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 8px 0;
    color: #2783d6;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.15s ease;
}

.nav-dropdown-toggle:hover {
    color: #174f8f;
    transform: translateY(-1px);
}

.nav-caret {
    font-size: 12px;
    color: #6b7a8c;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 240px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(224, 230, 237, 0.95);
    border-radius: 14px;
    box-shadow: 0 18px 34px rgba(15, 35, 75, 0.12);
    padding: 12px;
    display: none;
    z-index: 120;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 6px;
    border-radius: 10px;
    line-height: 1.35;
    color: #26445f;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-dropdown-link:last-child {
    margin-bottom: 0;
}

.nav-dropdown-link:hover {
    background: #eef4fb;
    color: #174f8f;
    text-decoration: none;
}

.nav-dropdown-placeholder {
    display: block;
    padding: 10px 12px;
    color: #6b7a8c;
    font-size: 14px;
    font-weight: 600;
}

.nav-inline-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #1f4e79;
    font-size: 12px;
    font-weight: 800;
}

.nav-utility-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.nav-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f4f8fc;
    border: 1px solid #dfe8f1;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.nav-icon-link:hover {
    background: #eef4fb;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(18, 40, 72, 0.08);
    text-decoration: none;
}

.nav-icon-link::after {
    display: none !important;
}

.nav-icon-symbol {
    font-size: 17px;
    line-height: 1;
}

.nav-icon-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef5b49 0%, #e74c3c 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(231, 76, 60, 0.24);
}

.nav-user-menu {
    margin-left: 4px;
}

.nav-user-toggle {
    padding: 10px 14px;
    border-radius: 12px;
    background: #f7fafd;
    border: 1px solid #dfe8f1;
    color: #243b53;
}

.nav-user-name {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-user-dropdown {
    right: 0;
    left: auto;
    min-width: 280px;
}

.nav-user-meta {
    padding: 10px 12px;
}

.nav-user-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7b8a9a;
    font-weight: 800;
    margin-bottom: 4px;
}

.nav-user-meta-value {
    font-size: 14px;
    font-weight: 700;
    color: #243b53;
    line-height: 1.4;
}

.nav-user-divider {
    height: 1px;
    background: #e6ecf2;
    margin: 6px 4px 10px;
}

.nav-user-logout-form {
    margin: 0;
    padding: 0 8px 6px;
}

.nav-user-logout-btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 1180px) {
    .header-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .nav-main {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .nav-utility-area {
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-dropdown-menu {
        position: static;
        display: none;
        margin-top: 8px;
        min-width: 100%;
        box-shadow: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: block;
    }

    .nav-user-name {
        max-width: 120px;
    } 
}

/* =========================
   MANAGEMENT METRICS
========================= */

.metrics-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.metrics-toolbar form {
    margin: 0;
}

.metrics-toolbar .form-control {
    max-width: 220px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 12px 26px rgba(18, 40, 72, 0.06);
}

.metric-card > strong {
    display: block;
    font-size: 30px;
    line-height: 1;
    font-weight: 850;
    color: #17324e;
}

.metric-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 8px;
}

.metric-value {
    display: block;
    font-size: 30px;
    line-height: 1;
    font-weight: 850;
    color: #17324e;
}

.metric-card-primary {
    background: linear-gradient(135deg, #eaf4ff 0%, #f8fbff 100%);
    border-color: #bcdcff;
}

.management-section {
    margin-top: 26px;
}

.management-section h2 {
    margin-bottom: 14px;
    font-size: 24px;
    color: #17324e;
}

.metrics-panel {
    margin-top: 28px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(230, 236, 242, 0.95);
    box-shadow: 0 14px 36px rgba(18, 40, 72, 0.06);
}

.metrics-panel-header {
    margin-bottom: 16px;
}

.metrics-panel-header h2 {
    margin: 0 0 6px;
    font-size: 24px;
    color: #17324e;
}

.metrics-panel-header p {
    margin: 0;
    color: #6b7a8c;
    font-size: 14px;
}

.metrics-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.metrics-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.metrics-table th {
    text-align: left;
    padding: 8px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    white-space: nowrap;
}

.metrics-table td {
    padding: 13px 12px;
    background: #f8fafc;
    border-top: 1px solid #e6ecf2;
    border-bottom: 1px solid #e6ecf2;
    vertical-align: middle;
}

.metrics-table td:first-child {
    border-left: 1px solid #e6ecf2;
    border-radius: 12px 0 0 12px;
}

.metrics-table td:last-child {
    border-right: 1px solid #e6ecf2;
    border-radius: 0 12px 12px 0;
}

.metrics-product-cell {
    min-width: 420px;
    max-width: 560px;
    line-height: 1.45;
}

.metrics-status-pill {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf4ff;
    color: #1f4e79;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.metrics-empty-row {
    text-align: center;
    color: #64748b;
}

/* =========================
   METRICS TOOLBAR CONTROLS
========================= */

.metrics-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.metrics-toolbar select {
    appearance: none;
    background: #ffffff;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    padding: 6px 28px 6px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #17324e;
    box-shadow: 0 4px 10px rgba(18, 40, 72, 0.05);
    transition: all 0.18s ease;
}

/* Custom dropdown arrow for metrics period selector */

.metrics-toolbar select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2317324e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
<polyline points='6 9 12 15 18 9'></polyline>\
</svg>");

    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 34px;
}

.metrics-toolbar select:hover {
    border-color: #bcdcff;
}

.metrics-toolbar select:hover {
    background-color: #f8fbff;
}

.metrics-toolbar select:focus {
    outline: none;
    border-color: #4da3ff;
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.15);
}



/* Export Excel button */

.metrics-export-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.18s ease;
}

.metrics-export-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.metrics-export-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.auth-card {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 70px rgba(15, 35, 55, 0.12);
}

body.public-shell .auth-page {
  min-height: auto;
  align-items: flex-start;
  padding: 18px 16px 56px;
}

body.public-shell .auth-card {
  max-width: 1180px;
  border: 1px solid #dfe8f2;
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(15, 35, 55, 0.08);
}

body.public-shell .auth-header {
  margin-bottom: 22px;
}

body.public-shell .auth-header h1 {
  font-size: clamp(2rem, 3vw, 2.65rem);
}

.activation-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.activation-layout .invite-summary {
  margin-bottom: 0;
}

.activation-layout form {
  min-width: 0;
}

.activation-layout .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.activation-layout .form-field-compact {
  max-width: 180px;
}

.activation-layout .auth-submit {
  width: auto;
  min-width: 220px;
  padding-left: 22px;
  padding-right: 22px;
}

.auth-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.auth-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0f172a);
}

.auth-header h1 {
  margin: 0;
  font-size: 2rem;
}

.auth-header p {
  margin: 4px 0 0;
  color: #64748b;
}

.invite-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 24px;
}

.invite-summary p {
  margin: 6px 0;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-field input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 1rem;
}

.auth-submit {
  margin-top: 22px;
  width: 100%;
  display: block;
  text-align: center;
}

@media (max-width: 900px) {
  .activation-layout {
    grid-template-columns: 1fr;
  }

  .activation-layout .form-grid {
    grid-template-columns: 1fr;
  }

  .activation-layout .form-field-compact {
    max-width: none;
  }

  .activation-layout .auth-submit {
    width: 100%;
  }
}

.stocklink-public-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 32%),
    linear-gradient(135deg, #eef6ff 0%, #f8fbff 45%, #eaf4ff 100%);
  color: #10233f;
}

.public-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 7%;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  position: sticky;
  top: 0;
  z-index: 20;
}

.public-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.brand-title {
  font-size: 1.65rem;
  font-weight: 800;
}

.brand-subtitle {
  font-size: 0.86rem;
  color: #52708f;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.public-nav a {
  color: #1e3a5f;
  text-decoration: none;
  font-weight: 700;
}

.public-login-btn,
.hero-primary {
  background: linear-gradient(135deg, #2563eb, #0f4c81);
  color: white !important;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.25);
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 54px;
  align-items: center;
  padding: 86px 7% 66px;
}

.hero-kicker {
  color: #2563eb;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin: 0 0 24px;
  letter-spacing: -0.05em;
}

.hero-content p {
  font-size: 1.16rem;
  line-height: 1.75;
  color: #38516d;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-secondary {
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-weight: 800;
}

.hero-card {
  min-height: 430px;
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.78), rgba(219,234,254,0.55));
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 72px 58px;
  border: 2px dashed rgba(37, 99, 235, 0.18);
  border-radius: 34px;
}

.pulse-node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 12px rgba(37, 99, 235, 0.12);
  animation: pulse 2.4s infinite;
}

.node-a { top: 78px; left: 76px; }
.node-b { right: 86px; top: 142px; animation-delay: .5s; }
.node-c { left: 142px; bottom: 86px; animation-delay: 1s; }

@keyframes pulse {
  0% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.18); opacity: .6; }
  100% { transform: scale(1); opacity: .9; }
}

.connection-card {
  position: absolute;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.connection-card span {
  display: block;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.connection-card strong {
  display: block;
  font-size: 1.25rem;
}

.connection-card small {
  display: block;
  margin-top: 8px;
  color: #64748b;
}

.main-card {
  top: 118px;
  left: 72px;
  width: 270px;
}

.mini-card {
  right: 58px;
  bottom: 86px;
  width: 230px;
}

.public-section {
  padding: 58px 7%;
}

.public-section h2 {
  font-size: 2rem;
  margin-bottom: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.feature-card span {
  color: #2563eb;
  font-weight: 900;
}

.feature-card p {
  color: #4b6380;
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

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

.security-list div {
  background: rgba(255,255,255,0.75);
  border-radius: 18px;
  padding: 16px 18px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.public-footer {
  padding: 26px 7%;
  display: flex;
  justify-content: space-between;
  color: #64748b;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 900px) {
  .public-header,
  .public-nav,
  .public-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-hero,
  .split-section,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 360px;
  }
}

.auth-brand-link {
  text-decoration: none;
  color: inherit;
}

.stocklink-auth-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 32%),
    linear-gradient(135deg, #eef6ff 0%, #f8fbff 45%, #eaf4ff 100%);
  color: #10233f;
}

.auth-shell {
  min-height: calc(100vh - 96px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 32px;
  padding: 38px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

.auth-kicker {
  color: #2563eb;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 12px;
}

.auth-card h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.auth-intro {
  color: #526b88;
  line-height: 1.6;
  margin-bottom: 28px;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-weight: 800;
  color: #1e3a5f;
}

.auth-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  padding: 13px 14px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.auth-field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.auth-submit {
  margin-top: 6px;
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #2563eb, #0f4c81);
  color: white;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
}

.auth-submit:hover {
  transform: translateY(-1px);
}

.auth-password-reset {
  display: block;
  margin-top: 18px;
  text-align: center;
}

.auth-error {
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-weight: 700;
}

.auth-footer-link {
  margin-top: 24px;
  text-align: center;
}

.auth-password-reset a,
.auth-footer-link a {
  color: #2563eb;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}

.auth-password-reset a:hover,
.auth-footer-link a:hover {
  text-decoration: underline;
}

.legal-page {
  padding: 64px 7% 80px;
}

.legal-hero {
  max-width: 860px;
  margin: 0 auto 34px;
  text-align: center;
}

.legal-kicker {
  color: #2563eb;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
  margin: 0 0 18px;
  color: #10233f;
}

.legal-hero p {
  color: #425d79;
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 0 auto 18px;
  max-width: 780px;
}

.legal-updated {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 0.88rem;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 32px;
  padding: 42px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(16px);
}

.legal-card h2 {
  font-size: 1.28rem;
  margin: 28px 0 10px;
  color: #10233f;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: #425d79;
  line-height: 1.75;
  font-size: 1rem;
  margin: 0 0 14px;
}

.legal-contact {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-weight: 900;
  border: 1px solid rgba(37, 99, 235, 0.16);
}

.public-footer a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 700px) {
  .legal-page {
    padding: 44px 18px 60px;
  }

  .legal-card {
    padding: 26px;
    border-radius: 24px;
  }
}

.brand-logo {
    height: 48px;
    width: 48px;
    border-radius: 12px;
    object-fit: contain;
}

.public-brand .brand-logo,
.auth-brand-link .brand-logo {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    object-fit: contain !important;
    border-radius: 14px;
    display: block;
    flex: 0 0 56px;
}

.hero-product-preview {
    position: relative;
    border-radius: 34px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    max-width: 720px;
    aspect-ratio: 16 / 10;
}

.hero-dashboard-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    object-position: center;
}

.hero-preview-badge {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

@media (max-width: 900px) {
    .hero-product-preview {
        border-radius: 26px;
        padding: 10px;
    }

    .hero-dashboard-image {
        border-radius: 18px;
    }

    .hero-preview-badge {
        top: 20px;
        left: 20px;
        font-size: 0.68rem;
    }
}

.hero-preview-caption {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.90);
    color: #17324e;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    transition: all 0.25s ease;
}

.hero-product-preview .hero-dashboard-image {
    transition: transform 0.45s ease, filter 0.45s ease;
}

.hero-product-preview[data-step="pedido"] .hero-dashboard-image {
    transform: scale(1.04) translateX(2%);
}

.hero-product-preview[data-step="ligacao"] .hero-dashboard-image {
    transform: scale(1.08) translateX(-2%);
}

.hero-product-preview[data-step="resposta"] .hero-dashboard-image {
    transform: scale(1.05) translateY(-2%);
}

.hero-product-preview[data-step="coordenacao"] .hero-dashboard-image {
    transform: scale(1.03) translateY(2%);
}

.hero-animated-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #021530;
}

.hero-animated-image .hero-dashboard-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.08) contrast(1.04);
}

.hero-network-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.92;
}

.network-path {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 9 13;
    animation: heroFlow 7s linear infinite;
    opacity: 0.72;
}

.path-blue {
    stroke: url("#heroFlowBlue");
}

.path-green {
    stroke: url("#heroFlowGreen");
    animation-duration: 8.5s;
}

@keyframes heroFlow {
    to {
        stroke-dashoffset: -180;
    }
}

.hero-pulse-nodes circle {
    fill: #7dd3fc;
    filter: url("#heroGlow");
    opacity: 0.9;
    animation: heroNodePulse 2.6s ease-in-out infinite;
}

.hero-pulse-nodes circle:nth-child(2) { animation-delay: .35s; }
.hero-pulse-nodes circle:nth-child(3) { animation-delay: .7s; }
.hero-pulse-nodes circle:nth-child(4) { animation-delay: 1.05s; }
.hero-pulse-nodes circle:nth-child(5) { animation-delay: 1.4s; }

@keyframes heroNodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.45);
        opacity: 1;
    }
}

.hero-product-preview[data-step="pedido"] .hero-network-overlay {
    opacity: 1;
}

.hero-product-preview[data-step="ligacao"] .network-path {
    stroke-width: 2.8;
}

.hero-product-preview[data-step="resposta"] .signal-dots circle {
    animation-duration: 4.2s;
}

.hero-product-preview[data-step="coordenacao"] .hero-pulse-nodes circle {
    animation-duration: 1.8s;
}

@media (prefers-reduced-motion: reduce) {
    .network-path,
    .hero-pulse-nodes circle {
        animation: none;
    }

    .signal-dots {
        display: none;
    }
}

/* =========================
   HERO PRODUCT PREVIEW (SVG OBJECT)
========================= */

.hero-product-preview {
    padding: 0;
    border-radius: 34px;
    aspect-ratio: 690 / 530;
    max-width: 720px;
    background: transparent;
    overflow: visible;
}

.hero-network-svg,
.hero-network-svg-fallback {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.hero-network-svg-fallback {
    object-fit: contain;
}

html {
    scroll-behavior: auto !important;
}

#como-funciona,
#seguranca {
    scroll-margin-top: 110px;
}

.hero-product-preview,
.hero-network-svg {
    pointer-events: none;
}

.fulfillment-batch-table th,
.fulfillment-batch-table td {
    vertical-align: middle;
}

.fulfillment-batch-table th {
    text-align: left;
}

.fulfillment-batch-table th:nth-child(3),
.fulfillment-batch-table td:nth-child(3) {
    text-align: center;
}

.fulfillment-batch-table input[type="text"],
.fulfillment-batch-table input[type="number"] {
    width: 100%;
    max-width: 100%;
}

.fulfillment-batch-table .remove-batch-btn {
    min-width: 120px;
}

.fulfillment-batch-table input[type="number"] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.fulfillment-batch-table input[type="text"],
.fulfillment-batch-table input[type="number"] {
    display: block;
    width: 100% !important;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    background-color: #ffffff;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.fulfillment-batch-table input[type="number"]::-webkit-outer-spin-button,
.fulfillment-batch-table input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
}

.fulfillment-batch-table input[type="text"]:focus,
.fulfillment-batch-table input[type="number"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.15);
}

.hero-product-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-preview svg {
  width: 100%;
  max-width: 900px;
  height: auto;
}

.hero-wide {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr; /* dá mais espaço ao SVG */
  align-items: center;
  gap: 40px;
  padding: 60px 40px;
}

/* =========================
   PUBLIC LANDING — HERO FINAL CLEAN
========================= */

body.stocklink-public-page {
    background:
        radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.08), transparent 30%),
        radial-gradient(circle at 86% 82%, rgba(14, 165, 233, 0.08), transparent 34%),
        linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%) !important;
    color: #10233f;
}

.stocklink-public-page .public-hero.hero-wide {
    min-height: calc(100vh - 92px);
    display: grid;
    grid-template-columns: minmax(360px, 0.72fr) minmax(720px, 1.45fr);
    align-items: center;
    gap: 36px;
    padding: 44px 7% 54px;
}

.stocklink-public-page .hero-content {
    max-width: 560px;
}

.stocklink-public-page .hero-content h1 {
    color: #10233f;
    font-size: clamp(2.8rem, 3.75vw, 4.4rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
    margin-bottom: 24px;
}

.stocklink-public-page .hero-content p {
    color: #355474;
    font-size: 1.08rem;
    line-height: 1.75;
    margin: 0 0 18px;
    max-width: 620px;
}

.stocklink-public-page .hero-product-preview {
    width: 100%;
    max-width: none !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    filter: none !important;
    opacity: 1 !important;

    display: flex;
    align-items: center;
    justify-content: center;
}

.stocklink-public-page .stocklink-network {
    width: 100%;
    max-width: 1050px;
    filter: none !important;
    opacity: 1 !important;
}

.stocklink-public-page .stocklink-network #wrap {
    width: 100%;
    height: 560px;
    border-radius: 28px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(1, 14, 36, 0.98), rgba(1, 20, 48, 0.96) 46%, rgba(3, 24, 58, 0.98)) !important;
    box-shadow:
        0 28px 70px rgba(15, 35, 75, 0.22),
        0 0 0 1px rgba(37, 99, 235, 0.16);
    filter: none !important;
    opacity: 1 !important;
}

.stocklink-public-page .stocklink-network svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: none !important;
    opacity: 1 !important;
}

.stocklink-public-page .public-section#como-funciona {
    display: none;
}

@media (max-width: 1200px) {
    .stocklink-public-page .public-hero.hero-wide {
        grid-template-columns: 1fr;
        padding: 42px 5% 56px;
    }

    .stocklink-public-page .stocklink-network #wrap {
        height: 500px;
    }
}

.invitation-row {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(220px, 280px) auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
}

.invitation-delete-field {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.invitation-row {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(220px, 280px) auto;
    gap: 0.75rem;
    align-items: end;
    margin-bottom: 1rem;
}

.invitation-remove-wrapper {
    display: flex;
    align-items: end;
    padding-bottom: 0.15rem;
}

.remove-invitation-row {
    white-space: nowrap;
}

#invitation-rows {
    max-width: 900px;
}

.invitation-row {
    display: grid !important;
    grid-template-columns: 520px 280px 100px !important;
    gap: 30px !important;
    align-items: end;
    margin-bottom: 30px;
}

.invitation-row .form-field {
    margin: 0 !important;
}

.invitation-email-field input {
    width: 100%;
}

.invitation-role-field select {
    width: 100%;
}

.form-card {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-help {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    color: #51637a;
}

.inline-action-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.supplier-multiselect {
    min-height: 260px;
}

.form-error {
    color: #b91c1c;
    font-weight: 600;
}

.supplier-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.supplier-choice-card {
    display: block;
    cursor: pointer;
}

.supplier-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.supplier-choice-content {
    border: 1px solid #d8e2ef;
    border-radius: 18px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 35, 70, 0.06);
    transition: 0.18s ease;
}

.supplier-choice-card:hover .supplier-choice-content {
    border-color: #2563eb;
    transform: translateY(-1px);
}

.supplier-choice-card input:checked + .supplier-choice-content {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.supplier-choice-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.supplier-choice-meta {
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.9rem;
}

.supplier-selected-badge {
    display: none;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.supplier-choice-card input:checked + .supplier-choice-content .supplier-selected-badge {
    display: inline-flex;
}

.section-divider {
    margin: 2.5rem 0;
    border-top: 1px solid #dbe5f2;
}

.supplier-picker-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.supplier-search-results {
    margin-top: 0.75rem;
    display: grid;
    gap: 0.5rem;
}

.supplier-search-result {
    width: 100%;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    background: #ffffff;
    padding: 0.85rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: 0.15s ease;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.supplier-search-result:hover {
    border-color: #2563eb;
    background: #f8fbff;
}

.selected-suppliers-section {
    margin-top: 2rem;
}

.selected-suppliers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.selected-supplier-counter {
    color: #64748b;
    font-size: 0.9rem;
}

.selected-suppliers-list {
    display: grid;
    gap: 0.75rem;
}

.selected-supplier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    background: #ffffff;
}

.selected-supplier-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.selected-supplier-info span {
    color: #64748b;
    font-size: 0.9rem;
}

.remove-supplier-btn {
    border: none;
    background: #fee2e2;
    color: #b91c1c;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-weight: 600;
}

.remove-supplier-btn:hover {
    background: #fecaca;
}

.supplier-suggestion-callout {
    margin-top: 2.5rem;
    padding: 1.25rem;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.supplier-suggestion-callout h3 {
    margin: 0 0 0.35rem 0;
}

.supplier-suggestion-callout p {
    margin: 0;
    color: #64748b;
}

.pending-section {
    margin-top: 2.5rem;
}

.supplier-pending-list {
    display: grid;
    gap: 0.75rem;
}

.supplier-pending-card {
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    padding: 1rem;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.supplier-pending-main {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.supplier-pending-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: #64748b;
    font-size: 0.9rem;
}

.supplier-pending-status {
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 760px) {
    .supplier-suggestion-callout {
        flex-direction: column;
        align-items: flex-start;
    }

    .supplier-pending-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

.supplier-suggestion-page {
    max-width: 980px;
    margin: 0 auto;
}

.supplier-suggestion-form {
    margin-top: 1.5rem;
}

.supplier-lookup-panel {
    padding: 1.25rem;
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.supplier-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.supplier-form-span-2 {
    grid-column: 1 / -1;
}

.supplier-form-actions {
    margin-top: 1.75rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-success {
    color: #047857;
    font-weight: 600;
}

@media (max-width: 760px) {
    .supplier-details-grid,
    .inline-action-field {
        grid-template-columns: 1fr;
    }

    .supplier-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

/* =========================
   FULFILLMENT BATCH META
========================= */

.batch-availability-meta {
    margin-top: 8px;
}

.batch-availability-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4fb;
    border: 1px solid #d9e5f2;
    color: #49627c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

#batch-table.fulfillment-batch-table td {
    vertical-align: top;
}

#batch-table.fulfillment-batch-table td:nth-child(3) {
    vertical-align: middle;
}

/* =========================
   NOTIFICATIONS V14
========================= */

.notification-card-compact {
    padding: 18px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.notification-main {
    min-width: 0;
}

.notification-top-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.notification-type-badge-strong {
    background: linear-gradient(135deg, #eef5ff, #ffffff);
    border: 1px solid #c8dcf7;
    color: #1e4f86;
    font-size: 13px;
    font-weight: 900;
    padding: 7px 12px;
    border-radius: 999px;
}

.notification-body-compact {
    color: #34495e;
    line-height: 1.45;
    font-size: 15px;
}

.notification-card-compact .notification-date {
    color: #718096;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.notification-side {
    display: grid;
    gap: 10px;
    justify-items: end;
    align-items: center;
}

.notification-actions-compact {
    margin-top: 0;
}

.notification-actions-compact .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    min-width: 76px;
    min-height: 36px;
    padding: 7px 12px;
    line-height: 1;
}

@media (max-width: 768px) {
    .notification-card-compact {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .notification-card-compact .notification-date {
        margin-left: 0;
    }

    .notification-side {
        width: 100%;
        justify-items: stretch;
    }

    .notification-side-date {
        text-align: left;
    }

    .notification-actions-compact {
        width: 100%;
    }

    .notification-actions-compact .btn {
        width: 100%;
    }
}

.auth-shell {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.auth-card-lock {
    width: min(520px, 100%);
    padding: 40px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 35, 55, 0.16);
}

.lock-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #12345a;
    font-size: 1.08rem;
    font-weight: 800;
    text-decoration: none;
}

.lock-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(20, 86, 180, 0.18);
}

.lock-brand-link:hover {
    color: #1f6feb;
}

.auth-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #507090;
    margin-bottom: 12px;
}

.auth-card-lock h1 {
    margin: 0 0 12px;
    font-size: 2rem;
    color: #1f2f42;
}

.auth-subtitle {
    color: #5f7186;
    margin-bottom: 28px;
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    color: #2a3c50;
}

.form-group input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d4dee9;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 1rem;
    background: #f9fbfd;
}

.form-group input:focus {
    outline: none;
    border-color: #1f6feb;
    box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
    background: #ffffff;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    margin-top: 4px;
}

.auth-helper {
    margin: 22px 0 0;
    color: #6b7d90;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.auth-secondary-link {
    display: block;
    margin-top: 18px;
    text-align: center;
    font-weight: 700;
    color: #1f6feb;
    text-decoration: none;
}

.form-alert {
    border: 1px solid #f3c2c2;
    background: #fff1f1;
    color: #9b1c1c;
    border-radius: 12px;
    padding: 12px 14px;
}

.form-alert p {
    margin: 6px 0 0;
}

.form-alert-error {
    margin-bottom: 18px;
}

.form-alert-warning {
    margin-bottom: 22px;
    border-color: #f1d39b;
    background: #fff8e8;
    color: #8a5a12;
}

.platform-admin-hero {
    max-width: 1180px;
    margin: 42px auto 24px;
    padding: 34px 38px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(31, 111, 235, 0.12), transparent 38%),
        #ffffff;
    box-shadow: 0 24px 70px rgba(15, 35, 55, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: flex-start;
}

.platform-admin-kicker,
.sentinel-zone-kicker {
    display: inline-block;
    color: #54708f;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.platform-admin-hero h1 {
    margin: 0;
    color: #1f2f42;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.platform-admin-hero p {
    max-width: 680px;
    margin: 14px 0 0;
    color: #60758a;
    font-size: 1.05rem;
    line-height: 1.6;
}

.platform-admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.platform-admin-section {
    max-width: 1180px;
    margin: 0 auto 56px;
}

.platform-admin-section .form-group-wide {
    grid-column: 1 / -1;
}

.platform-admin-section .section-divider {
    margin: 28px 0;
}

.platform-pharmacy-form {
    display: grid;
    gap: 18px;
    margin: 0;
}

.platform-pharmacy-card {
    border: 1px solid #dbe5f2;
    box-shadow: 0 16px 42px rgba(18, 40, 72, 0.07);
}

.platform-pharmacy-block {
    padding: 18px 24px;
}

.platform-pharmacy-form .form-group {
    margin-bottom: 0;
}

.platform-pharmacy-form .form-group label {
    display: block;
    margin-bottom: 6px;
    color: #1f2f42;
    font-size: 0.9rem;
    font-weight: 800;
}

.platform-pharmacy-form .form-control,
.platform-pharmacy-form input:not([type="checkbox"]),
.platform-pharmacy-form select,
.platform-pharmacy-form textarea {
    width: 100%;
}

.platform-pharmacy-form input[type="checkbox"] {
    width: auto;
    min-height: 0;
}

.platform-pharmacy-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    gap: 18px 20px;
    max-width: 820px;
}

.platform-pharmacy-controls > .form-group {
    align-self: start;
}

.platform-pharmacy-controls > .form-group input.form-control {
    height: 44px;
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.platform-pharmacy-controls input[type="number"].form-control {
    max-width: 220px;
}

.platform-pharmacy-controls .form-help {
    display: block;
    margin-top: 6px;
}

.platform-toggle-stack {
    display: grid;
    gap: 10px;
}

.platform-toggle-card {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: #f8fbff;
}

.platform-toggle-card .form-check-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: start;
    gap: 10px;
    text-align: left;
}

.platform-toggle-card .form-check-row span {
    line-height: 1.35;
    font-weight: 800;
    white-space: nowrap;
    text-align: left;
}

.platform-toggle-card .form-help {
    margin-top: 6px;
    margin-left: 26px;
    line-height: 1.45;
}

.platform-pharmacy-form .form-actions {
    margin-top: 2px;
}

.platform-pharmacy-form .input-action-row {
    align-items: stretch;
}

.platform-pharmacy-form .input-action-row .btn {
    white-space: nowrap;
}

.billing-admin-section {
    max-width: 1280px;
}

.billing-admin-card {
    padding: 22px;
}

.billing-admin-form {
    margin-top: 0;
}

.billing-admin-form h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.billing-admin-form .form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 16px;
}

.billing-admin-form .billing-adherence-grid {
    align-items: start;
}

.billing-admin-form .billing-adherence-grid [hidden] {
    display: none !important;
}

.billing-admin-form .billing-adherence-grid[data-mode="normal"] [data-adherence-field="trial_starts_at"],
.billing-admin-form .billing-adherence-grid[data-mode="normal"] [data-adherence-field="trial_ends_at"] {
    display: none !important;
}

.billing-admin-form .billing-adherence-grid[data-mode="trial"] [data-adherence-field="trial_starts_at"],
.billing-admin-form .billing-adherence-grid[data-mode="trial"] [data-adherence-field="trial_ends_at"],
.billing-admin-form .billing-adherence-grid[data-mode="trial"] [data-adherence-field="billing_starts_at"]:not([hidden]) {
    position: relative;
}

.billing-admin-form .billing-adherence-grid[data-mode="trial"] [data-adherence-field="trial_starts_at"]:not([hidden]) {
    padding-top: 18px;
    border-top: 1px solid #dfe8f2;
}

.billing-admin-form .billing-adherence-grid[data-mode="trial"] [data-adherence-field="trial_starts_at"]:not([hidden])::before {
    content: "Trial";
    position: absolute;
    top: -10px;
    left: 0;
    padding-right: 8px;
    background: #ffffff;
    color: #54708f;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.billing-admin-form .billing-adherence-grid[data-mode="trial"] [data-adherence-field="trial_ends_at"]:not([hidden]),
.billing-admin-form .billing-adherence-grid[data-mode="trial"] [data-adherence-field="billing_starts_at"]:not([hidden]) {
    padding-top: 18px;
    border-top: 1px solid #dfe8f2;
}

.billing-admin-form .form-group {
    margin-bottom: 0;
}

.billing-admin-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
}

.billing-admin-form .form-control,
.billing-admin-form input,
.billing-admin-form select,
.billing-admin-form textarea {
    width: 100%;
}

.billing-admin-form textarea {
    min-height: 94px;
}

.billing-admin-form .section-divider {
    margin: 22px 0 16px;
}

.billing-admin-form .form-check-row {
    margin-top: 16px;
}

.billing-admin-form .form-actions {
    margin-top: 22px;
}

@media (max-width: 980px) {
    .billing-admin-form .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .billing-admin-card {
        padding: 18px;
    }

    .billing-admin-form .form-grid {
        grid-template-columns: 1fr;
    }
}

.input-action-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.input-action-row input {
    flex: 1;
}

.form-help {
    display: block;
    margin-top: 7px;
    color: #6b7d90;
    font-size: 0.88rem;
}

.form-help-success {
    color: #16713a;
}

.form-help-error {
    color: #9b1c1c;
}

.sentinel-zone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 22px;
}

.sentinel-zone-card {
    background: #ffffff;
    border: 1px solid #dfe8f2;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0 18px 45px rgba(15, 35, 55, 0.08);
}

.sentinel-zone-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.sentinel-zone-card h2 {
    margin: 0;
    color: #203247;
    font-size: 1.55rem;
    line-height: 1.15;
}

.sentinel-zone-card p {
    margin: 8px 0 0;
    color: #667b92;
}

.sentinel-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 800;
}

.sentinel-status-active {
    background: #e9f8ef;
    color: #16713a;
    border: 1px solid #bfe8cd;
}

.sentinel-status-inactive {
    background: #f2f5f8;
    color: #6d7e90;
    border: 1px solid #d9e2ec;
}

.sentinel-status-warning {
    background: #fff8e8;
    color: #8a5a12;
    border: 1px solid #f1d39b;
}

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

.sentinel-meta-item {
    border-radius: 16px;
    background: #f6f9fc;
    border: 1px solid #e2ebf4;
    padding: 14px;
}

.sentinel-meta-item span {
    display: block;
    color: #7a8fa5;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.sentinel-meta-item strong {
    display: block;
    color: #26384d;
    font-size: 0.95rem;
    line-height: 1.3;
}

.sentinel-meta-detail {
    display: block;
    margin-top: 6px;
    color: #60758a;
    font-size: 0.82rem;
    line-height: 1.35;
}

.sentinel-token-box {
    border-radius: 18px;
    background: #eef5fb;
    border: 1px solid #d7e4f0;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.sentinel-token-box span {
    display: block;
    color: #60758a;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 7px;
}

.sentinel-token-box code {
    display: block;
    color: #1f2f42;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sentinel-startup-hint {
    margin: -6px 0 20px;
    color: #60758a;
    font-size: 0.9rem;
    line-height: 1.5;
}

.sentinel-zone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sentinel-zone-actions form {
    display: inline-flex;
}

.btn-sm {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

.btn.is-copied {
    background: #e9f8ef;
    color: #16713a;
    border-color: #bfe8cd;
}

.empty-state-card {
    background: #ffffff;
    border: 1px dashed #cbd8e6;
    border-radius: 26px;
    padding: 42px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 35, 55, 0.08);
}

.empty-state-card h2 {
    margin: 0 0 10px;
    color: #203247;
}

.empty-state-card p {
    max-width: 560px;
    margin: 0 auto 22px;
    color: #667b92;
    line-height: 1.6;
}

.platform-group-panel {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #dbe6f1;
    border-radius: 30px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 20px 55px rgba(15, 35, 55, 0.10);
}

.platform-group-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e0e9f3;
}

.platform-group-header h2 {
    margin: 0;
    font-size: 2rem;
    color: #1f2f42;
}

.platform-group-header p {
    margin: 8px 0 0;
    color: #667b92;
}

.platform-group-header-side {
    display: grid;
    justify-items: end;
    gap: 14px;
}

.pharmacy-mini-card {
    box-shadow: 0 12px 34px rgba(15, 35, 55, 0.075);
}

.role-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.role-check-grid label {
    display: flex;
    gap: 10px;
    align-items: center;
    border: 1px solid #dfe8f2;
    background: #f6f9fc;
    border-radius: 14px;
    padding: 12px 14px;
    color: #26384d;
    font-weight: 700;
}

.user-group-panel {
    background: rgba(255, 255, 255, 0.82);
    padding: 20px;
}

.user-group-panel .platform-group-header {
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.user-group-panel .platform-group-header h2 {
    font-size: 1.45rem;
}

.platform-user-grid,
.platform-invitation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.platform-invitation-grid {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 18px;
    align-items: start;
}

.user-profile-card,
.platform-invitation-card {
    position: relative;
    border: 1px solid #dfe8f2;
    border-radius: 18px;
    padding: 16px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 35, 55, 0.055);
}

.platform-invitation-card {
    overflow: hidden;
    padding: 18px;
}

.user-profile-card-header,
.platform-invitation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.platform-invitation-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
}

.platform-invitation-card-header > div {
    min-width: 0;
}

.user-profile-kicker {
    display: block;
    color: #54708f;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.user-profile-card h2,
.platform-invitation-card h2 {
    margin: 0;
    color: #17283d;
    font-size: 1.12rem;
    line-height: 1.2;
}

.platform-invitation-card h2 {
    overflow-wrap: anywhere;
}

.user-profile-card p,
.platform-invitation-card p {
    margin: 6px 0 0;
    color: #486078;
    font-size: 0.85rem;
    line-height: 1.35;
}

.user-profile-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.72rem;
    font-weight: 800;
}

.platform-invitation-card .user-profile-status {
    justify-self: end;
}

.user-profile-status.is-active {
    background: #e9f8ef;
    color: #16713a;
    border: 1px solid #bfe8cd;
}

.user-profile-status.is-inactive {
    background: #f2f5f8;
    color: #6d7e90;
    border: 1px solid #d9e2ec;
}

.user-profile-status.is-pending {
    background: #fff8e8;
    color: #8a5a12;
    border: 1px solid #f1d39b;
}

.user-profile-meta {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.user-profile-meta div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
    padding: 0;
    border: 0;
    background: transparent;
}

.platform-invitation-card .user-profile-meta div {
    grid-template-columns: 112px minmax(0, 1fr);
}

.user-profile-meta span {
    color: #6d8198;
    font-size: 0.72rem;
    font-weight: 800;
}

.user-profile-meta strong {
    color: #26384d;
    font-size: 0.82rem;
    line-height: 1.3;
}

.platform-invitation-card .user-profile-meta strong {
    overflow-wrap: anywhere;
}

.user-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-profile-card-group-manager {
    background: #f3f8ff;
    border-color: #b8d7f6;
}

.user-profile-card-platform-admin {
    background: #eef5fb;
    border-color: #9fc2e3;
}

.user-profile-card-pharmacy-admin {
    background: #f3fbf6;
    border-color: #bfe8cd;
}

.user-profile-card-operational {
    background: #fffaf0;
    border-color: #f1d39b;
}

.user-profile-card-minimal {
    background: #f7f9fc;
    border-color: #d9e2ec;
}

.user-profile-card-neutral {
    background: #fff6f8;
    border-color: #f0c4ce;
}

@media (max-width: 820px) {
    .platform-group-header {
        flex-direction: column;
    }

    .platform-group-header-side {
        justify-items: start;
    }
}

@media (max-width: 720px) {
    .platform-admin-hero {
        flex-direction: column;
        margin: 24px 16px 20px;
        padding: 28px;
    }

    .platform-admin-section {
        margin-left: 16px;
        margin-right: 16px;
    }

    .platform-admin-hero-actions {
        width: 100%;
        justify-content: stretch;
    }

    .platform-admin-hero-actions .btn {
        width: 100%;
    }

    .input-action-row {
        flex-direction: column;
    }

    .sentinel-zone-grid {
        grid-template-columns: 1fr;
    }

    .sentinel-zone-meta {
        grid-template-columns: 1fr;
    }

    .platform-invitation-grid {
        grid-template-columns: 1fr;
    }

    .platform-invitation-card-header {
        grid-template-columns: 1fr;
    }

    .platform-invitation-card .user-profile-status {
        justify-self: start;
    }
}

/* =========================
   FORM AND TABLE TIGHTENING
========================= */

.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.form-checkbox input[type="checkbox"] {
    appearance: auto;
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    flex: 0 0 18px;
    border-radius: 4px;
}

.form-checkbox label {
    margin: 0;
    line-height: 1.25;
}

.contract-onboarding-page {
    width: min(1760px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 0 0 56px;
}

.contract-onboarding-hero {
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
    padding: 30px 40px;
    align-items: center;
}

.contract-onboarding-hero h1,
.contract-onboarding-hero p {
    max-width: 980px;
}

.contract-onboarding-section {
    width: 100%;
    max-width: none;
    margin: 0 0 56px;
}

.contract-onboarding-card {
    width: 100%;
    padding: 28px;
}

/* =========================
   INTERNAL PRODUCTS
========================= */

.internal-product-card {
    max-width: 760px;
}

.internal-product-form .form-group {
    max-width: 520px;
}

.internal-product-form .form-group input:not([type="checkbox"]) {
    width: 100%;
}

.internal-product-checkbox-row {
    margin-top: 6px;
}

.internal-product-checkbox-row .form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: auto;
    margin: 0;
    cursor: pointer;
}

.internal-product-checkbox-row input[type="checkbox"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    flex: 0 0 18px;
}

.internal-products-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.internal-products-card-header h3 {
    margin: 0;
}

@media (max-width: 720px) {
    .internal-product-card {
        max-width: none;
    }

    .internal-products-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .internal-products-card-header .btn {
        width: 100%;
        text-align: center;
    }
}

.contract-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0;
}

.contract-content {
    max-width: 100%;
    line-height: 1.7;
    font-size: 0.98rem;
}

.contract-content p {
    margin-bottom: 14px;
}

.contract-acceptance-form {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e0e9f3;
}

.contract-checkbox-row {
    margin-bottom: 18px;
}

@media (max-width: 820px) {
    .contract-onboarding-page {
        width: min(100%, calc(100vw - 20px));
        padding: 14px 0 40px;
    }

    .contract-onboarding-hero {
        padding: 24px 26px;
    }

    .contract-onboarding-card {
        padding: 20px;
    }
}

.open-requests-table td.col-status,
.open-requests-table td.col-interaction,
.open-requests-table td.col-urgency {
    text-align: center;
}

.open-requests-table td.col-status .badge,
.open-requests-table td.col-interaction .badge,
.open-requests-table td.col-urgency .badge {
    white-space: nowrap;
    overflow-wrap: normal;
    font-size: 11px;
    padding: 4px 7px;
    line-height: 1.2;
    text-align: center;
}

/* Contract onboarding brand = exact app header dimensions */
.contract-brand-strip {
    display: flex;
    align-items: center;
    height: 76px;
    padding: 14px 24px;
}

.contract-brand-strip .brand-block,
.contract-brand-strip .brand-link {
    display: flex;
    align-items: center;
}

.contract-brand-strip .brand-link {
    gap: 14px;
}

.contract-brand-strip .brand-mark {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
}

.contract-brand-strip .brand-title {
    font-size: 28px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
}

.contract-brand-strip .brand-subtitle {
    font-size: 12px !important;
    line-height: 1.2 !important;
    font-weight: 600 !important;
}

/* =========================
   BRAND — FINAL CANONICAL APP STYLE
========================= */

.header .brand-title,
.contract-brand-strip .brand-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: #17324e !important;
    line-height: 1 !important;
}

.header .brand-subtitle,
.contract-brand-strip .brand-subtitle {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6b7a8c !important;
    line-height: 1.2 !important;
}

.header .brand-mark,
.contract-brand-strip .brand-mark {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
}

.header .brand-link,
.contract-brand-strip .brand-link {
    gap: 14px !important;
}

/* =========================
   CONTRACT ACCEPTANCE SNAPSHOT
========================= */

.commercial-snapshot-details {
    margin-top: 18px;
}

.commercial-snapshot-details summary {
    cursor: pointer;
    font-weight: 800;
    color: #17324e;
    margin-bottom: 14px;
}

.commercial-snapshot-grid {
    margin-top: 14px;
    margin-bottom: 18px;
}

.commercial-snapshot-grid .sentinel-meta-item {
    min-height: 92px;
}

/* =========================
   RELEASE NOTES
========================= */

.release-note-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.68);
}

.release-note-modal {
    width: min(720px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.release-note-modal h2 {
    margin: 8px 0 8px;
    color: #17324e;
    font-size: 28px;
    line-height: 1.2;
}

.release-note-summary {
    margin-top: 16px;
    color: #2d3f55;
    font-weight: 700;
}

.release-note-content {
    margin: 18px 0;
    color: #2d3f55;
    line-height: 1.65;
}

.release-note-content p {
    margin: 0 0 12px;
}

.release-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
}

.release-note-actions form {
    margin: 0;
}

@media (max-width: 640px) {
    .release-note-modal-backdrop {
        padding: 14px;
    }

    .release-note-modal {
        padding: 22px;
    }

    .release-note-modal h2 {
        font-size: 24px;
    }

    .release-note-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .release-note-actions .btn,
    .release-note-actions form,
    .release-note-actions button {
        width: 100%;
    }
}

/* =========================
   PUBLIC LANDING — VALUE SECTIONS
========================= */

.landing-value-section {
    padding-top: 72px;
}

.section-intro {
    max-width: 920px;
    margin-bottom: 32px;
}

.section-intro h2,
.landing-proof-card h2,
.landing-cta-card h2,
.contact-hero h1 {
    color: #10233f;
    letter-spacing: -0.04em;
}

.section-intro h2,
.landing-proof-card h2 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.08;
    max-width: 980px;
}

.section-intro p,
.landing-proof-card p,
.landing-cta-card p,
.contact-hero p,
.contact-card p,
.contact-note p {
    color: #425d79;
    line-height: 1.7;
}

.landing-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.landing-info-card {
    min-height: 260px;
    padding: 26px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
        rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.landing-info-card span,
.contact-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-info-card h3 {
    margin: 0 0 12px;
    color: #10233f;
    font-size: 1.25rem;
    line-height: 1.2;
}

.landing-info-card p {
    margin: 0;
    color: #4b6380;
    line-height: 1.65;
}

.landing-proof-section {
    padding-top: 34px;
}

.landing-proof-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    gap: 42px;
    align-items: center;
    padding: 42px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.82));
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.security-list-polished {
    gap: 14px;
}

.security-list-polished div {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px 22px 18px 52px;
}

.security-list-polished div::before {
    content: "✓";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.10);
    color: #1d4ed8;
    font-size: 0.82rem;
    font-weight: 900;
}

.security-list-polished strong {
    color: #10233f;
    font-size: 0.98rem;
    line-height: 1.25;
}

.security-list-polished span {
    color: #5b7088;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.45;
}

.landing-cta-section {
    padding-top: 28px;
    padding-bottom: 74px;
}

.landing-cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 34px 38px;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.14), transparent 34%),
        linear-gradient(135deg, #10233f, #164f93);
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 35, 75, 0.22);
}

.landing-cta-card h2,
.landing-cta-card p {
    color: #ffffff;
}

.landing-cta-card h2 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 2.5vw, 2.6rem);
}

.landing-cta-card p {
    margin: 0;
    max-width: 760px;
    opacity: 0.88;
}

.landing-cta-card .hero-primary {
    background: #ffffff;
    color: #174f8f !important;
    white-space: nowrap;
}

/* =========================
   PUBLIC CONTACT PAGE
========================= */

.contact-page {
    padding: 70px 7% 80px;
}

.contact-hero {
    max-width: 880px;
    margin-bottom: 34px;
}

.contact-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    line-height: 1.02;
}

.contact-hero p {
    max-width: 760px;
    font-size: 1.12rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.contact-grid-simple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 920px;
}

.contact-card {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.contact-card-primary {
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 38%),
        rgba(255, 255, 255, 0.92);
    border-color: rgba(37, 99, 235, 0.22);
}

.contact-card h2 {
    margin: 0 0 12px;
    color: #10233f;
    font-size: 1.28rem;
}

.contact-card strong {
    display: block;
    margin-top: 18px;
    color: #1d4ed8;
    overflow-wrap: anywhere;
}

.contact-note {
    margin-top: 28px;
    max-width: 920px;
    padding: 28px 32px;
    border-radius: 28px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
}

.contact-note h2 {
    margin: 0 0 10px;
    color: #10233f;
}

.contact-note p {
    margin: 0;
}

@media (max-width: 1100px) {
    .landing-card-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-proof-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .landing-card-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid-simple {
        grid-template-columns: 1fr;
    }

    .security-list-polished div {
        grid-template-columns: 1fr;
        gap: 6px;
        align-items: start;
    }

    .landing-proof-card,
    .landing-cta-card {
        padding: 26px;
        border-radius: 26px;
    }

    .landing-cta-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-cta-card .hero-primary {
        width: 100%;
        text-align: center;
    }

    .contact-page {
        padding: 46px 18px 62px;
    }
}
