.admin-shell,
.admin-shell *,
.admin-shell *::before,
.admin-shell *::after {
    box-sizing: border-box;
}

.admin-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(0, 82, 155, 0.1), transparent 26%),
        radial-gradient(circle at 90% 8%, rgba(242, 130, 32, 0.12), transparent 28%),
        #f4f8fb;
    color: #021c52;
    font-family: 'Inter', sans-serif;
}

.admin-topbar {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) auto minmax(180px, 0.8fr);
    align-items: center;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 4vw, 2rem);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(0, 82, 155, 0.1);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: #021c52;
    text-decoration: none;
}

.admin-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.admin-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
}

.admin-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.28rem;
    border-radius: 999px;
    background: #edf5fb;
    border: 1px solid rgba(0, 82, 155, 0.1);
}

.admin-nav-btn {
    border: none;
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    background: transparent;
    color: #5f7288;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.admin-nav-btn.active {
    background: #021c52;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(2, 28, 82, 0.18);
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, #021c52, #00529b);
    color: #ffffff;
}

.admin-btn.secondary {
    background: #e8f3fb;
    color: #00529b;
    border: 1px solid rgba(0, 82, 155, 0.12);
}

.admin-main {
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.6rem 0 3rem;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-hero-card {
    padding: clamp(1.15rem, 2.4vw, 1.55rem);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(2, 28, 82, 0.96), rgba(0, 82, 155, 0.9)),
        radial-gradient(circle at 85% 20%, rgba(242, 130, 32, 0.35), transparent 30%);
    color: #ffffff;
    box-shadow: 0 24px 55px rgba(2, 28, 82, 0.18);
}

.admin-eyebrow {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: rgba(242, 130, 32, 0.16);
    border: 1px solid rgba(242, 130, 32, 0.35);
    color: #ffb05f;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.7rem, 3.4vw, 2.25rem);
    margin: 0 0 0.28rem;
    letter-spacing: -0.02em;
}

.admin-hero p {
    margin: 0;
    color: inherit;
    opacity: 0.78;
}

.admin-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    min-width: max-content;
}

.admin-sync {
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.8;
}

.admin-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.admin-stat,
.admin-panel,
.auth-card {
    background: #ffffff;
    border: 1px solid rgba(45, 138, 160, 0.14);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(11, 31, 51, 0.07);
}

.admin-stat {
    position: relative;
    overflow: hidden;
    min-height: 124px;
    padding: 1rem;
}

.admin-stat::after {
    content: '';
    position: absolute;
    right: -28px;
    bottom: -32px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.08;
}

.admin-stat i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 0.62rem;
    border-radius: 12px;
    background: rgba(0, 82, 155, 0.1);
    color: #00529b;
}

.admin-stat.tone-green i { background: rgba(55, 142, 68, 0.12); color: #378e44; }
.admin-stat.tone-orange i { background: rgba(242, 130, 32, 0.14); color: #f28220; }
.admin-stat.tone-dark i { background: rgba(2, 28, 82, 0.12); color: #021c52; }

.admin-stat span {
    display: block;
    color: #5f7288;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-stat strong {
    display: block;
    margin-top: 0.35rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.85rem;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-search {
    position: relative;
}

.admin-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00529b;
}

.admin-search input,
.admin-toolbar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(0, 82, 155, 0.14);
    border-radius: 14px;
    background: #ffffff;
    color: #021c52;
    font: 700 0.9rem 'Inter', sans-serif;
    outline: none;
    box-shadow: 0 12px 30px rgba(0, 45, 95, 0.06);
}

.admin-search input {
    padding: 0 1rem 0 2.7rem;
}

.admin-toolbar select {
    padding: 0 0.9rem;
}

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

.admin-grid-feature {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.admin-grid-clients {
    grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1.05fr);
    align-items: start;
}

.admin-grid-personnel {
    grid-template-columns: minmax(380px, 1fr) minmax(360px, 0.95fr);
    align-items: start;
}

.personnel-chat-panel {
    grid-column: 1 / -1;
}

.personnel-jobs-panel {
    grid-column: 1 / -1;
}

.admin-grid-applications {
    grid-template-columns: minmax(430px, 1fr) minmax(390px, 0.9fr);
    align-items: start;
}

.applications-stack {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.accepted-applications-panel {
    border-color: rgba(55, 142, 68, 0.16);
}

.accepted-applications-panel .admin-panel-header {
    background: linear-gradient(135deg, rgba(55, 142, 68, 0.08), rgba(255, 255, 255, 0));
}

.mobile-application-chat-slot {
    display: none;
}

.personnel-job-row {
    gap: 0.5rem;
}

.personnel-job-row > strong {
    font-size: 1.02rem;
}

.job-candidate-panel {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding: 0.75rem;
    border: 1px solid rgba(0, 82, 155, 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
}

.job-assignment-row .job-candidate-panel {
    grid-column: 2;
    width: 100%;
}

.job-candidate-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.15rem 0.1rem 0.35rem;
}

.job-candidate-title strong {
    font-size: 0.85rem;
}

.job-candidate-title span {
    color: #5f7288;
    font-size: 0.78rem;
    font-weight: 800;
}

.job-candidate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    width: 100%;
    border: 1px solid rgba(0, 82, 155, 0.12);
    border-radius: 12px;
    padding: 0.72rem 0.8rem;
    background: #ffffff;
    color: #021c52;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.job-candidate:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 82, 155, 0.28);
    box-shadow: 0 12px 24px rgba(0, 82, 155, 0.08);
}

.job-candidate strong,
.job-candidate small {
    display: block;
}

.job-candidate small {
    margin-top: 0.15rem;
    color: #5f7288;
    font-size: 0.78rem;
}

.job-candidate em {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    background: rgba(55, 142, 68, 0.12);
    color: #28783c;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-view {
    display: none;
}

.admin-view.active {
    display: block;
}

.admin-panel-wide {
    grid-column: 1 / -1;
}

.admin-panel {
    overflow: hidden;
    min-width: 0;
}

.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 58px;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(11, 31, 51, 0.08);
}

.admin-panel-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin: 0;
}

.admin-panel-hint {
    color: #8a9aad;
    font-size: 0.78rem;
    font-weight: 800;
}

.admin-list {
    display: grid;
    align-content: start;
}

.admin-table {
    display: grid;
    align-content: start;
}

.admin-row {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid rgba(11, 31, 51, 0.06);
}

.rich-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
}

.rich-row .admin-row-actions {
    grid-column: 2;
}

.admin-row:last-child {
    border-bottom: none;
}

.admin-row strong {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #021c52;
}

.admin-row-main {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
    border: none;
    padding: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.admin-row small,
.admin-row p {
    margin: 0;
    color: #5f7288;
    font-size: 0.84rem;
    line-height: 1.45;
}

.admin-status {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 0.22rem 0.6rem;
    background: #e9f5f0;
    color: #2f8f5b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-new,
.status-open,
.status-draft {
    background: rgba(242, 130, 32, 0.13);
    color: #c95f07;
}

.status-reviewing,
.status-contacted,
.status-quoted,
.status-assigned,
.status-scheduled,
.status-waiting_client {
    background: rgba(0, 82, 155, 0.1);
    color: #00529b;
}

.status-accepted,
.status-approved,
.status-completed,
.status-resolved,
.status-worker {
    background: rgba(55, 142, 68, 0.13);
    color: #378e44;
}

.status-rejected,
.status-cancelled,
.status-archived {
    background: rgba(180, 35, 24, 0.1);
    color: #b42318;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.admin-mini-btn {
    width: fit-content;
    border: none;
    border-radius: 8px;
    padding: 0.48rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #021c52;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
}

.admin-mini-btn.invite-code-btn {
    background: linear-gradient(135deg, #fff4e6, #ffe7c2);
    color: #8a4304;
    border: 1px solid rgba(242, 130, 32, 0.35);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.04em;
}

.admin-mini-btn.invite-code-btn.is-copied {
    background: #e9f7ef;
    color: #28783c;
    border-color: rgba(55, 142, 68, 0.28);
    letter-spacing: 0;
}

.admin-mini-btn.chat-active {
    background: linear-gradient(135deg, #e9f7ef, #dff4e7);
    color: #28783c;
    border: 1px solid rgba(55, 142, 68, 0.24);
}

.admin-empty {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    min-height: 146px;
    padding: 2rem 1rem;
    text-align: center;
    color: #7d8ca0;
}

.admin-empty i {
    font-size: 1.6rem;
    color: #00529b;
}

.admin-drawer {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
}

.admin-drawer.open {
    display: block;
}

.admin-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 28, 82, 0.38);
}

.admin-drawer-card {
    position: absolute;
    top: 0;
    right: 0;
    width: min(520px, 100%);
    height: 100%;
    overflow: auto;
    padding: 1.5rem;
    background: #ffffff;
    box-shadow: -20px 0 60px rgba(2, 28, 82, 0.18);
}

.admin-drawer-card h2 {
    margin: 0 0 1rem;
    font-family: 'Poppins', sans-serif;
    color: #021c52;
}

.admin-drawer-close {
    float: right;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: #edf5fb;
    color: #00529b;
    cursor: pointer;
}

.detail-list {
    display: grid;
    gap: 0.7rem;
}

.detail-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: -0.2rem 0 1rem;
}

.detail-summary span:not(.admin-status) {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    background: #edf5fb;
    color: #00529b;
    font-size: 0.76rem;
    font-weight: 800;
}

.detail-section {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.detail-section h3 {
    margin: 0;
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.detail-row {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    border: 1px solid rgba(0, 82, 155, 0.1);
    border-radius: 12px;
    background: #f8fbff;
}

.detail-row span {
    color: #7d8ca0;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-row strong {
    color: #021c52;
    font-size: 0.9rem;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}

.detail-row a {
    color: #00529b;
    font-weight: 900;
}

.detail-help {
    margin: -0.25rem 0 0;
    color: #5f7288;
    font-size: 0.88rem;
    line-height: 1.5;
}

.interview-chat {
    display: grid;
    gap: 0.75rem;
    max-height: 360px;
    overflow: auto;
    padding: 0.85rem;
    border: 1px solid rgba(0, 82, 155, 0.12);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 82, 155, 0.06), transparent 34%),
        #f8fbff;
}

.admin-interview-chat {
    max-height: 330px;
}

.chat-bubble {
    display: grid;
    gap: 0.35rem;
    width: min(86%, 430px);
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 82, 155, 0.12);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(2, 28, 82, 0.06);
}

