
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --brand: #254f91;
    --brand-dark: #173765;
    --ink: #1d2939;
    --muted: #667085;
    --line: #e8edf4;
    --page: #f5f7fb;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: var(--ink);
}

/* LOGIN PAGE */

.login-body,
.generator-body {
    min-height: 100vh;
    margin: 0;
    background: #f4f7fc;
}

.login-shell {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    min-height: 100vh;
}

.login-brand-panel {
    padding: clamp(32px, 5vw, 76px);
    display: flex;
    flex-direction: column;
    color: #fff;
    background: linear-gradient(145deg, #173765, #24549a 60%, #3679bd);
    position: relative;
    overflow: hidden;
}

.login-brand-panel::after {
    content: '';
    width: 440px;
    height: 440px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    position: absolute;
    right: -160px;
    bottom: -170px;
    box-shadow: 0 0 0 45px rgba(255,255,255,.025),
                0 0 0 90px rgba(255,255,255,.025);
}

.login-brand,
.mobile-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 21px;
    font-weight: 800;
}

.login-brand img,
.mobile-login-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
}

.brand-message {
    margin: auto 0;
    max-width: 510px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.login-brand-panel .eyebrow {
    color: #c5dcff;
}

.brand-message h1 {
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.8px;
    margin: 20px 0;
}

.brand-message p {
    color: #e0eaff;
    line-height: 1.8;
    max-width: 430px;
    font-size: 15px;
}

.brand-bottom {
    color: #d9e6f8;
    font-size: 12px;
    position: relative;
    z-index: 1;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
    background: #fff;
}

.login-form-wrap {
    width: 100%;
    max-width: 410px;
}

.login-form-wrap h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 10px 0 8px;
}

.login-form-wrap .eyebrow {
    letter-spacing: 1.7px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #98a2b3;
    z-index: 2;
}

.input-icon-wrap .form-control {
    height: 49px;
    padding-left: 43px;
    padding-right: 44px;
    border-color: #dfe5ee;
    border-radius: 10px;
    font-size: 13px;
}

.input-icon-wrap .form-control:focus {
    border-color: #7099d3;
    box-shadow: 0 0 0 3px rgba(37,79,145,.1);
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #7a8699;
    padding: 8px;
}

.login-submit {
    height: 49px;
    border-radius: 10px;
    background: var(--brand);
    border-color: var(--brand);
    font-weight: 700;
    font-size: 14px;
}

.login-submit:hover {
    background: var(--brand-dark);
}

.login-help {
    color: #7c8798;
    font-size: 11px;
    margin-top: 23px;
}

.login-copyright {
    border-top: 1px solid #eef1f6;
    padding-top: 18px;
    margin-top: 35px;
    color: #98a2b3;
    font-size: 11px;
}

.mobile-login-brand {
    display: none;
    margin-bottom: 28px;
    color: var(--brand-dark);
}

/* PASSWORD GENERATOR */

.generator-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.generator-card {
    width: min(100%, 520px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 16px 50px rgba(22,45,82,.08);
}

.generator-card h1 {
    font-weight: 800;
}

.generator-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: #eaf1fc;
    color: var(--brand);
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 20px;
}

.hash-output {
    font-family: monospace;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* ADMIN SIDEBAR */

.admin-body {
    background: var(--page);
    margin: 0;
}

.admin-layout {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 258px;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 24px 15px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform .25s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 9px 26px;
    text-decoration: none;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
}

.sidebar-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.sidebar-brand span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-brand small {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #8994a5;
    font-weight: 700;
}

.sidebar-label {
    color: #98a2b3;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 17px 12px 9px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 13px;
    margin: 2px 0;
    color: #586579;
    text-decoration: none;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    min-height: 42px;
}

.sidebar-link > i {
    width: 17px;
    text-align: center;
    font-size: 14px;
}

.sidebar-link.active {
    background: #edf3fc;
    color: var(--brand);
}

.sidebar-link:hover {
    background: #f4f7fb;
    color: var(--brand);
}

.sidebar-note {
    display: flex;
    gap: 9px;
    align-items: center;
    margin: auto 5px 0;
    padding: 13px 10px 0;
    border-top: 1px solid var(--line);
    color: #8b95a5;
    font-size: 10px;
}

/* MAIN CONTENT AND TOPBAR */

.admin-main {
    margin-left: 258px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: 83px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 34px;
}

.topbar-left,
.topbar-user {
    display: flex;
    align-items: center;
    gap: 13px;
}

.topbar-kicker {
    color: #8994a5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.topbar h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.topbar-user-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.topbar-user-text strong {
    font-size: 11px;
}

.topbar-user-text small {
    font-size: 10px;
    color: #8994a5;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e7effb;
    color: var(--brand);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
}

.sidebar-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    width: 37px;
    height: 37px;
    border-radius: 8px;
    color: #536176;
}

