/* =============================================================
   SIC Tank Designer — Customer Dashboard CSS
   ============================================================= */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@400;500;600&display=swap');

:root {
    --sic-navy:    #066aab;
    --sic-dark:    #1a2b48;
    --sic-green:   #22aa55;
    --sic-border:  #d0dde8;
    --sic-light:   #f0f7ff;
    --sic-muted:   #7f94a8;
    --sic-radius:  8px;
    --sic-shadow:  0 4px 24px rgba(6,106,171,.10);
}

/* ── Wrapper ─────────────────────────────────────────────── */
.sictd-dash-wrap {
    font-family: 'Barlow', sans-serif;
    max-width: 960px;
    margin: 0 auto 40px;
    color: #2c3e50;
}

/* ── Header ──────────────────────────────────────────────── */
.sictd-dash-header {
    background: linear-gradient(135deg, var(--sic-navy) 0%, var(--sic-dark) 100%);
    border-radius: 12px 12px 0 0;
    padding: 0;
}
.sictd-dash-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 28px;
}
.sictd-dash-logo {
    height: 44px;
    width: auto;
    border-radius: 6px;
    flex-shrink: 0;
}
.sictd-dash-header-text { flex: 1; }
.sictd-dash-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-bottom: 3px;
}
.sictd-dash-welcome {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}
.sictd-dash-welcome strong { font-weight: 700; }
.sictd-dash-co { color: rgba(255,255,255,.7); font-size: 14px; }
.sictd-dash-logout {
    color: rgba(255,255,255,.6);
    font-size: 13px;
    text-decoration: none;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    transition: all .2s;
    white-space: nowrap;
}
.sictd-dash-logout:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
}

/* ── Tabs ────────────────────────────────────────────────── */
.sictd-dash-tabs {
    display: flex;
    background: #fff;
    border-bottom: 2px solid var(--sic-border);
    border-left: 1px solid var(--sic-border);
    border-right: 1px solid var(--sic-border);
}
.sictd-dash-tab {
    padding: 14px 24px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--sic-muted);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all .2s;
}
.sictd-dash-tab:hover { color: var(--sic-navy); }
.sictd-dash-tab.active {
    color: var(--sic-navy);
    border-bottom-color: var(--sic-navy);
}

/* ── Tab content ─────────────────────────────────────────── */
.sictd-dash-tab-content {
    display: none;
    background: #fff;
    border: 1px solid var(--sic-border);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    padding: 28px;
}
.sictd-dash-tab-content.active { display: block; }

.sictd-dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.sictd-dash-section-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--sic-dark);
    margin: 0;
    letter-spacing: .5px;
}

/* ── New config button ───────────────────────────────────── */
.sictd-dash-new-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--sic-navy);
    color: #fff !important;
    text-decoration: none !important;
    padding: 9px 18px;
    border-radius: var(--sic-radius);
    font-size: 14px;
    font-weight: 600;
    transition: all .2s;
}
.sictd-dash-new-btn:hover {
    background: #0550a0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6,106,171,.3);
}

/* ── Orders table ────────────────────────────────────────── */
.sictd-dash-orders-table-wrap {
    overflow-x: auto;
}
.sictd-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.sictd-dash-table thead tr {
    background: var(--sic-dark);
    color: #fff;
}
.sictd-dash-table th {
    padding: 11px 16px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .5px;
    text-transform: uppercase;
    text-align: left;
}
.sictd-dash-table tbody tr {
    border-bottom: 1px solid var(--sic-border);
    transition: background .15s;
}
.sictd-dash-table tbody tr:hover { background: var(--sic-light); }
.sictd-dash-table td { padding: 12px 16px; vertical-align: middle; }
.sictd-dash-num  { color: var(--sic-muted); font-weight: 700; width: 40px; }
.sictd-dash-date { color: var(--sic-muted); white-space: nowrap; }
.sictd-dash-code code {
    background: var(--sic-light);
    border: 1px solid var(--sic-border);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    color: var(--sic-navy);
    font-weight: 600;
    letter-spacing: .5px;
    word-break: break-all;
}
.sictd-dash-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--sic-green);
    color: #fff !important;
    text-decoration: none !important;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s;
}
.sictd-dash-pdf-btn:hover {
    background: #1a9944;
    transform: translateY(-1px);
}
.sictd-dash-no-pdf { color: var(--sic-muted); font-size: 12px; }