.chat-bubble.is-mine {
    justify-self: end;
    background: linear-gradient(135deg, #021c52, #00529b);
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.chat-bubble.is-admin {
    justify-self: start;
    border-color: rgba(55, 142, 68, 0.18);
    background: linear-gradient(135deg, #ffffff, #f0faf4);
    border-bottom-left-radius: 6px;
}

.chat-bubble.is-applicant {
    justify-self: start;
    background: #ffffff;
    border-bottom-left-radius: 6px;
}

.chat-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    color: inherit;
    opacity: 0.78;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.chat-bubble p {
    margin: 0;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.interview-form {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.85rem;
}

.interview-form label {
    display: grid;
    gap: 0.45rem;
    color: #021c52;
    font-size: 0.82rem;
    font-weight: 800;
}

.interview-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 94px;
    border: 1px solid rgba(0, 82, 155, 0.18);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: #f8fbff;
    color: #021c52;
    font: 600 0.92rem 'Inter', sans-serif;
    outline: none;
}

.interview-form textarea:focus {
    border-color: rgba(0, 82, 155, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 82, 155, 0.08);
}

.compact-empty {
    min-height: 118px;
    padding: 1.1rem 0.8rem;
}

.application-chat-panel {
    position: sticky;
    top: 84px;
    min-height: 580px;
    overflow: hidden;
}

.side-chat-placeholder,
.side-chat-loading,
.side-chat-locked {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 0.7rem;
    min-height: 520px;
    padding: 2rem;
    text-align: center;
    color: #7d8ca0;
}

.side-chat-placeholder i,
.side-chat-loading i {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #e8f3fb;
    color: #00529b;
    font-size: 1.35rem;
}

.side-chat-placeholder strong {
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
}

.side-chat {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 580px;
    background: #ffffff;
}

.side-chat-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(11, 31, 51, 0.08);
    background:
        linear-gradient(135deg, rgba(2, 28, 82, 0.98), rgba(0, 82, 155, 0.88)),
        radial-gradient(circle at 90% 0%, rgba(242, 130, 32, 0.32), transparent 28%);
    color: #ffffff;
}

.side-chat.is-personnel-chat .side-chat-header,
.collab-interview-card.is-personnel-chat .admin-panel-header {
    background:
        linear-gradient(135deg, rgba(2, 28, 82, 0.98), rgba(55, 142, 68, 0.9)),
        radial-gradient(circle at 100% 0%, rgba(242, 130, 32, 0.28), transparent 26%);
}

.side-chat.is-personnel-chat .side-chat-avatar {
    color: #28783c;
}

.side-chat-person {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.side-chat-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 243, 251, 0.96));
    color: #00529b;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(2, 28, 82, 0.2);
}

.side-chat-header .admin-eyebrow {
    margin-bottom: 0.45rem;
}

.side-chat-header h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.12;
    word-break: break-word;
}

.side-chat-header p {
    margin: 0.2rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    line-height: 1.45;
}

.side-chat-status {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
    min-width: max-content;
    font-size: 0.76rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.78);
}

.side-chat-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 32px;
    margin-top: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.side-chat-body {
    display: grid;
    grid-template-rows: minmax(260px, 1fr) auto;
    min-height: 0;
}

.side-chat-messages {
    max-height: none;
    min-height: 300px;
    border: none;
    border-radius: 0;
    padding: 1.15rem;
    background:
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)),
        radial-gradient(circle at 16px 16px, rgba(0, 82, 155, 0.08) 1px, transparent 1px);
    background-size: auto, 22px 22px;
}

.side-chat-form {
    margin: 0;
    padding: 0.9rem 1rem 1rem;
    border-top: 1px solid rgba(11, 31, 51, 0.08);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.side-chat-form textarea {
    min-height: 76px;
    border-radius: 18px;
    background: #ffffff;
}

.side-chat-locked {
    min-height: 92px;
    padding: 1rem;
    border-top: 1px solid rgba(11, 31, 51, 0.08);
    background: #f8fbff;
    font-weight: 800;
}

.side-chat-locked i {
    color: #00529b;
}

.client-main {
    width: min(1180px, calc(100% - 2rem));
}

.client-topbar {
    border-bottom: 1px solid rgba(0, 82, 155, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
}

.client-topbar .admin-brand {
    gap: 0.65rem;
}

.client-topbar .admin-brand span {
    letter-spacing: -0.01em;
}

.client-logout-btn {
    min-height: 38px;
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
}

.client-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.9rem;
    padding: clamp(1.25rem, 3vw, 1.8rem);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background:
        linear-gradient(128deg, rgba(2, 28, 82, 0.98), rgba(0, 82, 155, 0.88) 58%, rgba(35, 111, 88, 0.9)),
        radial-gradient(circle at 86% 22%, rgba(242, 130, 32, 0.34), transparent 30%);
    color: #ffffff;
    box-shadow: 0 18px 44px rgba(2, 28, 82, 0.16);
}

.client-hero::after {
    content: '';
    position: absolute;
    right: -9rem;
    bottom: -9rem;
    width: 20rem;
    aspect-ratio: 1;
    border: 38px solid rgba(242, 130, 32, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.client-hero h1 {
    margin: 0.7rem 0 0.55rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4.6vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.018em;
}

.client-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.65;
}

.client-hero > div:first-child,
.client-hero-side {
    position: relative;
    z-index: 1;
}

.client-hero-side {
    display: grid;
    justify-items: center;
    gap: 0.6rem;
    min-width: 185px;
    padding: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.client-hero-side img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    padding: 0.45rem;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(2, 28, 82, 0.22);
}

.client-hero-side span {
    max-width: 160px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.35;
}

.client-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
    gap: 0.85rem;
    margin-bottom: 0.95rem;
}

.client-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.client-kpi,
.client-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 82, 155, 0.12);
    box-shadow: 0 14px 36px rgba(0, 45, 95, 0.075);
}

.client-kpi {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
    min-height: 82px;
    padding: 0.9rem 1rem;
    border-radius: 16px;
}

.client-kpi i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 82, 155, 0.1);
    color: #00529b;
}

.client-kpi span {
    display: block;
    color: #5f7288;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.client-kpi strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    color: #021c52;
    font-size: 2rem;
    line-height: 1;
}

.client-quick-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(55, 142, 68, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(55, 142, 68, 0.13), rgba(0, 82, 155, 0.07)),
        #ffffff;
    color: #021c52;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(0, 45, 95, 0.075);
}

.client-quick-action strong,
.client-quick-action small {
    display: block;
}

.client-quick-action strong {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    line-height: 1.25;
}

.client-quick-action small {
    margin-top: 0.18rem;
    color: #5f7288;
    font-size: 0.82rem;
    line-height: 1.35;
}

.client-quick-action i {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #00529b;
    color: #ffffff;
}

.client-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 1rem;
    align-items: start;
}

.client-card {
    overflow: hidden;
    border-radius: 18px;
}

.client-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.15rem;
    border-bottom: 1px solid rgba(0, 82, 155, 0.09);
}

.client-card-header h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 1.22rem;
    letter-spacing: -0.01em;
}

.client-profile-form .auth-input-wrap select,
.client-service-form .auth-input-wrap select {
    padding-left: 2.85rem;
    padding-right: 2.85rem;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #00529b 50%),
        linear-gradient(135deg, #00529b 50%, transparent 50%);
    background-position:
        calc(100% - 21px) 50%,
        calc(100% - 15px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.client-profile-form .auth-field small {
    color: #6d7f92;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.45;
}

.service-request-card {
    margin-bottom: 1rem;
}

.client-service-form {
    padding: 1.15rem;
}

.client-form-section {
    display: grid;
    gap: 0.18rem;
    padding: 0.85rem 0 0.15rem;
    border-top: 1px solid rgba(0, 82, 155, 0.09);
}

.client-service-form .client-form-section:first-child {
    padding-top: 0;
    border-top: none;
}

.client-form-section span {
    color: #00529b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.client-form-section p {
    margin: 0;
    color: #6d7f92;
    font-size: 0.86rem;
    line-height: 1.45;
}

.auth-input-wrap.textarea-wrap {
    align-items: flex-start;
}

.auth-input-wrap.textarea-wrap > i {
    top: 1rem;
}

.auth-input-wrap textarea {
    padding-left: 2.85rem;
}

.client-card-header > i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(0, 82, 155, 0.09);
    color: #00529b;
}

.client-card-kicker {
    display: block;
    margin-bottom: 0.25rem;
    color: #00529b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-profile-form {
    padding: 1.15rem;
}

.client-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.client-area-fieldset {
    display: grid;
    gap: 0.7rem;
    min-width: 0;
    margin: 0;
    border: none;
    padding: 0;
}

.client-area-fieldset legend {
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
    font-weight: 900;
}

.client-area-fieldset legend strong {
    color: #f28220;
}

.client-area-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.client-area-option {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.client-area-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.client-area-option span {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 62px;
    border: 1px solid rgba(0, 82, 155, 0.16);
    border-radius: 16px;
    padding: 0.75rem 0.78rem;
    background: linear-gradient(180deg, #fbfdff, #f3f8fc);
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 850;
    line-height: 1.25;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.client-area-option span i {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: rgba(0, 82, 155, 0.1);
    color: #00529b;
}

.client-area-option input:checked + span {
    border-color: rgba(47, 143, 91, 0.45);
    background:
        linear-gradient(135deg, rgba(47, 143, 91, 0.14), rgba(255, 255, 255, 0.94)),
        #ffffff;
    box-shadow: 0 16px 32px rgba(47, 143, 91, 0.08);
}

.client-area-option input:checked + span i {
    background: #2f8f5b;
    color: #ffffff;
}

.client-area-option input:focus-visible + span {
    border-color: rgba(0, 82, 155, 0.48);
    box-shadow: 0 0 0 4px rgba(0, 82, 155, 0.1);
}

.client-area-option:hover span {
    transform: translateY(-1px);
}

.client-whatsapp-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(47, 143, 91, 0.18);
    border-radius: 18px;
    padding: 1rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(47, 143, 91, 0.14), transparent 34%),
        linear-gradient(135deg, #f7fcf9, #ffffff);
}

.client-whatsapp-card span {
    display: block;
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-size: 0.96rem;
    font-weight: 900;
}

.client-whatsapp-card p {
    max-width: 46rem;
    margin: 0.2rem 0 0;
    color: #5f7288;
    font-size: 0.84rem;
    line-height: 1.45;
}

.client-whatsapp-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    flex: 0 0 auto;
    min-height: 44px;
    border-radius: 999px;
    padding: 0.72rem 1rem;
    background: #22c55e;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.84rem;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.18);
}

.client-whatsapp-link.is-ready {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.client-small-link {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border-radius: 999px;
    padding: 0.48rem 0.72rem;
    background: #e8f3fb;
    color: #00529b;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
}

.client-request-list {
    display: grid;
}

.client-request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(0, 82, 155, 0.08);
}

.client-request-item:last-child {
    border-bottom: none;
}

.client-request-item h3 {
    margin: 0.52rem 0 0.25rem;
    font-family: 'Poppins', sans-serif;
    color: #021c52;
    font-size: 1rem;
}

.client-request-item p,
.client-request-item small {
    margin: 0;
    color: #5f7288;
    line-height: 1.5;
}

.client-request-item > i {
    color: #00529b;
}

.client-empty {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    padding: 2.5rem 1.4rem;
    text-align: center;
    color: #5f7288;
}

.client-empty i {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(0, 82, 155, 0.1);
    color: #00529b;
    font-size: 1.35rem;
}

.client-empty strong {
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
}

.admin-mini-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 2rem);
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 15% 18%, rgba(0, 82, 155, 0.16), transparent 30%),
        radial-gradient(circle at 84% 16%, rgba(242, 130, 32, 0.18), transparent 32%),
        radial-gradient(circle at 48% 86%, rgba(55, 142, 68, 0.14), transparent 34%),
        #f3f7fb;
}