.admin-content {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px 34px 34px;
    flex: 1;
}

/* WELCOME BANNER */

.welcome-banner {
    min-height: 160px;
    background: linear-gradient(110deg, #193b6d, #2b5d9d);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.welcome-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #c7ddff;
}

.welcome-banner h2 {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    margin: 11px 0 7px;
    letter-spacing: -.7px;
}

.welcome-banner p {
    color: #e0eaff;
    margin: 0;
    font-size: 12px;
}

.welcome-art {
    font-size: 76px;
    color: rgba(255,255,255,.14);
    padding: 0 20px;
    transform: rotate(-8deg);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 29px 0 16px;
}

.section-heading h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 5px;
}

.section-heading p {
    color: #8792a3;
    font-size: 11px;
    margin: 0;
}

.date-pill {
    border: 1px solid var(--line);
    background: #fff;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    color: #596579;
}

/* DASHBOARD STATISTICS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card,
.panel-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.stat-card {
    padding: 19px;
    min-width: 0;
}

.stat-icon {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 15px;
    margin-bottom: 18px;
}

.icon-blue {
    background: #eaf1ff;
    color: #3868b4;
}

.icon-purple {
    background: #f2eaff;
    color: #8756bb;
}

.icon-orange {
    background: #fff0e2;
    color: #d7812b;
}

.icon-green {
    background: #e4f7ef;
    color: #26946c;
}

.stat-label {
    color: #7b8798;
    font-size: 11px;
    font-weight: 600;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 5px 0 4px;
}

.stat-foot {
    color: #a0a8b5;
    font-size: 9px;
}

/* DASHBOARD PANELS */

.dashboard-columns {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 17px;
    margin-top: 19px;
}

.panel-card {
    padding: 21px;
    min-width: 0;
}

.panel-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 17px;
}

.panel-card-heading h3 {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 5px;
}

.panel-card-heading p {
    color: #929bab;
    font-size: 10px;
    margin: 0;
}

.quick-actions {
    display: flex;
    flex-direction: column;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 0;
    border-top: 1px solid #f0f2f6;
    color: var(--ink);
    text-decoration: none;
}

.quick-action:hover {
    color: var(--brand);
}

.quick-action-icon {
    flex: 0 0 35px;
    height: 35px;
    display: grid;
    place-items: center;
    background: #f2f6fc;
    color: var(--brand);
    border-radius: 9px;
}

.quick-action > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-action strong {
    font-size: 10px;
}

.quick-action small {
    color: #98a2b3;
    font-size: 9px;
}

.setup-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.setup-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 10px;
    padding: 9px 0;
    color: #5e6a7b;
}

.setup-note {
    background: #f5f8fd;
    color: #758197;
    padding: 11px;
    border-radius: 8px;
    font-size: 9px;
    margin-top: 12px;
}

.dashboard-bottom-note {
    color: #8994a5;
    font-size: 10px;
    margin-top: 20px;
}

.admin-footer {
    border-top: 1px solid var(--line);
    padding: 17px 34px;
    display: flex;
    justify-content: space-between;
    color: #98a2b3;
    font-size: 9px;
    background: #fff;
}

/* RESPONSIVE DESIGN */

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        display: none;
    }

    .login-form-panel {
        min-height: 100vh;
        padding: 28px;
    }

    .mobile-login-brand {
        display: flex;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    .admin-sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(16,24,40,.15);
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-grid;
        place-items: center;
    }

    .topbar {
        padding: 15px 18px;
    }

    .admin-content {
        padding: 20px 18px;
    }

    .admin-footer {
        padding: 15px 18px;
    }

    .welcome-banner {
        padding: 23px;
    }

    .welcome-art {
        font-size: 48px;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-number {
        font-size: 23px;
    }

    .topbar-user-text {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .welcome-art {
        display: none;
    }

    .generator-card {
        padding: 22px;
    }
}



/* Clients module */
.clients-page {
    --client-primary: #3157c8;
    --client-border: #e6eaf1;
    --client-muted: #718096;
    --client-text: #202b3c;
    --client-bg: #f7f9fc;
}

.clients-page .admin-content {
    padding-bottom: 30px;
}

.clients-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.clients-heading h2 {
    color: var(--client-text);
    font-size: 24px;
    font-weight: 750;
    margin: 0 0 5px;
}

.clients-heading p,
.client-card-heading p,
.client-list-top p {
    color: var(--client-muted);
    font-size: 13px;
    margin: 0;
}

.clients-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--client-border);
    margin-bottom: 22px;
    padding-bottom: 12px;
}