/* ── Empty state ─────────────────────────────────────────── */
.sictd-dash-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--sic-muted);
}
.sictd-dash-empty-icon { font-size: 48px; margin-bottom: 16px; }
.sictd-dash-empty p { font-size: 15px; margin-bottom: 20px; }

/* ── Profile form ────────────────────────────────────────── */
.sictd-dash-profile-form { max-width: 640px; }
.sictd-dash-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.sictd-dash-form-row.sictd-full { grid-template-columns: 1fr; }
.sictd-dash-field { display: flex; flex-direction: column; gap: 6px; }
.sictd-dash-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: var(--sic-muted);
}
.sictd-req { color: #cc2200; }
.sictd-dash-field input {
    padding: 10px 14px;
    border: 2px solid var(--sic-border);
    border-radius: var(--sic-radius);
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    color: var(--sic-dark);
    transition: border-color .2s;
    box-sizing: border-box;
}
.sictd-dash-field input:focus {
    outline: none;
    border-color: var(--sic-navy);
    box-shadow: 0 0 0 3px rgba(6,106,171,.1);
}
.sictd-dash-field-note {
    font-size: 11px;
    color: var(--sic-muted);
    margin-top: 2px;
}
.sictd-dash-password-section {
    border-top: 1px solid var(--sic-border);
    margin-top: 20px;
    padding-top: 20px;
}
.sictd-dash-password-section h3 {
    font-size: 15px;
    color: var(--sic-dark);
    margin: 0 0 14px;
}
.sictd-dash-optional { font-size: 12px; color: var(--sic-muted); font-weight: 400; }
.sictd-dash-form-actions {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.sictd-dash-save-btn {
    padding: 12px 24px;
    background: var(--sic-navy);
    color: #fff;
    border: none;
    border-radius: var(--sic-radius);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .2s;
}
.sictd-dash-save-btn:hover:not(:disabled) {
    background: #0550a0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6,106,171,.3);
}
.sictd-dash-save-btn:disabled { opacity: .6; cursor: not-allowed; }
.sictd-dash-feedback {
    font-size: 13px;
    font-weight: 600;
}
.sictd-dash-feedback.ok    { color: var(--sic-green); }
.sictd-dash-feedback.error { color: #cc2200; }

/* ── Login prompt ────────────────────────────────────────── */
.sictd-dash-login-prompt {
    display: flex;
    justify-content: center;
    padding: 48px 20px;
}
.sictd-dash-login-box {
    background: #fff;
    border: 1px solid var(--sic-border);
    border-top: 4px solid var(--sic-navy);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    box-shadow: var(--sic-shadow);
}
.sictd-dash-login-logo img {
    height: 52px;
    margin: 0 auto 20px;
    display: block;
}
.sictd-dash-login-box h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    color: var(--sic-dark);
    margin: 0 0 10px;
}
.sictd-dash-login-box p { color: var(--sic-muted); font-size: 14px; margin: 0 0 24px; line-height: 1.6; }
.sictd-dash-login-btn {
    display: inline-block;
    background: var(--sic-navy);
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 28px;
    border-radius: var(--sic-radius);
    font-size: 15px;
    font-weight: 700;
    transition: all .2s;
}
.sictd-dash-login-btn:hover {
    background: #0550a0;
    box-shadow: 0 4px 14px rgba(6,106,171,.3);
}

/* ── Access denied ───────────────────────────────────────── */
.sictd-dash-denied {
    background: #fff5f5;
    border: 1px solid #fcc;
    border-left: 4px solid #cc2200;
    border-radius: 8px;
    padding: 20px;
    color: #cc2200;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .sictd-dash-header-inner { flex-wrap: wrap; gap: 12px; }
    .sictd-dash-form-row { grid-template-columns: 1fr; }
    .sictd-dash-tab { padding: 12px 14px; font-size: 13px; }
    .sictd-dash-section-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sictd-dash-tab-content { padding: 20px 16px; }
}