.auth-card {
    width: min(100%, 430px);
    padding: 2rem;
}

.admin-login-card {
    width: min(100%, 500px);
    display: grid;
    gap: 1.2rem;
}

.auth-layout .auth-card {
    border-radius: 22px;
}

.auth-card-wide {
    width: min(100%, 960px);
    display: grid;
    grid-template-columns: minmax(280px, 0.72fr) minmax(380px, 1fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.auth-intro-panel {
    position: relative;
    min-height: 540px;
    padding: clamp(1.25rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(145deg, rgba(2, 28, 82, 0.96), rgba(0, 56, 112, 0.92) 54%, rgba(20, 92, 62, 0.9)),
        radial-gradient(circle at 78% 18%, rgba(242, 130, 32, 0.48), transparent 34%);
    color: #ffffff;
}

.auth-intro-panel::before {
    content: '';
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    pointer-events: none;
}

.auth-intro-panel::after {
    content: 'RM';
    position: absolute;
    right: -1.1rem;
    top: 5.8rem;
    color: rgba(255, 255, 255, 0.055);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: none;
}

.auth-brand {
    position: relative;
    color: #ffffff;
    z-index: 1;
    width: fit-content;
    font-family: 'Poppins', sans-serif;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

.auth-brand span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding-left: 0.15rem;
}

.auth-logo-mark {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(128px, 12vw, 160px);
    aspect-ratio: 1;
    margin: clamp(1.35rem, 4vh, 2.2rem) auto 1.5rem;
    border-radius: 50%;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        conic-gradient(from 45deg, #021c52, #00529b, #378e44, #f28220, #021c52) border-box;
    border: 8px solid transparent;
    box-shadow: 0 20px 44px rgba(0, 15, 50, 0.28);
}

.auth-logo-mark::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-logo-mark img {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

.auth-kicker,
.auth-form-heading span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-kicker {
    background: rgba(242, 130, 32, 0.18);
    color: #ffb05f;
    border: 1px solid rgba(242, 130, 32, 0.34);
    margin-top: auto;
}

.auth-card .auth-intro-panel h1 {
    position: relative;
    z-index: 1;
    max-width: 420px;
    margin: 0 0 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.9rem, 3.7vw, 2.9rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.auth-card .auth-intro-panel p {
    position: relative;
    z-index: 1;
    max-width: 430px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.75;
}

.auth-benefits {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

.auth-benefits span {
    border-radius: 999px;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(122, 185, 229, 0.24);
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Inter', sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
}

.auth-form-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 1)),
        #ffffff;
}

.auth-form-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 7px;
    background: linear-gradient(90deg, #021c52 0 46%, #378e44 46% 72%, #f28220 72% 100%);
}

.auth-form-panel::after {
    content: '';
    position: absolute;
    right: -80px;
    bottom: -80px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background:
        linear-gradient(#f7fbff, #f7fbff) padding-box,
        conic-gradient(from 35deg, #021c52, #00529b, #378e44, #f28220, #021c52) border-box;
    border: 22px solid transparent;
    opacity: 0.13;
    pointer-events: none;
}

.auth-back-link,
.auth-inner-card {
    position: relative;
    z-index: 1;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    padding: 0.52rem 0.8rem;
    background: rgba(0, 82, 155, 0.07);
    border: 1px solid rgba(0, 82, 155, 0.14);
    color: #00529b;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.auth-back-link:hover {
    transform: translateX(-2px);
    background: rgba(242, 130, 32, 0.11);
    border-color: rgba(242, 130, 32, 0.22);
    color: #d96f0c;
}

.auth-inner-card {
    padding: clamp(1.15rem, 3vw, 1.55rem);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.96)),
        #ffffff;
    border: 1px solid rgba(0, 82, 155, 0.13);
    box-shadow: 0 20px 55px rgba(0, 45, 95, 0.12);
}

.auth-inner-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    border-radius: 20px 20px 0 0;
    background: linear-gradient(90deg, #021c52 0 44%, #378e44 44% 72%, #f28220 72% 100%);
}

.auth-form-heading {
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}

.auth-form-heading span {
    background: rgba(0, 82, 155, 0.08);
    color: #00529b;
    border: 1px solid rgba(0, 82, 155, 0.16);
}

.auth-form-heading strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    color: #021c52;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.018em;
}

.auth-form-heading p {
    margin: 0.65rem 0 0;
    color: #6d7d91;
    line-height: 1.55;
    font-size: 0.92rem;
    font-weight: 500;
}

.auth-form-heading p b {
    color: #f28220;
}

.auth-card h1 {
    font-family: 'Poppins', sans-serif;
    margin: 0 0 0.5rem;
}

.auth-card p {
    color: #5f7288;
    margin: 0 0 1.3rem;
}

.auth-form {
    display: grid;
    gap: 0.95rem;
    position: relative;
    z-index: 1;
}

.auth-form label,
.auth-field {
    display: grid;
    gap: 0.45rem;
    color: #021c52;
    font-size: 0.82rem;
    font-weight: 700;
}

.field-label {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    width: fit-content;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    letter-spacing: -0.005em;
    color: #021c52;
}

.field-label strong {
    color: #f28220;
    font-size: 0.95rem;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 82, 155, 0.045);
}

.auth-input-wrap > i {
    position: absolute;
    left: 1rem;
    width: 18px;
    color: #00529b;
    font-size: 0.95rem;
    opacity: 0.82;
    pointer-events: none;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    border: 1px solid rgba(0, 82, 155, 0.14);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    background: #f7fbff;
    color: #021c52;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.auth-input-wrap input {
    padding-left: 2.85rem;
}

.auth-input-wrap input[type="password"],
.auth-input-wrap input[type="text"] {
    padding-right: 3.15rem;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: rgba(0, 82, 155, 0.5);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 82, 155, 0.1), 0 10px 24px rgba(0, 82, 155, 0.08);
}

.auth-input-wrap:focus-within > i {
    color: #f28220;
    opacity: 1;
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
    color: #9aa8b5;
    font-weight: 700;
}

.auth-form textarea {
    resize: vertical;
    min-height: 92px;
}

.auth-field small {
    color: #7d8ca0;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
}

.password-toggle {
    position: absolute;
    right: 0.45rem;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 82, 155, 0.08);
    color: #00529b;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
    background: rgba(242, 130, 32, 0.14);
    color: #d96f0c;
    transform: translateY(-1px);
}

.auth-submit {
    min-height: 50px;
    margin-top: 0.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #021c52, #00529b);
    box-shadow: 0 14px 30px rgba(0, 82, 155, 0.24);
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.auth-submit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #021c52, #0068bd);
    box-shadow: 0 18px 34px rgba(0, 82, 155, 0.3);
}

.auth-inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    background: rgba(55, 142, 68, 0.1);
    border: 1px solid rgba(55, 142, 68, 0.22);
    color: #378e44;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.auth-inline-link:hover {
    transform: translateY(-1px);
    background: rgba(55, 142, 68, 0.14);
    border-color: rgba(55, 142, 68, 0.34);
}

.auth-message {
    min-height: 1.2rem;
    color: #378e44;
    font-size: 0.86rem;
    font-weight: 700;
}

.auth-message.is-error {
    color: #b42318;
}

.process-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 1.4rem;
    padding: 1.4rem;
    background: #ffffff;
    border: 1px solid rgba(45, 138, 160, 0.14);
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(11, 31, 51, 0.07);
}

.process-step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    text-align: center;
    color: #8a9aad;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: #d9e3ea;
}

.process-step span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #e9eef3;
    color: #5f7288;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.process-step strong {
    font-family: 'Poppins', sans-serif;
    color: #5f7288;
    font-size: 0.92rem;
}