.client-tab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border-radius: 9px;
    text-decoration: none;
    color: #566176;
    font-size: 14px;
    font-weight: 650;
    border: 1px solid var(--client-border);
    background: #fff;
    transition: .2s ease;
}

.client-tab:hover,
.client-tab.active {
    color: var(--client-primary);
    background: #eef3ff;
    border-color: #cbd8ff;
}

.client-card {
    background: #fff;
    border: 1px solid var(--client-border);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(30, 45, 75, .035);
    overflow: hidden;
    margin-bottom: 22px;
}

.client-card-heading,
.client-list-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--client-border);
}

.client-card-heading h3,
.client-list-top h3 {
    font-size: 18px;
    font-weight: 750;
    color: var(--client-text);
    margin: 0 0 6px;
}

.client-card-heading > i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--client-primary);
    background: #eef3ff;
    font-size: 19px;
}

.client-form {
    padding: 24px;
}

.client-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.client-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.client-field label {
    color: #39465a;
    font-size: 13px;
    font-weight: 650;
}

.client-field input,
.client-field textarea,
.client-field select {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #dce2eb;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--client-text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.client-field input:focus,
.client-field textarea:focus,
.client-field select:focus {
    border-color: var(--client-primary);
    box-shadow: 0 0 0 3px rgba(49, 87, 200, .10);
}

.client-field textarea {
    resize: vertical;
}

.client-field.full-width {
    grid-column: 1 / -1;
}

.client-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--client-border);
}

.client-btn {
    min-height: 39px;
    padding: 10px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: .2s ease;
}

.client-btn.primary {
    color: #fff;
    background: var(--client-primary);
    border-color: var(--client-primary);
}

.client-btn.primary:hover {
    background: #2445a9;
}

.client-btn.secondary {
    color: #475569;
    background: #fff;
    border-color: #dce2eb;
}

.client-btn.secondary:hover {
    background: #f4f6fa;
}

.client-btn.export {
    color: #187344;
    background: #edf9f1;
    border-color: #c8ead4;
}

.client-btn.export:hover {
    background: #def4e6;
}

.client-filters {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
    gap: 15px;
    align-items: end;
    padding: 20px 24px;
    border-bottom: 1px solid var(--client-border);
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.export-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

.client-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.client-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    white-space: nowrap;
}

.client-table thead th {
    padding: 14px 16px;
    text-align: left;
    color: #68758a;
    background: #f8fafd;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .45px;
    font-weight: 750;
    border-bottom: 1px solid var(--client-border);
}

.client-table tbody td {
    padding: 16px;
    color: #465267;
    vertical-align: middle;
    border-bottom: 1px solid #edf0f5;
}

.client-table tbody tr:last-child td {
    border-bottom: 0;
}

.client-table tbody tr:hover {
    background: #fafcff;
}

.client-name {
    color: var(--client-text);
    font-weight: 700;
    margin-bottom: 4px;
}

.client-email {
    color: var(--client-muted);
    font-size: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 750;
}

.status-pill.active {
    color: #167447;
    background: #e6f7ee;
}

.status-pill.inactive {
    color: #a34444;
    background: #fff0f0;
}

.client-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.client-actions form {
    margin: 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 33px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.action-btn.edit {
    color: #3157c8;
    background: #eef3ff;
    border-color: #dce5ff;
}

.action-btn.deactivate {
    color: #ad4141;
    background: #fff1f1;
    border-color: #ffdddd;
}

.action-btn.activate {
    color: #167447;
    background: #e8f8ef;
    border-color: #c9ecd7;
}

.client-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    margin-bottom: 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
}

.client-alert.success {
    color: #176b43;
    background: #eaf8ef;
    border: 1px solid #c9ead5;
}

.client-alert.error {
    color: #a52d36;
    background: #fff0f1;
    border: 1px solid #f3d0d3;
}

.empty-state {
    text-align: center;
    padding: 48px 20px !important;
    white-space: normal;
}

.empty-state i {
    display: block;
    font-size: 30px;
    color: #a8b4c8;
    margin-bottom: 12px;
}

.empty-state strong,
.empty-state span {
    display: block;
}

.empty-state strong {
    color: var(--client-text);
    margin-bottom: 7px;
    font-size: 14px;
}

.empty-state span {
    color: var(--client-muted);
    font-size: 12px;
}

@media (max-width: 1100px) {
    .client-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .export-row {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .clients-heading h2 {
        font-size: 21px;
    }

    .clients-tabs {
        gap: 7px;
    }

    .client-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
    }

    .client-form-grid,
    .client-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .client-card-heading,
    .client-list-top {
        padding: 17px;
        align-items: flex-start;
    }

    .client-form {
        padding: 17px;
    }

    .client-filters {
        padding: 17px;
    }

    .filter-actions {
        flex-wrap: wrap;
    }

    .filter-actions .client-btn {
        flex: 1;
    }

    .export-row {
        justify-content: stretch;
    }

    .export-row .client-btn {
        width: 100%;
    }

    .client-form-actions {
        flex-wrap: wrap;
    }

    .client-form-actions .client-btn {
        flex: 1;
    }
}

.queries-page {
    padding: 28px;
    min-width: 0;
}

.queries-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.queries-eyebrow {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.queries-heading h1 {
    margin: 6px 0;
    color: #172554;
    font-size: 28px;
    font-weight: 750;
}

.queries-heading p,
.query-panel-heading p {
    color: #64748b;
    margin: 0;
    font-size: 14px;
}

.queries-date {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    border-radius: 10px;
    color: #475569;
    white-space: nowrap;
}

.query-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.query-stat-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .035);
}

.query-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.icon-total {
    color: #1d4ed8;
    background: #eff6ff;
}

.icon-new {
    color: #b45309;
    background: #fffbeb;
}

.icon-progress {
    color: #7c3aed;
    background: #f5f3ff;
}

.icon-completed {
    color: #047857;
    background: #ecfdf5;
}

.query-stat-card p {
    margin: 0 0 5px;
    font-size: 13px;
    color: #64748b;
}

.query-stat-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 26px;
    font-weight: 750;
}

.query-table-panel {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .035);
}

.query-panel-heading {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.query-panel-heading h2 {
    color: #172554;
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
}

.query-results-count {
    border-radius: 20px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.query-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 24px 20px;
}

.query-search-box {
    position: relative;
    flex: 1 1 250px;
}

.query-search-box > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.query-search-box input {
    padding-left: 38px;
    min-height: 42px;
}

.query-status-filter {
    flex: 0 1 190px;
    min-height: 42px;
}

.query-filter-btn,
.query-reset-btn {
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
}

.query-filter-btn {
    background: #1d4ed8;
    color: #fff;
}

.query-filter-btn:hover {
    background: #1e40af;
    color: #fff;
}

.query-reset-btn {
    background: #f1f5f9;
    color: #475569;
}

.query-table {
    min-width: 1050px;
}

.query-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    letter-spacing: .6px;
    padding: 15px 14px;
    border-top: 1px solid #edf1f7;
    border-bottom: 1px solid #edf1f7;
    white-space: nowrap;
}

.query-table tbody td {
    padding: 17px 14px;
    border-color: #edf1f7;
    color: #334155;
    font-size: 13px;
    vertical-align: middle;
}

.query-table tbody tr:hover {
    background: #fbfdff;
}

.query-subtext {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.query-status-badge {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.status-submitted {
    color: #1d4ed8;
    background: #eff6ff;
}

.status-under_review {
    color: #92400e;
    background: #fef3c7;
}

.status-quotation_sent {
    color: #6d28d9;
    background: #f3e8ff;
}

.status-accepted {
    color: #047857;
    background: #d1fae5;
}

.status-in_progress {
    color: #0369a1;
    background: #e0f2fe;
}

.status-completed {
    color: #166534;
    background: #dcfce7;
}

.status-cancelled {
    color: #b91c1c;
    background: #fee2e2;
}

.query-view-btn,
.query-pdf-btn,
.query-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 7px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.query-view-btn {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.query-view-btn:hover {
    background: #1d4ed8;
    color: #fff;
}

.query-pdf-btn {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #ffe4e6;
}

.query-pdf-btn:hover {
    background: #be123c;
    color: #fff;
}

.query-download-btn {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
}

.query-download-btn:hover {
    background: #047857;
    color: #fff;
}

.query-modal {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
}

.query-modal .modal-header {
    background: #f8fafc;
    padding: 20px 24px;
}

.query-modal .modal-body {
    padding: 24px;
}

.query-modal .modal-body p {
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .query-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .queries-page {
        padding: 16px;
    }

    .queries-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .query-stat-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .query-panel-heading {
        padding: 18px;
    }

    .query-filter-form {
        padding: 0 18px 18px;
    }

    .query-search-box,
    .query-status-filter {
        flex-basis: 100%;
    }
}