.process-step p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.process-step.active span {
    background: linear-gradient(135deg, #4ade80, #16a34a);
    color: #07111f;
}

.process-step.active strong {
    color: #07111f;
}

.process-step.active::after {
    background: linear-gradient(90deg, #16a34a, #f97316);
}

.collab-shell {
    background:
        radial-gradient(circle at 8% 0%, rgba(0, 82, 155, 0.14), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(242, 130, 32, 0.12), transparent 30%),
        linear-gradient(180deg, #f4f9fd 0%, #eef5fa 100%);
}

.collab-main {
    width: min(1120px, calc(100% - 2rem));
}

.collab-hero {
    position: relative;
    overflow: hidden;
    min-height: 235px;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.collab-hero::after {
    content: 'RAMAEM';
    position: absolute;
    right: clamp(0.5rem, 6vw, 4rem);
    bottom: -0.28em;
    color: rgba(255, 255, 255, 0.07);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(4rem, 16vw, 11rem);
    font-weight: 800;
    line-height: 0.85;
    pointer-events: none;
}

.collab-hero > * {
    position: relative;
    z-index: 1;
}

.collab-hero h1 {
    max-width: 620px;
    font-size: clamp(2.15rem, 5vw, 3.55rem);
    line-height: 1.02;
}

.collab-hero p {
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.65;
}

.collab-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.collab-hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.collab-hero-card {
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    width: min(210px, 32vw);
    min-width: 170px;
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.collab-hero-card img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 24px;
    background: #ffffff;
    padding: 0.45rem;
}

.collab-hero-card strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.collab-hero-card span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 800;
}

.collab-process {
    position: relative;
    overflow: hidden;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: -0.35rem;
    margin-bottom: 1.25rem;
    padding: 0.95rem;
    border-radius: 18px;
}

.collab-process .process-step {
    border-radius: 14px;
    padding: 0.85rem 0.7rem;
    min-width: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.collab-process .process-step.active {
    background: linear-gradient(180deg, rgba(55, 142, 68, 0.08), rgba(255, 255, 255, 0));
}

.collab-process .process-step.active span {
    color: #ffffff;
}

.collab-process .process-step:not(:last-child)::after {
    top: calc(0.85rem + 22px);
    left: calc(50% + 22px);
    width: calc(100% - 44px);
}

.collab-grid {
    grid-template-columns: minmax(340px, 0.88fr) minmax(420px, 1.12fr);
    align-items: start;
    gap: 1.25rem;
}

.collab-column {
    display: grid;
    align-content: start;
    gap: 1.25rem;
    min-width: 0;
}

.is-worker .collab-grid {
    grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1.2fr);
}

.collab-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(0, 82, 155, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(11, 31, 51, 0.09);
}

.collab-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #021c52 0 42%, #378e44 42% 68%, #f28220 68% 100%);
}

.collab-card.auth-card {
    padding: clamp(1.1rem, 2.5vw, 1.55rem);
}

.collab-section-kicker {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    padding: 0.32rem 0.65rem;
    background: #e8f3fb;
    color: #00529b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.collab-card.auth-card h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
}

.collab-card.auth-card p {
    max-width: 42rem;
    color: #5f7288;
    line-height: 1.55;
}

.collab-card .auth-form {
    margin-top: 1.15rem;
    gap: 0.95rem;
}

.collab-card .auth-form label {
    color: #021c52;
    font-size: 0.77rem;
    letter-spacing: 0.01em;
}

.collab-area-fieldset {
    display: grid;
    gap: 0.65rem;
    min-width: 0;
    margin: 0;
    border: none;
    padding: 0;
}

.collab-area-fieldset legend {
    color: #021c52;
    font-size: 0.77rem;
    font-weight: 900;
}

.collab-area-fieldset p {
    margin: -0.3rem 0 0;
    color: #5f7288;
    font-size: 0.82rem;
    line-height: 1.45;
}

.collab-area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.collab-area-option {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.collab-card .auth-form .collab-area-option {
    font-size: 0.8rem;
}

.collab-area-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.collab-area-option span {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 58px;
    border: 1px solid rgba(0, 82, 155, 0.16);
    border-radius: 16px;
    padding: 0.75rem 0.8rem;
    background: linear-gradient(180deg, #fbfdff, #f3f8fc);
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-weight: 850;
    line-height: 1.25;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.collab-area-option span i {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: rgba(0, 82, 155, 0.1);
    color: #00529b;
}

.collab-area-option input:checked + span {
    border-color: rgba(47, 143, 91, 0.45);
    background:
        linear-gradient(135deg, rgba(47, 143, 91, 0.13), rgba(255, 255, 255, 0.92)),
        #ffffff;
    box-shadow: 0 14px 28px rgba(47, 143, 91, 0.08);
}

.collab-area-option input:checked + span i {
    background: #2f8f5b;
    color: #ffffff;
}

.collab-area-option input:focus-visible + span {
    border-color: rgba(0, 82, 155, 0.48);
    box-shadow: 0 0 0 4px rgba(0, 82, 155, 0.1);
}

.collab-area-option:hover span {
    transform: translateY(-1px);
}

.collab-card .auth-form input,
.collab-card .auth-form select,
.collab-card .auth-form textarea {
    min-height: 50px;
    border-radius: 14px;
    border-color: rgba(0, 82, 155, 0.18);
    background: linear-gradient(180deg, #fbfdff, #f3f8fc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.collab-card .auth-form input:focus,
.collab-card .auth-form select:focus,
.collab-card .auth-form textarea:focus {
    background: #ffffff;
    border-color: rgba(0, 82, 155, 0.42);
    box-shadow: 0 0 0 4px rgba(0, 82, 155, 0.08);
}

.collab-card .auth-form textarea {
    min-height: 118px;
}

.collab-card .admin-panel-header {
    min-height: 76px;
    padding: 1rem 1.1rem;
}

.collab-interview-card {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.collab-interview-card .admin-panel-header {
    background:
        linear-gradient(135deg, rgba(2, 28, 82, 0.98), rgba(0, 82, 155, 0.88)),
        radial-gradient(circle at 100% 0%, rgba(242, 130, 32, 0.28), transparent 26%);
    color: #ffffff;
    border-bottom: none;
}

.collab-interview-card .admin-panel-header h2 {
    color: #ffffff;
}

.collab-interview-card .admin-panel-hint {
    color: rgba(255, 255, 255, 0.78);
}

.collab-interview-card .interview-chat {
    min-height: 280px;
    max-height: 440px;
    border: none;
    border-radius: 0;
    padding: 1rem;
    background:
        linear-gradient(rgba(248, 251, 255, 0.94), rgba(248, 251, 255, 0.94)),
        radial-gradient(circle at 14px 14px, rgba(0, 82, 155, 0.08) 1px, transparent 1px);
    background-size: auto, 22px 22px;
}

.collab-interview-card .chat-bubble {
    width: min(88%, 430px);
}

.collab-interview-card .chat-bubble.is-admin {
    border-color: rgba(55, 142, 68, 0.18);
    background: linear-gradient(135deg, #ffffff, #eef9f2);
}

.collab-interview-card .interview-form {
    margin: 0;
    padding: 1rem;
    border-top: 1px solid rgba(11, 31, 51, 0.08);
    background: #ffffff;
}

.collab-interview-card .interview-form textarea {
    min-height: 86px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff, #f4f9fd);
}

.collab-interview-card .interview-form .admin-btn {
    min-height: 48px;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(0, 82, 155, 0.18);
}

.collab-status-card {
    display: grid;
    gap: 0.7rem;
    padding: 1.1rem;
}

.collab-status-card strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
}

.collab-status-card p {
    max-width: 650px;
    color: #5f7288;
    line-height: 1.55;
}

.collab-status-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.collab-status-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 999px;
    padding: 0.45rem 0.65rem;
    background: #f0f7fc;
    color: #3b5570;
    font-size: 0.78rem;
    font-weight: 800;
}

.collab-empty {
    display: grid;
    justify-items: center;
    gap: 0.55rem;
    min-height: 210px;
    padding: 2rem 1rem;
    color: #718297;
    text-align: center;
}

.collab-empty i {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #e8f3fb;
    color: #00529b;
    font-size: 1.25rem;
}

.collab-empty strong {
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
}

.collab-empty p {
    max-width: 390px;
    margin: 0;
    line-height: 1.5;
}

.collab-activation {
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 130, 32, 0.11), transparent 32%),
        #ffffff;
}

.collab-welcome-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(55, 142, 68, 0.18);
    border-radius: 18px;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    background:
        radial-gradient(circle at 95% 15%, rgba(242, 130, 32, 0.12), transparent 26%),
        linear-gradient(135deg, #ffffff, #f2fbf5);
    box-shadow: 0 14px 40px rgba(11, 31, 51, 0.07);
}

.collab-welcome-card h2 {
    margin: 0 0 0.35rem;
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.collab-welcome-card p {
    max-width: 720px;
    margin: 0;
    color: #5f7288;
    line-height: 1.55;
}

.collab-welcome-actions {
    display: grid;
    gap: 0.55rem;
    min-width: 220px;
}

.collab-welcome-actions span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.58rem 0.75rem;
    background: #ffffff;
    color: #2f8f5b;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(55, 142, 68, 0.12);
}

.collab-file-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.collab-file-grid label {
    min-width: 0;
}

.collab-file-grid input[type="file"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 0.55rem;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font-size: 0.72rem;
}

.collab-file-grid input[type="file"]::file-selector-button {
    margin-right: 0.65rem;
    border: 0;
    border-radius: 999px;
    padding: 0.58rem 0.72rem;
    background: #e8f3fb;
    color: #00529b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
    max-width: 100%;
}

.collab-job-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 0.85rem;
}

.collab-job-row p,
.collab-job-row small {
    grid-column: 2;
}

@media (max-width: 900px) {
    .client-main {
        width: min(100% - 1rem, 760px);
        padding-top: 1rem;
    }

    .client-hero {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 20px;
    }

    .client-hero-side {
        width: 100%;
        grid-template-columns: auto 1fr;
        justify-items: start;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        border-left: 0;
        padding: 0.95rem 0 0;
        text-align: left;
    }

    .client-hero-side img {
        width: 68px;
        height: 68px;
        border-radius: 20px;
    }

    .client-hero-side span {
        max-width: none;
        align-self: center;
    }

    .client-overview {
        grid-template-columns: 1fr;
    }

    .client-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

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

    .requests-card {
        order: -1;
    }

    .admin-topbar {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 0.75rem;
    }

    .admin-nav {
        grid-column: 1 / -1;
        order: initial;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
    }

    .admin-main {
        width: min(100% - 1rem, 760px);
        padding-top: 1rem;
    }

    .admin-hero-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .admin-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-toolbar select {
        max-width: none;
    }

    .auth-card-wide {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .auth-intro-panel {
        min-height: auto;
        display: flex;
        padding: 1.35rem 1.5rem 1.45rem;
    }

    .auth-intro-panel::after {
        display: none;
    }

    .auth-brand {
        margin-bottom: 0;
    }

    .auth-logo-mark {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 86px;
        margin: 1rem auto 1.15rem;
        border-width: 5px;
    }

    .auth-logo-mark::after {
        inset: -8px;
    }

    .auth-intro-panel .auth-kicker {
        margin: 0 0 0.75rem;
    }

    .auth-card .auth-intro-panel h1 {
        max-width: 100%;
        margin-bottom: 0.7rem;
    }

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

    .admin-grid,
    .process-card {
        grid-template-columns: 1fr;
    }

    .admin-grid-applications {
        grid-template-columns: 1fr;
    }

    .admin-grid-personnel {
        grid-template-columns: 1fr;
    }

    .application-chat-panel {
        display: none;
    }

    .personnel-chat-panel {
        display: none;
    }

    .mobile-application-chat-slot {
        display: block;
        padding: 0 0.85rem 0.95rem;
        border-bottom: 1px solid rgba(11, 31, 51, 0.06);
    }

    .mobile-application-chat-slot .side-chat {
        min-height: auto;
        border: 1px solid rgba(0, 82, 155, 0.12);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 14px 30px rgba(11, 31, 51, 0.08);
    }

    .mobile-application-chat-slot .side-chat-messages {
        min-height: 240px;
        max-height: 54vh;
    }

    .rich-row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .rich-row .admin-row-actions {
        grid-column: 1;
    }

    .job-assignment-row .job-candidate-panel {
        grid-column: 1;
    }

    .admin-row-actions {
        width: 100%;
    }

    .admin-mini-btn {
        flex: 1;
        justify-content: center;
    }

    .job-candidate {
        align-items: flex-start;
        flex-direction: column;
    }

    .job-candidate em {
        align-self: flex-start;
    }

    .job-candidate-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }

    .process-step {
        justify-items: start;
        text-align: left;
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .process-step p {
        grid-column: 2;
    }

    .process-step:not(:last-child)::after {
        display: none;
    }

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

    .collab-main {
        width: min(100% - 1rem, 760px);
    }

    .collab-hero {
        min-height: auto;
        border-radius: 20px;
    }

    .collab-hero-card {
        width: 100%;
        grid-template-columns: auto 1fr;
        justify-items: start;
        text-align: left;
    }

    .collab-hero-card img {
        width: 64px;
        height: 64px;
        grid-row: span 2;
        border-radius: 18px;
    }

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

    .collab-column {
        gap: 1rem;
    }

    .is-worker .collab-grid {
        grid-template-columns: 1fr;
    }

    .collab-welcome-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .collab-welcome-actions {
        width: 100%;
        min-width: 0;
    }

    .collab-process {
        grid-template-columns: repeat(4, minmax(116px, 1fr));
        gap: 0;
        overflow-x: auto;
        padding: 0.7rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .collab-process .process-step {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        min-width: 116px;
        padding: 0.72rem 0.45rem;
        background: transparent;
        scroll-snap-align: start;
        text-align: center;
    }

    .collab-process .process-step p {
        grid-column: auto;
        font-size: 0.68rem;
    }

    .collab-process .process-step:not(:last-child)::after {
        display: block;
        top: calc(0.72rem + 22px);
        left: calc(50% + 22px);
        width: calc(100% - 44px);
    }

    .collab-process::-webkit-scrollbar {
        height: 4px;
    }

    .collab-process::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(0, 82, 155, 0.2);
    }
}

@media (max-width: 760px) {
    .collab-grid,
    .is-worker .collab-grid {
        grid-template-columns: 1fr;
    }

    .has-application .collab-column-flow {
        order: -1;
    }

    .has-application .collab-column-profile {
        order: 0;
    }

    .collab-interview-card .interview-chat {
        min-height: 260px;
        max-height: 52vh;
    }
}

@media (max-width: 520px) {
    .admin-shell > .admin-topbar:not(.client-topbar) {
        grid-template-columns: 1fr auto;
        padding: 0.75rem;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-brand span {
        font-size: 0.88rem;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-brand img {
        width: 30px;
        height: 30px;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-actions {
        gap: 0.45rem;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-actions .admin-btn {
        min-height: 38px;
        border-radius: 999px;
        padding: 0.52rem 0.7rem;
        font-size: 0.74rem;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-actions .admin-btn.secondary {
        display: none;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-nav {
        padding: 0.22rem;
        border-radius: 14px;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-nav-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.72rem;
        white-space: nowrap;
    }

    .admin-main {
        width: min(100% - 0.75rem, 480px);
        padding-top: 0.75rem;
    }

    .admin-hero-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .admin-hero h1 {
        font-size: clamp(1.6rem, 9vw, 2rem);
        line-height: 1.08;
    }

    .admin-hero p {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .admin-hero-actions {
        gap: 0.55rem;
    }

    .admin-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .admin-stat {
        min-height: 112px;
        padding: 0.78rem;
        border-radius: 14px;
    }

    .admin-stat i {
        width: 34px;
        height: 34px;
        margin-bottom: 0.52rem;
        border-radius: 11px;
    }

    .admin-stat span {
        font-size: 0.62rem;
        line-height: 1.2;
        letter-spacing: 0.06em;
    }

    .admin-stat strong {
        font-size: 1.5rem;
    }

    .admin-toolbar {
        gap: 0.55rem;
        margin-bottom: 0.75rem;
    }

    .admin-search input,
    .admin-toolbar select {
        min-height: 44px;
        border-radius: 12px;
        font-size: 0.82rem;
    }

    .admin-panel {
        border-radius: 14px;
    }

    .admin-panel-header {
        align-items: flex-start;
        min-height: auto;
        padding: 0.85rem;
    }

    .admin-panel-header h2 {
        font-size: 0.95rem;
    }

    .admin-panel-hint {
        max-width: 45%;
        text-align: right;
        font-size: 0.68rem;
        line-height: 1.25;
    }

    .admin-row {
        padding: 0.85rem;
    }

    .admin-status {
        font-size: 0.64rem;
        padding: 0.18rem 0.5rem;
    }

    .admin-row strong {
        font-size: 0.9rem;
    }

    .admin-row p,
    .admin-row small {
        font-size: 0.78rem;
    }

    .side-chat-header {
        flex-direction: column;
        padding: 0.9rem;
    }

    .side-chat-person {
        width: 100%;
    }

    .side-chat-avatar {
        width: 46px;
        height: 46px;
        border-radius: 15px;
        font-size: 0.92rem;
    }

    .side-chat-status {
        justify-items: start;
        min-width: 0;
    }

    .chat-bubble {
        width: min(94%, 390px);
        padding: 0.72rem 0.78rem;
    }

    .chat-meta {
        font-size: 0.62rem;
    }

    .side-chat-form {
        padding: 0.75rem;
    }

    .collab-main {
        width: min(100% - 0.75rem, 430px);
    }

    .collab-hero {
        padding: 1rem;
        gap: 1rem;
    }

    .collab-hero h1 {
        font-size: clamp(2rem, 11vw, 2.7rem);
    }

    .collab-process {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        margin-bottom: 0.85rem;
        padding: 0.58rem;
        overflow-x: hidden;
    }

    .collab-process .process-step {
        min-width: 0;
        padding: 0.58rem 0.35rem;
    }

    .collab-process .process-step span {
        width: 34px;
        height: 34px;
        font-size: 0.78rem;
    }

    .collab-process .process-step strong {
        font-size: 0.66rem;
        line-height: 1.15;
        text-align: center;
    }

    .collab-process .process-step p {
        display: none;
    }

    .collab-process .process-step:not(:last-child)::after {
        top: calc(0.58rem + 17px);
        left: calc(50% + 17px);
        width: calc(100% - 34px);
    }

    .collab-hero-tags {
        gap: 0.45rem;
    }

    .collab-hero-tags span {
        padding: 0.45rem 0.6rem;
        font-size: 0.74rem;
    }

    .collab-card.auth-card {
        padding: 1rem;
        border-radius: 14px;
    }

    .collab-card.auth-card h1 {
        font-size: 1.55rem;
    }

    .collab-card .auth-form input,
    .collab-card .auth-form select,
    .collab-card .auth-form textarea {
        min-height: 46px;
        font-size: 0.86rem;
    }

    .collab-file-grid {
        grid-template-columns: 1fr;
    }

    .collab-area-grid {
        grid-template-columns: 1fr;
    }

    .collab-area-option span {
        min-height: 52px;
        padding: 0.68rem 0.72rem;
        font-size: 0.78rem;
    }

    .collab-status-card {
        padding: 0.95rem;
    }

    .collab-empty {
        min-height: 170px;
        padding: 1.45rem 0.85rem;
    }

    .collab-interview-card .admin-panel-header {
        display: grid;
        gap: 0.45rem;
    }

    .collab-interview-card .admin-panel-hint {
        max-width: none;
        text-align: left;
    }

    .collab-interview-card .interview-chat {
        min-height: 245px;
        padding: 0.8rem;
    }

    .collab-interview-card .chat-bubble {
        width: min(94%, 430px);
    }

    .collab-interview-card .interview-form {
        padding: 0.8rem;
    }

    .admin-empty {
        min-height: 124px;
        padding: 1.35rem 0.85rem;
    }

    .client-shell .admin-topbar {
        align-items: center;
        gap: 0.7rem;
        padding: 0.8rem;
    }

    .client-shell .admin-brand {
        width: auto;
    }

    .client-shell .admin-actions {
        width: auto;
        display: flex;
        margin-left: auto;
    }

    .client-shell .admin-actions .admin-btn {
        width: auto;
        flex: 0 0 auto;
        min-height: 38px;
        border-radius: 999px;
        padding: 0.52rem 0.78rem;
        margin-top: 0;
        font-size: 0.78rem;
        box-shadow: 0 8px 18px rgba(0, 45, 95, 0.08);
    }

    .client-shell .admin-actions .admin-btn.secondary {
        border-color: rgba(0, 82, 155, 0.15);
        background: #e8f3fb;
        color: #00529b;
    }

    .client-main {
        width: min(100% - 0.75rem, 480px);
        padding-top: 0.65rem;
    }

    .client-hero {
        gap: 1rem;
        margin-bottom: 0.75rem;
        padding: 1rem;
        border-radius: 18px;
    }

    .client-hero h1 {
        margin-top: 0.55rem;
        font-size: clamp(1.65rem, 9.5vw, 2.2rem);
        line-height: 1.08;
    }

    .client-hero p {
        font-size: 0.92rem;
        line-height: 1.55;
    }

    .client-hero-side {
        gap: 0.75rem;
    }

    .client-hero-side img {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }

    .client-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .client-kpi {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 98px;
        gap: 0.38rem;
        padding: 0.75rem 0.4rem;
        text-align: center;
    }

    .client-kpi i {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 0.9rem;
    }

    .client-kpi span {
        min-height: 24px;
        font-size: 0.61rem;
        line-height: 1.15;
        letter-spacing: 0.045em;
    }

    .client-kpi strong {
        margin: 0;
        font-size: 1.45rem;
    }

    .client-quick-action {
        min-height: auto;
        padding: 0.9rem;
    }

    .client-quick-action small {
        display: none;
    }

    .client-card {
        border-radius: 18px;
    }

    .client-card-header {
        align-items: flex-start;
        padding: 1rem;
    }

    .client-card-header h2 {
        font-size: 1.15rem;
    }

    .client-profile-form,
    .client-service-form {
        padding: 1rem;
    }

    .client-form-row {
        grid-template-columns: 1fr;
        gap: 0.82rem;
    }

    .client-area-grid {
        grid-template-columns: 1fr;
    }

    .client-area-option span {
        min-height: 54px;
        padding: 0.68rem 0.72rem;
    }

    .client-whatsapp-card {
        align-items: stretch;
        flex-direction: column;
        padding: 0.9rem;
    }

    .client-whatsapp-link {
        width: 100%;
    }

    .client-small-link {
        white-space: nowrap;
    }

    .client-request-item {
        align-items: flex-start;
        padding: 0.95rem 1rem;
    }

    .client-request-item > i {
        margin-top: 0.35rem;
    }

    .client-empty {
        padding: 1.6rem 1rem;
    }

    .admin-topbar {
        padding: 0.85rem;
    }

    .admin-brand span {
        font-size: 0.9rem;
    }

    .admin-actions {
        width: 100%;
        justify-content: stretch;
    }

    .admin-actions .admin-btn {
        flex: 1;
        padding-inline: 0.7rem;
    }

    .admin-nav-btn {
        padding: 0.5rem 0.68rem;
        font-size: 0.74rem;
        white-space: nowrap;
    }

    .admin-hero-card {
        border-radius: 18px;
    }

    .admin-cards {
        gap: 0.75rem;
    }

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

    .admin-row {
        padding: 0.9rem;
    }

    .admin-drawer-card {
        padding: 1rem;
    }

    .auth-layout {
        padding: 0;
        align-items: stretch;
    }

    .auth-layout .auth-card {
        min-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .auth-form-panel {
        padding: 1rem;
    }

    .auth-inner-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .auth-intro-panel {
        padding: 1.15rem 1.15rem 1.25rem;
    }

    .auth-brand {
        margin-bottom: 0;
    }

    .auth-logo-mark {
        top: auto;
        right: auto;
        width: 72px;
        margin: 0.85rem auto 1rem;
        border-width: 4px;
    }

    .auth-logo-mark::after {
        inset: -6px;
    }

    .auth-card .auth-intro-panel h1 {
        font-size: clamp(1.8rem, 9vw, 2.35rem);
    }

    .auth-card .auth-intro-panel p,
    .auth-form-heading p {
        font-size: 0.88rem;
    }

    .auth-back-link {
        margin-bottom: 1rem;
    }

    .auth-form {
        gap: 0.82rem;
    }

    .auth-form input,
    .auth-form select,
    .auth-form textarea {
        min-height: 48px;
        padding-top: 0.82rem;
        padding-bottom: 0.82rem;
    }

    .auth-submit,
    .auth-inline-link {
        min-height: 48px;
    }

    .auth-benefits {
        gap: 0.45rem;
    }

    .auth-benefits span {
        font-size: 0.74rem;
    }
}

/* ===========================================
   DESIGN IMPROVEMENTS v2
   =========================================== */

/* tone-blue (was missing) */
.admin-stat.tone-blue i {
    background: rgba(0, 82, 155, 0.1);
    color: #00529b;
}

/* Colored accent strip on KPI stat cards */
.admin-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    background: rgba(0, 82, 155, 0.3);
}
.admin-stat.tone-blue::before  { background: linear-gradient(90deg, #0052a3, #007ae0); }
.admin-stat.tone-green::before { background: linear-gradient(90deg, #378e44, #28a855); }
.admin-stat.tone-orange::before{ background: linear-gradient(90deg, #f28220, #f97316); }
.admin-stat.tone-dark::before  { background: linear-gradient(90deg, #021c52, #00529b); }

/* Nav button icons + flex layout */
.admin-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}
.admin-nav-btn i {
    font-size: 0.78rem;
    opacity: 0.7;
    flex-shrink: 0;
}
.admin-nav-btn.active i {
    opacity: 1;
}

/* Row hover feedback */
.admin-row {
    transition: background 0.15s ease;
    cursor: default;
}
.admin-row:hover {
    background: rgba(0, 82, 155, 0.025);
}
.admin-row-main:hover strong {
    color: #00529b;
}

/* Panel header subtle accent line */
.admin-panel-header {
    background: linear-gradient(135deg, rgba(0, 82, 155, 0.03) 0%, transparent 70%);
}

/* Topbar brand active indicator dot — admin panel only */
.admin-shell > .admin-topbar:not(.client-topbar) .admin-brand::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #378e44;
    margin-left: 0.1rem;
    box-shadow: 0 0 0 2px rgba(55, 142, 68, 0.25);
    flex-shrink: 0;
}

/* Hamburger toggle — hidden on desktop and tablet */
.admin-nav-toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: #edf5fb;
    color: #00529b;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}
.admin-nav-toggle:hover {
    background: #d8ecfb;
}
.admin-nav-toggle:active {
    transform: scale(0.92);
}

/* ===========================================
   MOBILE NAV DROPDOWN (≤760px)
   =========================================== */
@media (max-width: 760px) {
    /* Show hamburger button */
    .admin-nav-toggle {
        display: flex;
    }

    /* Hide the scrollable row-2 nav; replace with dropdown */
    .admin-shell > .admin-topbar:not(.client-topbar) .admin-nav {
        display: none;
        grid-column: 1 / -1;
        overflow-x: visible;
        overflow-y: auto;
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        padding: 0.75rem;
        border-radius: 0 0 18px 18px;
        border-top: 1px solid rgba(0, 82, 155, 0.08);
        background: #ffffff;
        max-height: 65vh;
        scrollbar-width: thin;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-nav.nav-open {
        display: flex;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-nav-btn {
        justify-content: flex-start;
        text-align: left;
        padding: 0.82rem 1rem;
        border-radius: 12px;
        font-size: 0.9rem;
        gap: 0.7rem;
        white-space: normal;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-nav-btn i {
        font-size: 0.92rem;
        width: 18px;
        text-align: center;
        opacity: 1;
    }

    .admin-shell > .admin-topbar:not(.client-topbar) .admin-nav-btn.active {
        background: #021c52;
        color: #ffffff;
    }

    /* Tighten actions row when hamburger is present */
    .admin-shell > .admin-topbar:not(.client-topbar) .admin-actions {
        width: auto;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    /* Hide "Ver sitio" button on small screens */
    .admin-shell > .admin-topbar:not(.client-topbar) .admin-actions .admin-btn.secondary {
        display: none;
    }
}

/* ===========================================
   ACTION BUTTON VISUAL HIERARCHY
   =========================================== */

/* Primary — blue, next important step */
.admin-mini-btn.btn-primary-action {
    background: linear-gradient(135deg, #00529b, #0d6ecc);
    color: #ffffff;
    border: none;
}
.admin-mini-btn.btn-primary-action:hover {
    background: linear-gradient(135deg, #0060b4, #1479d9);
}

/* Success — green, positive/forward outcome */
.admin-mini-btn.btn-success-action {
    background: linear-gradient(135deg, #28783c, #2ea34f);
    color: #ffffff;
    border: none;
}
.admin-mini-btn.btn-success-action:hover {
    background: linear-gradient(135deg, #2f8c45, #35b85a);
}

/* Danger — red outline, destructive action */
.admin-mini-btn.btn-danger-action {
    background: transparent;
    color: #b42318;
    border: 1px solid rgba(180, 35, 24, 0.25);
}
.admin-mini-btn.btn-danger-action:hover {
    background: rgba(180, 35, 24, 0.07);
    border-color: rgba(180, 35, 24, 0.4);
}

/* Muted — secondary / archive / info */
.admin-mini-btn.btn-muted {
    background: #edf5fb;
    color: #5f7288;
    border: 1px solid rgba(0, 82, 155, 0.1);
}
.admin-mini-btn.btn-muted:hover {
    background: #daeaf8;
    color: #00529b;
}

/* ===========================================
   TYPE CHIPS (priority list, etc.)
   =========================================== */
.admin-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.chip-blue   { background: rgba(0, 82, 155, 0.1);    color: #00529b; }
.chip-green  { background: rgba(55, 142, 68, 0.12);  color: #28783c; }
.chip-orange { background: rgba(242, 130, 32, 0.13); color: #c95f07; }
.chip-dark   { background: rgba(2, 28, 82, 0.1);     color: #021c52; }
.chip-teal   { background: rgba(0, 130, 160, 0.12);  color: #007a96; }
.chip-gray   { background: rgba(95, 114, 136, 0.1);  color: #5f7288; }

/* Priority list first column: type chip + status badge stacked */
.priority-type-col {
    display: grid;
    gap: 0.26rem;
    align-content: start;
}

/* ===========================================
   JOB CANDIDATE ASSIGN BUTTON
   =========================================== */
.job-assign-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.38rem;
    flex-shrink: 0;
}

.job-assign-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.32rem 0.7rem;
    border-radius: 8px;
    background: #021c52;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    pointer-events: none;
    white-space: nowrap;
}

.job-candidate:hover .job-assign-btn {
    background: #00529b;
}

/* ============================================================
   COTIZACIONES — Quote generation system
   ============================================================ */

/* Layout */
.quotes-layout {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}
.quotes-list-panel {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    border: 1px solid rgba(0, 82, 155, 0.12);
    box-shadow: 0 18px 44px rgba(2, 28, 82, 0.07);
}
.quotes-builder-panel { min-height: 400px; }
.quotes-list-actions {
    padding: 0.8rem 1.1rem 0.9rem;
    border-bottom: 1px solid #e8edf5;
    background: linear-gradient(180deg, #fbfdff, #f5f9ff);
}
.quotes-list-actions .admin-btn {
    width: 100%;
    justify-content: center;
}

/* --- Quotes list panel redesign --- */
.ql-panel-top {
    padding: 1rem 1.1rem 0;
    border-bottom: 1px solid #e8edf5;
    background: linear-gradient(180deg, #fbfdff, #f5f9ff);
}
.ql-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}
.ql-title-row h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #021c52;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.ql-new-btn {
    font-size: 0.78rem;
    padding: 0.42rem 0.85rem;
    border-radius: 10px;
    flex-shrink: 0;
}
.ql-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid rgba(0, 82, 155, 0.16);
    border-radius: 12px;
    padding: 0.4rem 0.7rem;
    margin-bottom: 0.7rem;
    transition: border-color 0.13s;
}
.ql-search-wrap:focus-within { border-color: #00529b; }
.ql-search-wrap > i { color: #8a9ab5; font-size: 0.78rem; flex-shrink: 0; }
.ql-search {
    border: none;
    outline: none;
    font-size: 0.8rem;
    color: #1a2535;
    background: transparent;
    width: 100%;
    font-family: 'Inter', sans-serif;
}
.ql-search::placeholder { color: #b0bfd0; }
.ql-tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
}
.ql-tabs::-webkit-scrollbar { display: none; }
.ql-tab {
    border: none;
    background: transparent;
    color: #5f7288;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    transition: color 0.13s, border-color 0.13s;
    flex-shrink: 0;
}
.ql-tab:hover { color: #00529b; }
.ql-tab-active {
    color: #00529b;
    border-bottom-color: #00529b;
}

/* Quote list cards */
.ql-card {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f4fa;
    cursor: pointer;
    transition: background 0.12s;
}
.ql-card:hover { background: #f5f9ff; }
.ql-card-active { background: #eef5ff !important; border-left: 3px solid #00529b; padding-left: calc(1rem - 3px); }
.ql-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}
.ql-card-btns { display: flex; gap: 4px; }
.ql-btn {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 82, 155, 0.16);
    background: #fff;
    color: #5f7288;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    transition: all 0.13s;
    flex-shrink: 0;
    padding: 0;
}
.ql-btn:hover { background: #e8f0ff; color: #00529b; border-color: #00529b; }
.ql-btn-danger:hover { background: #fee2e2; color: #dc2626; border-color: #dc2626; }
.ql-card-body { display: flex; flex-direction: column; gap: 2px; }
.ql-num { font-size: 0.8rem; font-weight: 700; color: #021c52; font-family: 'Poppins', sans-serif; }
.ql-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #00529b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ql-client { font-size: 0.76rem; color: #445; display: flex; align-items: center; gap: 5px; }
.ql-client i { color: #8a9ab5; font-size: 0.68rem; }
.ql-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: #8a9ab5;
    margin-top: 2px;
}
.ql-meta i { font-size: 0.65rem; }
.ql-total { font-weight: 700; color: #021c52; font-family: 'Poppins', sans-serif; font-size: 0.78rem; }

/* Quote name input in builder header */
.qbh-name-input {
    border: none;
    border-bottom: 1px dashed rgba(0, 82, 155, 0.3);
    background: transparent;
    font-size: 0.8rem;
    color: #5f7288;
    padding: 2px 4px;
    width: 100%;
    text-align: center;
    font-family: 'Inter', sans-serif;
    border-radius: 0;
    outline: none;
    transition: border-color 0.13s, color 0.13s;
    margin-top: 4px;
}
.qbh-name-input:focus { border-bottom-color: #00529b; color: #021c52; }
.qbh-name-input::placeholder { color: #b0bfd0; font-style: italic; }
.quotes-builder-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1.5rem;
    color: #5f7288;
    text-align: center;
}
.quotes-builder-placeholder i { font-size: 2.5rem; color: #b0c4de; }
.quotes-builder-placeholder strong { font-size: 1rem; color: #1a2535; }
.quotes-builder-placeholder span { font-size: 0.82rem; }

/* Brand header */
.quotes-builder-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.quotes-builder-panel {
    overflow: hidden;
    border: 1px solid rgba(0, 82, 155, 0.14);
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(11, 31, 51, 0.11);
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 130, 32, 0.08), transparent 26%),
        radial-gradient(circle at 0% 100%, rgba(47, 148, 73, 0.08), transparent 26%),
        #ffffff;
}

.quotes-builder-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    padding: 1.45rem 1.55rem;
    background:
        linear-gradient(90deg, #021c52 0 33.33%, #2f9449 33.33% 66.66%, #f28220 66.66% 100%) left bottom / 100% 5px no-repeat,
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.17), transparent 28%),
        radial-gradient(circle at 100% 0%, rgba(242, 130, 32, 0.18), transparent 30%),
        linear-gradient(135deg, #021c52, #00529b);
    color: #ffffff;
}

.quotes-builder-top::after {
    content: "RAMAEM";
    position: absolute;
    right: -0.15rem;
    bottom: -0.52rem;
    color: rgba(255, 255, 255, 0.055);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(3.6rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.8;
    pointer-events: none;
}

.quotes-builder-top > * {
    position: relative;
    z-index: 1;
}

.quotes-builder-top .admin-eyebrow {
    border-color: rgba(242, 130, 32, 0.55);
    background: rgba(255, 255, 255, 0.08);
    color: #ffd7b5;
}

.quotes-number {
    margin: 0.45rem 0 0;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.45rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}

.quotes-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.quotes-header-actions .admin-btn {
    min-height: 42px;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.95);
    color: #00529b;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.quotes-header-actions .admin-btn.secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.quotes-header-actions .admin-btn:hover {
    transform: translateY(-1px);
}
.quote-brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: linear-gradient(135deg, #021c52 0%, #00529b 100%);
    border-radius: 12px 12px 0 0;
    border-bottom: 3px solid #f28220;
    flex-wrap: wrap;
}
.qbh-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}
.qbh-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.4));
}
.qbh-brand { display: flex; flex-direction: column; }
.qbh-brand strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.qbh-brand span {
    font-size: 0.69rem;
    color: rgba(255,255,255,.65);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}
.qbh-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
}
.qbh-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.6);
    font-family: 'Inter', sans-serif;
}
.qbh-num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: .03em;
    white-space: nowrap;
}
.qbh-actions { display: flex; gap: 0.5rem; flex-shrink: 0; flex-wrap: wrap; }
.qbh-actions .admin-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
}
.qbh-actions .admin-btn:hover {
    background: rgba(255,255,255,.22);
    border-color: rgba(255,255,255,.4);
}
.qbh-actions .admin-btn.secondary {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    color: rgba(255,255,255,.85);
}

/* Form wrapper */
form#quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.2rem;
    background:
        radial-gradient(circle at 100% 18%, rgba(242, 130, 32, 0.055), transparent 22rem),
        linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 0 0 18px 18px;
    border: none;
    border-top: none;
    overflow: visible;
}

form#quote-form .quote-section,
form#quote-form > .qb-section,
form#quote-form > .qb-party-grid,
form#quote-form > .qb-collapsible {
    border: 1px solid rgba(0, 82, 155, 0.12);
    border-radius: 18px;
    padding: 0;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(11, 31, 51, 0.05);
    position: relative;
    overflow: hidden;
}
form#quote-form > .qb-section { padding: 1.1rem 1.3rem; }

form#quote-form .quote-section::before,
form#quote-form > .qb-section::before,
form#quote-form > .qb-party-grid::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #021c52 0 33.33%, #2f9449 33.33% 66.66%, #f28220 66.66% 100%);
}
.qb-party-col.qb-section {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    position: static !important;
    overflow: visible !important;
}
.qb-party-col.qb-section::before { display: none; }
form#quote-form > .qb-collapsible { padding: 0; overflow: hidden; }
.qb-toggle-btn { padding: 1rem 1.3rem; margin-bottom: 0 !important; }
.qb-collapsible-body { padding: 0 1.3rem 1rem; }

.quote-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
    padding-top: 0.15rem;
}

.quote-section-title h4 {
    margin: 0;
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.2;
}

.form-step-num {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #021c52, #00529b);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 82, 155, 0.2);
}

form#quote-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

form#quote-form .form-row.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

form#quote-form .form-group {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

form#quote-form .form-group label {
    color: #021c52;
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    font-weight: 850;
}

form#quote-form input,
form#quote-form select,
form#quote-form textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(0, 82, 155, 0.18);
    border-radius: 15px;
    padding: 0.78rem 0.88rem;
    background: linear-gradient(180deg, #fbfdff, #f3f8fc);
    color: #021c52;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

form#quote-form textarea {
    min-height: 110px;
    resize: vertical;
}

form#quote-form input:focus,
form#quote-form select:focus,
form#quote-form textarea:focus {
    outline: none;
    border-color: rgba(0, 82, 155, 0.42);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 82, 155, 0.08);
}

.quote-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    min-height: 46px;
    border: 1px solid rgba(0, 82, 155, 0.14);
    border-radius: 14px;
    padding: 0.55rem 0.75rem;
    background: #f8fbff;
}

.quote-checkbox-label input {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* Sections */
.qb-section {
    padding: 1rem 1.4rem;
    border-bottom: 1px solid #eef2f9;
}
.qb-section:last-child { border-bottom: none; }
.qb-section-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}
.qb-section-head i:first-child {
    color: #00529b;
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.qb-section-head h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #021c52;
    margin: 0;
}
.qb-hint {
    font-size: 0.72rem;
    color: #8a9ab5;
    font-family: 'Inter', sans-serif;
    margin-left: 0.1rem;
}

/* Meta row */
.qb-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

/* Fields */
.qb-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 110px;
}
.qb-field label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #5f7288;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}
.qb-field input,
.qb-field select,
.qb-field textarea {
    border: 1px solid #d0dff5;
    border-radius: 7px;
    padding: 0.48rem 0.7rem;
    font-size: 0.84rem;
    background: #f7faff;
    color: #1a2535;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}
.qb-field input:focus,
.qb-field select:focus,
.qb-field textarea:focus {
    outline: none;
    border-color: #00529b;
    box-shadow: 0 0 0 3px rgba(0,82,155,.1);
    background: #fff;
}
.qb-field textarea { resize: vertical; min-height: 72px; }
.req { color: #e74c3c; margin-left: 2px; }
.qb-optional {
    font-size: 0.65rem;
    color: #a0b0c5;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* Party grid (Emisor + Cliente side by side) */
.qb-party-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0;
}
.qb-party-col {
    padding: 1rem 1.3rem 1.2rem;
}
.qb-party-col:first-child {
    background: linear-gradient(160deg, #f4f8ff 0%, #fff 100%);
}
.qb-party-col:last-child {
    background: #fff;
}
.qb-party-divider {
    background: rgba(0,82,155,.1);
    width: 1px;
    align-self: stretch;
    margin: 1rem 0;
}

/* Fields grid (2-col within a party column) */
.qb-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 0.75rem;
}
.qb-field-span2 { grid-column: 1 / -1; }

/* Scope grid (areas + service type) */
.qb-scope-grid {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid #eef2f9;
}
.qb-sub-group { display: flex; flex-direction: column; gap: 0.45rem; }
.qb-sub-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8a9ab5;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Client row (legacy) */
.qb-client-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: flex-start;
}
.qb-field-grow { flex: 2; min-width: 160px; }
.qb-section-inner { padding: 0.25rem 0 0; }
.qb-notes {
    width: 100%;
    border: 1px solid #d0dff5;
    border-radius: 7px;
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
    background: #f7faff;
    color: #1a2535;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.qb-notes:focus {
    outline: none;
    border-color: #00529b;
    box-shadow: 0 0 0 3px rgba(0,82,155,.1);
    background: #fff;
}

/* Area chips */
.quote-area-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.quote-scope-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 1rem;
    margin-top: 0.95rem;
    align-items: start;
}

.qac-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.46rem 0.78rem;
    border: 1px solid rgba(0, 82, 155, 0.16);
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 850;
    color: #4e637a;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #fbfdff, #f3f8fc);
}
.qac-input { display: none; }
.qac-label:hover { border-color: #00529b; color: #00529b; background: #eef4ff; }
.qac-label:has(.qac-input:checked) {
    background: linear-gradient(135deg, #00529b, #0b67b2);
    border-color: rgba(0, 82, 155, 0.88);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 82, 155, 0.12);
}
.qac-label i { font-size: 0.75rem; }

/* Service type grid */
.quote-type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}
.qtc-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-height: 86px;
    padding: 0.75rem 0.55rem;
    border: 1px solid rgba(0, 82, 155, 0.16);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #fbfdff, #f3f8fc);
    user-select: none;
}
.qtc-input { display: none; }
.qtc-label i { font-size: 1.1rem; color: #8a9ab5; transition: color 0.15s; }
.qtc-label span { font-size: 0.69rem; font-weight: 600; color: #5f7288; line-height: 1.3; }
.qtc-label:hover { border-color: #00529b; background: #eef4ff; }
.qtc-label:hover i { color: #00529b; }
.qtc-label:has(.qtc-input:checked) {
    background: linear-gradient(180deg, #eef7ff, #ffffff);
    border-color: rgba(0, 82, 155, 0.55);
    box-shadow: 0 12px 24px rgba(0, 82, 155, 0.1);
}
.qtc-label:has(.qtc-input:checked) i { color: #00529b; }
.qtc-label:has(.qtc-input:checked) span { color: #021c52; font-weight: 700; }

/* IVA toggle switch */
.iva-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.35rem 0;
}
.iva-label {
    font-size: 0.79rem;
    font-weight: 600;
    color: #1a2535;
    font-family: 'Inter', sans-serif;
}
.iva-switch {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}
.iva-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.iva-slider {
    position: absolute;
    inset: 0;
    background: #d0dff5;
    border-radius: 11px;
    transition: background 0.2s;
    cursor: pointer;
}
.iva-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.iva-switch input:checked + .iva-slider { background: #16a34a; }
.iva-switch input:checked + .iva-slider::before { transform: translateX(18px); }
.iva-state-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5f7288;
    font-family: 'Inter', sans-serif;
}

/* Collapsibles */
.qb-collapsible { border-bottom: 1px solid #eef2f9; }
.qb-collapsible:last-child { border-bottom: none; }
.qb-toggle-btn {
    padding: 0.9rem 1.4rem;
    cursor: pointer;
    margin-bottom: 0;
    transition: background 0.14s;
    user-select: none;
}
.qb-toggle-btn:hover { background: #f7faff; }
.qb-chevron {
    margin-left: auto;
    font-size: 0.72rem;
    color: #8a9ab5;
    transition: transform 0.22s;
}
.qb-collapsible.qb-open .qb-chevron { transform: rotate(180deg); }
.qb-collapsible-body { display: none; padding: 0 1.4rem 1rem; }
.qb-collapsible.qb-open .qb-collapsible-body { display: block; }

/* Items table */
.quote-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.62rem;
    overflow-x: auto;
    padding-bottom: 0.15rem;
}
.quote-items-header {
    display: grid;
    grid-template-columns: 142px 1fr 66px 116px 104px 30px;
    gap: 0.48rem;
    min-width: 850px;
    padding: 0.1rem 0.65rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a9ab5;
    font-family: 'Inter', sans-serif;
}
.quote-item-row {
    display: grid;
    grid-template-columns: 142px 1fr 66px 116px 104px 30px;
    gap: 0.48rem;
    align-items: center;
    min-width: 850px;
    padding: 0.64rem;
    border: 1px solid rgba(0, 82, 155, 0.12);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 82, 155, 0.055), transparent 42%),
        linear-gradient(180deg, #fbfdff, #ffffff);
    transition: border-color 0.13s, box-shadow 0.13s, transform 0.13s;
}
.quote-item-row:hover {
    border-color: #b0c8e8;
    box-shadow: 0 12px 28px rgba(2, 28, 82, 0.06);
    transform: translateY(-1px);
}
.quote-item-row.is-other {
    border-color: rgba(242, 130, 32, 0.34);
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 130, 32, 0.11), transparent 42%),
        linear-gradient(180deg, #fffdf9, #ffffff);
}
.qi-unit-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.34rem;
}
.qi-custom-unit {
    display: none;
}
.quote-item-row.is-other .qi-custom-unit {
    display: block;
    border-color: rgba(242, 130, 32, 0.38);
    background: #fffaf3;
}
.quote-item-row input,
.quote-item-row select {
    min-height: 40px;
    border: 1px solid rgba(0, 82, 155, 0.16);
    border-radius: 12px;
    padding: 0.5rem 0.58rem;
    font-size: 0.8rem;
    background: #fff;
    color: #1a2535;
    font-family: 'Inter', sans-serif;
    width: 100%;
    transition: border-color 0.13s;
}
.quote-item-row input:focus,
.quote-item-row select:focus { outline: none; border-color: #00529b; }
.qi-subtotal {
    font-size: 0.84rem;
    font-weight: 700;
    color: #021c52;
    text-align: right;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}
.qi-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: #f4f8fc;
    color: #8aa0b8;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    padding: 0;
    transition: color 0.13s, background 0.13s;
    flex-shrink: 0;
}
.qi-remove:hover { background: #fee2e2; color: #dc2626; }
.quote-add-item-btn { align-self: flex-start; margin-top: 0.2rem; }

/* Image upload button in item rows */
.qi-image-btn {
    display: none;
    cursor: pointer;
    border: 1px dashed rgba(0, 82, 155, 0.35);
    border-radius: 8px;
    padding: 4px 8px;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: #00529b;
    background: #f4f8ff;
    min-height: 32px;
    justify-content: center;
    transition: border-color 0.13s, background 0.13s;
    overflow: hidden;
}
.qi-image-btn:hover { border-color: #00529b; background: #e6f0ff; }
.qi-image-btn.has-img { border-style: solid; border-color: rgba(0, 82, 155, 0.3); background: #fff; padding: 2px 4px; }
.qi-image-input { display: none !important; }
.qi-image-preview { width: 26px; height: 26px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }

/* Show image button for material and software item types */
.quote-item-row.type-material .qi-image-btn,
.quote-item-row.type-software .qi-image-btn { display: flex; }

/* Labor section toggle */
.qb-labor-section { transition: opacity 0.15s; }
.qb-labor-section:not(.labor-on) { opacity: 0.62; }
.qb-labor-body { overflow: hidden; transition: none; }
.qb-labor-hidden { display: none !important; }
.labor-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    flex-shrink: 0;
}
.labor-toggle-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #8a9ab5;
}
.qb-labor-section.labor-on .labor-toggle-label { color: #16a34a; }

/* Labor (Mano de obra) section */
.quote-labor-header {
    display: grid;
    grid-template-columns: 1fr 116px 104px 30px;
    gap: 0.48rem;
    min-width: 400px;
    padding: 0.1rem 0.65rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a9ab5;
    font-family: 'Inter', sans-serif;
}
.labor-item-row {
    grid-template-columns: 1fr 116px 104px 30px !important;
    min-width: 400px !important;
    border-color: rgba(22, 163, 74, 0.2) !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(22, 163, 74, 0.07), transparent 42%),
        linear-gradient(180deg, #f9fffc, #ffffff) !important;
}
.labor-item-row:hover {
    border-color: rgba(22, 163, 74, 0.38) !important;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.08);
}

/* Totals block */
.quote-totals-block {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.quote-totals-inputs {
    display: grid;
    grid-template-columns: minmax(120px, 180px) auto;
    gap: 1rem;
    align-items: end;
}
.quote-totals-summary {
    flex: 1;
    min-width: 200px;
    max-width: 340px;
    margin-left: auto;
    background:
        linear-gradient(90deg, #021c52 0 33.33%, #2f9449 33.33% 66.66%, #f28220 66.66% 100%) left top / 100% 4px no-repeat,
        radial-gradient(circle at 100% 0%, rgba(0, 82, 155, 0.09), transparent 35%),
        #f0f6ff;
    border-radius: 16px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0,82,155,.12);
}
.qt-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.28rem 0;
    font-size: 0.82rem;
    color: #445;
    border-bottom: 1px solid rgba(0,82,155,.09);
}
.qt-row:last-child {
    border-bottom: none;
    border-top: 2px solid #00529b;
    padding-top: 0.5rem;
    margin-top: 0.2rem;
}
.qt-row strong { font-family: 'Poppins', sans-serif; font-weight: 700; }
.qt-total span, .qt-total strong { font-size: 1.05rem; font-weight: 800; color: #021c52; }
.qt-discount strong { color: #c95f07; }

/* Quote list rows */
.quote-list-row { cursor: pointer; transition: background 0.13s; }
.quote-list-row:hover { background: rgba(0,82,155,.025); }
.quote-list-row:hover .admin-row-main strong { color: #00529b; }
.ql-area {
    display: block;
    font-size: 0.68rem;
    color: #8a9ab5;
    margin-top: 0.1rem;
    text-transform: capitalize;
}

/* Responsive */
@media (max-width: 960px) {
    .quotes-layout { grid-template-columns: 1fr; }
    .quotes-list-panel { position: static; max-height: none; }
    .quote-type-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .quotes-layout { grid-template-columns: 1fr; }
    .quotes-list-panel { position: static; max-height: none; }
    .quotes-builder-top {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem;
    }

    .quotes-header-actions {
        width: 100%;
    }

    .quotes-header-actions .admin-btn {
        flex: 1;
        justify-content: center;
    }

    form#quote-form {
        padding: 0.85rem;
    }

    form#quote-form .quote-section {
        padding: 0.9rem;
        border-radius: 16px;
    }

    form#quote-form .form-row,
    form#quote-form .form-row.three-col {
        grid-template-columns: 1fr;
    }

    .quote-scope-grid { grid-template-columns: 1fr; }
    .qb-party-grid { grid-template-columns: 1fr; }
    .qb-party-divider { display: none; }
    .qb-party-col:first-child { border-right: none; border-bottom: 1px solid #e0eaf5; }
    .quote-items-header { display: none; }
    .quote-item-row {
        min-width: 760px;
        grid-template-columns: 132px minmax(220px, 1fr) 62px 102px 94px 28px;
    }
    .qb-meta-row { grid-template-columns: 1fr 1fr; }
    .qb-meta-row .qb-field:last-child { grid-column: 1 / -1; }
    .quote-type-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
    .quote-brand-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .qbh-center { align-items: flex-start; }
    .qbh-actions { width: 100%; }
    .qbh-actions .admin-btn { flex: 1; justify-content: center; }
    .quote-item-row {
        min-width: 760px;
        grid-template-columns: 132px minmax(220px, 1fr) 62px 102px 94px 28px;
    }
    .qi-unit { display: block; }
    .quote-type-grid { grid-template-columns: repeat(2, 1fr); }
    .qb-meta-row { grid-template-columns: 1fr; }
    .qb-fields-grid { grid-template-columns: 1fr; }
    .qb-field-span2 { grid-column: 1; }
    .quote-totals-block { flex-direction: column; }
    .quote-totals-inputs { grid-template-columns: 1fr; width: 100%; }
    .quote-totals-summary { max-width: 100%; width: 100%; margin-left: 0; }
}

/* ===== SETTINGS FORM ===== */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 1.5rem 6rem;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #00529b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.2rem;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.settings-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.settings-field input,
.settings-field textarea {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-family: Inter, sans-serif;
    color: #111827;
    background: #fff;
    transition: border-color 0.15s;
    width: 100%;
}

.settings-field input:focus,
.settings-field textarea:focus {
    outline: none;
    border-color: #00529b;
    box-shadow: 0 0 0 3px rgba(0, 82, 155, 0.08);
}

.settings-field-wide { grid-column: 1 / -1; }

.settings-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.settings-benefit-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f9fafb;
}

.settings-benefit-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.settings-save-bar {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}

.settings-save-status {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
}
.settings-save-status.success { color: #16a34a; }
.settings-save-status.error   { color: #dc2626; }

@media (max-width: 640px) {
    .settings-grid { grid-template-columns: 1fr; }
    .settings-field-wide { grid-column: 1; }
    .settings-benefits { grid-template-columns: 1fr; }
}
