:root {
    --gold: #DCA54A;
    --gold-dark: #B7731F;
    --cream: #FAF5E5;
    --dark: #0F172A;
    --dark-2: #1E293B;
    --body-text: #54595F;
    --muted: #94A3B8;
    --line: #E7E3D8;
    --success: #16A34A;
    --info: #2563EB;
    --warning: #D97706;
    --danger: #DC2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: var(--body-text);
    background: #F7F4EC;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all .25s ease;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all .25s ease;
}

.btn-gold {
    background: var(--gold);
    color: #000;
}

.btn-gold:hover {
    background: var(--gold-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
}

.btn-outline:hover {
    background: var(--gold);
    color: #000;
}

.btn-dark {
    background: var(--dark);
    color: #fff;
}

.btn-dark:hover {
    background: var(--dark-2);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert i {
    margin-top: 3px;
}

.alert-sukses {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #15803D;
}

.alert-gagal {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
}

.badge {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.badge-new { background: #EFF6FF; color: var(--info); }
.badge-review { background: #FEF9C3; color: #A16207; }
.badge-quote { background: #FDF2E3; color: var(--gold-dark); }
.badge-process { background: #F3E8FF; color: #7E22CE; }
.badge-done { background: #F0FDF4; color: var(--success); }
.badge-cancel { background: #FEF2F2; color: var(--danger); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
}

.card + .card {
    margin-top: 24px;
}

.grid-2 > .card + .card,
.grid-2-even > .card + .card {
    margin-top: 0;
}

.grid-2 + .card,
.grid-2-even + .card,
.card + .grid-2,
.card + .grid-2-even,
.grid-2 + .grid-2-even,
.grid-2-even + .grid-2 {
    margin-top: 24px;
}

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

.card-title h3 {
    font-size: 18px;
}

.card-title .link {
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 600;
}

.card-title .link:hover {
    color: var(--gold);
}

.page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 26px;
}

.page-title h2 {
    font-size: 24px;
}

.page-title p {
    font-size: 14px;
    color: var(--muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon.gold { background: #FDF2E3; color: var(--gold-dark); }
.stat-icon.blue { background: #EFF6FF; color: var(--info); }
.stat-icon.green { background: #F0FDF4; color: var(--success); }
.stat-icon.purple { background: #F3E8FF; color: #7E22CE; }
.stat-icon.dark { background: var(--dark); color: var(--gold); }

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

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

.table th {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1.5px solid var(--line);
}

.table td {
    padding: 14px;
    border-bottom: 1px solid #F1EEE4;
    font-size: 14px;
    color: var(--body-text);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: #FCFAF3;
}

.table .strong {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

.table .actions {
    display: flex;
    gap: 8px;
}

.table input[type="text"],
.table input[type="number"] {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--dark);
    background: #fff;
}

.table input[type="text"]:focus,
.table input[type="number"]:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(220, 165, 74, .18);
}

#itemTable {
    min-width: 720px;
}

#itemTable th {
    padding: 12px 8px;
}

#itemTable td {
    padding: 10px 8px;
}

#itemTable input[type="text"] {
    padding: 10px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--body-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
}

.icon-btn:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

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

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--dark);
    background: #fff;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(220, 165, 74, .18);
}

.form-hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.radio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.radio-card input {
    display: none;
}

.radio-card span {
    display: block;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 18px 16px;
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
    height: 100%;
}

.radio-card i {
    font-size: 24px;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.radio-card b {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--dark);
    display: block;
    margin-bottom: 4px;
}

.radio-card small {
    font-size: 12px;
    color: var(--muted);
}

.radio-card input:checked + span {
    border-color: var(--gold);
    background: #FDF9EF;
    box-shadow: 0 0 0 3px rgba(220, 165, 74, .18);
}

.timeline {
    list-style: none;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--line);
}

.timeline li {
    position: relative;
    padding-bottom: 24px;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--line);
}

.timeline li.done::before {
    border-color: var(--gold);
    background: var(--gold);
}

.timeline li.current::before {
    border-color: var(--gold);
    background: #fff;
}

.timeline b {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--dark);
    display: block;
}

.timeline small {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-bottom: 3px;
}

.timeline p {
    font-size: 13px;
}

.detail-list {
    list-style: none;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #F1EEE4;
    font-size: 14px;
}

.detail-list li:last-child {
    border-bottom: none;
}

.detail-list span {
    color: var(--muted);
    flex-shrink: 0;
}

.detail-list b {
    font-weight: 600;
    color: var(--dark);
    text-align: right;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

.grid-2-even {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 14px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    background: #fff;
    color: var(--dark);
}

.filter-bar input {
    flex: 1;
    min-width: 200px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--gold);
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.pagination a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.pagination a.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.pagination a:hover:not(.active) {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.client-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.client-topbar {
    background: var(--dark);
    color: #fff;
}

.client-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.client-topbar .brand img {
    width: 96px;
    display: block;
}

.ttd-kertas {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #111;
    line-height: 1.5;
    max-width: 320px;
}

.ttd-kanvas {
    position: relative;
    width: 260px;
    height: 110px;
    margin: 4px 0;
    border: 1px dashed var(--gold);
    background: #FCFAF3;
    overflow: visible;
}

.ttd-kanvas-kosong {
    display: block;
    padding: 12px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

.ttd-seret {
    position: absolute;
    cursor: grab;
    touch-action: none;
}

.ttd-seret img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.ttd-seret:hover {
    outline: 1px dashed var(--muted);
}

.ttd-seret.aktif {
    cursor: grabbing;
}

.ttd-seret.terpilih,
.ttd-seret:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}

.ttd-kertas {
    overflow: visible;
}

.atur-ttd {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px 16px 2px;
    margin-bottom: 14px;
}

.atur-ttd > b {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--dark);
    margin-bottom: 12px;
}

.icon-btn-hapus:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.baris-terkunci td {
    opacity: .55;
}

.client-topbar .brand-klien {
    background: var(--logo-bg, #fff);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.client-topbar .brand-klien img {
    width: auto;
    max-width: 130px;
    max-height: 38px;
    object-fit: contain;
}

.client-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.client-nav a {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #CBD5E1;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.client-nav a:hover,
.client-nav a.active {
    color: var(--gold);
    border-color: var(--gold);
}

.client-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold);
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.client-user small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.client-user b {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
}

.client-user .logout {
    color: var(--muted);
    margin-left: 8px;
}

.client-user .logout:hover {
    color: var(--gold);
}

.client-main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 60px;
}

.client-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 18px;
    font-size: 13px;
    color: var(--muted);
}

.bo-shell {
    display: flex;
    min-height: 100vh;
}

.bo-sidebar {
    width: 256px;
    background: var(--dark);
    color: #CBD5E1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.bo-brand {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.bo-brand img {
    width: 90px;
    display: block;
}

.bo-brand small {
    display: block;
    margin-top: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--gold);
}

.bo-menu {
    list-style: none;
    padding: 18px 14px;
    flex: 1;
}

.bo-menu .label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #64748B;
    padding: 14px 12px 8px;
}

.bo-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 9px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #CBD5E1;
    margin-bottom: 3px;
}

.bo-menu a i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.bo-menu a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.bo-menu a.active {
    background: var(--gold);
    color: #000;
}

.bo-menu .count {
    margin-left: auto;
    background: rgba(255, 255, 255, .12);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.bo-menu a.active .count {
    background: rgba(0, 0, 0, .18);
}

.bo-sidebar-foot {
    padding: 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 12px;
    color: #64748B;
}

.bo-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.bo-topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0 28px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.bo-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F7F4EC;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 14px;
    width: 320px;
    max-width: 40vw;
}

.bo-search i {
    color: var(--muted);
    font-size: 13px;
}

.bo-search input {
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    width: 100%;
    color: var(--dark);
}

.bo-topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.bo-notif {
    position: relative;
}

.bo-bell {
    position: relative;
    color: var(--body-text);
    font-size: 17px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.bo-bell:hover {
    color: var(--gold-dark);
}

.notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: -10px;
    width: 360px;
    max-width: 86vw;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .14);
    z-index: 200;
    overflow: hidden;
}

.notif-panel.open {
    display: block;
}

.notif-panel::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    transform: rotate(45deg);
}

.notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.notif-head b {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: var(--dark);
}

.notif-head button {
    background: none;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold-dark);
    cursor: pointer;
}

.notif-head button:hover {
    color: var(--gold);
}

.notif-list {
    list-style: none;
    max-height: 320px;
    overflow-y: auto;
}

.notif-list li {
    display: flex;
    gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid #F1EEE4;
}

.notif-list li:last-child {
    border-bottom: none;
}

.notif-list li.unread {
    background: #FDF9EF;
}

.notif-list b {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    display: block;
}

.notif-list p {
    font-size: 13px;
    line-height: 1.5;
}

.notif-list small {
    font-size: 11px;
    color: var(--muted);
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-icon.gold { background: #FDF2E3; color: var(--gold-dark); }
.notif-icon.blue { background: #EFF6FF; color: var(--info); }
.notif-icon.green { background: #F0FDF4; color: var(--success); }
.notif-icon.purple { background: #F3E8FF; color: #7E22CE; }

.notif-foot {
    display: block;
    text-align: center;
    padding: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
    border-top: 1px solid var(--line);
    background: #FCFAF3;
}

.notif-foot:hover {
    color: var(--gold);
}

.bo-bell .dot {
    position: absolute;
    top: -3px;
    right: -5px;
    background: var(--danger);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.bo-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bo-user b {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--dark);
    display: block;
    line-height: 1.2;
}

.bo-user small {
    font-size: 11px;
    color: var(--muted);
}

.bo-main {
    padding: 30px 28px 60px;
    flex: 1;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-side {
    background: linear-gradient(rgba(15, 23, 42, .82), rgba(15, 23, 42, .82)), url('../images/hero-bg.jpg') center/cover;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
}

.auth-side img {
    width: 130px;
    margin-bottom: 30px;
}

.auth-side h2 {
    color: #fff;
    font-size: 30px;
    margin-bottom: 14px;
}

.auth-side p {
    color: #CBD5E1;
    max-width: 420px;
}

.auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #F7F4EC;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 38px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, .08);
}

.auth-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.auth-card > p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.auth-alt {
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
}

.auth-alt a {
    color: var(--gold-dark);
    font-weight: 600;
}

.auth-alt a:hover {
    color: var(--gold);
}

.checkbox-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 20px;
}

.checkbox-line label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-line a {
    color: var(--gold-dark);
    font-weight: 600;
}

.select2-container .select2-selection--single {
    height: 47px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    background: #fff;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 44px;
    padding-left: 14px;
    padding-right: 34px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--dark);
}

.select2-container .select2-selection--single .select2-selection__placeholder {
    color: var(--muted);
}

.select2-container .select2-selection--single .select2-selection__arrow {
    height: 45px;
    right: 8px;
}

.select2-container .select2-selection--single .select2-selection__arrow b {
    border-color: var(--muted) transparent transparent transparent;
}

.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--muted) transparent;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(220, 165, 74, .18);
}

.select2-container .select2-selection--single .select2-selection__clear {
    margin-right: 14px;
    color: var(--muted);
    font-size: 18px;
}

.select2-dropdown {
    border: 1.5px solid var(--gold);
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}

.select2-search--dropdown {
    padding: 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1.5px solid var(--line);
    border-radius: 7px;
    padding: 9px 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--gold);
}

.select2-results__option {
    padding: 10px 14px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: var(--body-text);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--gold);
    color: #000;
}

.select2-container--default .select2-results__option--selected {
    background: var(--cream);
    color: var(--dark);
}

.table tr.baris-klik {
    cursor: pointer;
}

.table tr.baris-klik:hover td {
    background: #FDF9EF;
}

.table td a {
    color: var(--dark);
}

.table tr.baris-klik:hover td a,
.quote-head h3 a:hover {
    color: var(--gold-dark);
}

.quote-head h3 a {
    color: var(--dark);
}

.foto-item-kecil {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--line);
    object-fit: cover;
    background: #fff;
    display: block;
}

.katalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.katalog-kartu {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
    cursor: pointer;
}

.katalog-kartu:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
    transform: translateY(-2px);
}

.katalog-kartu .pilih-item {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.katalog-centang {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--line);
    background: rgba(255, 255, 255, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: transparent;
    transition: all .2s ease;
}

.katalog-kartu:has(.pilih-item:checked) {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(220, 165, 74, .25);
}

.katalog-kartu:has(.pilih-item:checked) .katalog-centang {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
}

.bar-pilihan {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translate(-50%, 140%);
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--dark);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, .3);
    transition: transform .25s ease;
    font-size: 14px;
}

.bar-pilihan.tampil {
    transform: translate(-50%, 0);
}

.bar-pilihan b {
    font-family: 'Poppins', sans-serif;
    color: var(--gold);
}

.bar-aksi {
    display: flex;
    gap: 10px;
}

.bar-pilihan .btn-outline {
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
}

.bar-pilihan .btn-outline:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.katalog-foto {
    background: #FCFAF3;
    border-bottom: 1px solid var(--line);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.katalog-foto a,
.katalog-foto img {
    display: block;
    width: 100%;
    height: 100%;
}

.katalog-foto img {
    object-fit: cover;
}

.katalog-kosong {
    color: var(--line);
    font-size: 40px;
}

.katalog-isi {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.katalog-isi > b {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 6px;
}

.katalog-isi > p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.katalog-isi ul {
    list-style: none;
    border-top: 1px solid #F1EEE4;
    padding-top: 12px;
    margin-top: auto;
}

.katalog-isi li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 3px 0;
}

.katalog-isi li span {
    color: var(--muted);
}

.katalog-isi li b {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

.katalog-isi li:last-child b {
    color: var(--gold-dark);
    font-size: 15px;
}

@media (max-width: 1200px) {
    .katalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .katalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .katalog-grid {
        grid-template-columns: 1fr;
    }
}

.item-kartu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 4px 0;
}

.item-kartu b {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
}

.foto-item-jumbo {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    border: 1px solid var(--line);
    object-fit: cover;
    background: #fff;
    display: block;
    transition: transform .2s ease, border-color .2s ease;
}

a:hover > .foto-item-jumbo {
    transform: scale(1.04);
    border-color: var(--gold);
}

.foto-item-jumbo.kosong {
    border-style: dashed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--line);
    font-size: 30px;
}

.catatan-isi {
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
    white-space: pre-line;
}

.foto-item-besar {
    width: 56px;
    height: 56px;
    border-radius: 9px;
    border: 1px solid var(--line);
    object-fit: cover;
    background: #fff;
    display: block;
    transition: transform .2s ease;
}

.foto-item-besar:hover {
    transform: scale(1.06);
    border-color: var(--gold);
}

.foto-item-kosong {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px dashed var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--line);
    font-size: 15px;
}

.logo-pratinjau {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    padding: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
}

.ttd-pratinjau {
    border: 1px dashed var(--line);
    border-radius: 10px;
    margin-bottom: 14px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(45deg, #F4F1E8 25%, transparent 25%, transparent 75%, #F4F1E8 75%),
        linear-gradient(45deg, #F4F1E8 25%, #fff 25%, #fff 75%, #F4F1E8 75%);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
}

.ttd-pratinjau img {
    max-height: 92px;
    max-width: 90%;
    object-fit: contain;
}

.ttd-pratinjau span {
    font-size: 13px;
    color: var(--muted);
}

.warna-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.warna-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.warna-input input[type="color"] {
    width: 46px;
    height: 46px;
    padding: 3px;
    border: 1.5px solid var(--line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.warna-input input[type="text"] {
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
}

.pratinjau-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 7px;
}

.pratinjau-warna {
    --pw-aksen: #DCA54A;
    --pw-aksen-gelap: #B7731F;
    --pw-header: #0F172A;
    --pw-latar: #F7F4EC;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.pw-header {
    background: var(--pw-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.pw-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--pw-header, #0F172A);
    background: var(--pw-logo, #fff);
    padding: 6px 10px;
    border-radius: 6px;
}

.pw-nav {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--pw-aksen);
    border-bottom: 2px solid var(--pw-aksen);
    padding-bottom: 3px;
}

.pw-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pw-aksen);
    color: #000;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-badan {
    background: var(--pw-latar);
    padding: 16px;
}

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

.pw-btn-aksen,
.pw-btn-gelap {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
}

.pw-btn-aksen {
    background: var(--pw-aksen);
    color: #000;
}

.pw-btn-gelap {
    background: var(--pw-header);
    color: #fff;
}

.pw-kartu {
    width: 160px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    overflow: hidden;
}

.pw-foto {
    height: 70px;
    background: repeating-linear-gradient(45deg, #F4F1E8, #F4F1E8 8px, #fff 8px, #fff 16px);
}

.pw-teks {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pw-judul {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0F172A;
}

.pw-harga {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-aksen-gelap);
}

@media (max-width: 640px) {
    .warna-grid {
        grid-template-columns: 1fr;
    }
}

.bg-pratinjau {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 16 / 7;
    background: #FCFAF3;
}

.bg-pratinjau img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-pratinjau.logo-gelap {
    background: var(--dark);
    border-color: var(--dark);
}

.logo-pratinjau img {
    max-height: 70px;
    max-width: 100%;
    object-fit: contain;
}

.pilih-semua {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gold-dark);
    cursor: pointer;
}

.table input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--gold);
    cursor: pointer;
}

.file-drop {
    display: block;
    border: 1.5px dashed var(--line);
    border-radius: 12px;
    padding: 26px 18px;
    text-align: center;
    cursor: pointer;
    background: #FCFAF3;
    transition: all .25s ease;
}

.file-drop:hover,
.file-drop.aktif {
    border-color: var(--gold);
    background: #FDF9EF;
}

.file-drop input[type="file"] {
    display: none;
}

.file-drop i {
    font-size: 26px;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}

.file-drop b {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--dark);
    display: block;
    margin-bottom: 4px;
}

.file-drop small {
    font-size: 12px;
    color: var(--muted);
}

.file-list {
    list-style: none;
    margin-bottom: 14px;
}

.file-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    margin-bottom: 8px;
}

.file-list li:last-child {
    margin-bottom: 0;
}

.file-list li i {
    color: var(--gold-dark);
}

.file-list li span,
.file-list li a {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--dark);
}

.file-list li a {
    font-weight: 600;
    color: var(--gold-dark);
}

.file-list li a:hover {
    color: var(--gold);
}

.file-list li small {
    color: var(--muted);
    font-size: 12px;
    flex-shrink: 0;
}

.file-list li.gagal {
    border-color: #FECACA;
    background: #FEF2F2;
}

.file-list li.gagal i,
.file-list li.gagal small {
    color: var(--danger);
}

.quote-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    overflow: hidden;
}

.quote-card + .quote-card {
    margin-top: 24px;
}

.quote-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
    background: #FCFAF3;
}

.quote-head h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.quote-head p {
    font-size: 13px;
    color: var(--muted);
}

.quote-body {
    padding: 10px 24px 20px;
}

.quote-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 16px 14px;
    border-top: 1.5px solid var(--line);
    margin-top: 4px;
}

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

.quote-total b {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    color: var(--gold-dark);
}

.table input.input-salah {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .15);
}

.quote-total.quote-rincian {
    padding-top: 8px;
    padding-bottom: 8px;
}

.quote-total.quote-rincian b {
    font-size: 15px;
    color: var(--dark);
}

.quote-rincian + .quote-rincian,
.quote-rincian + .quote-total {
    border-top: none;
    margin-top: 0;
}

.quote-note {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    padding: 0 14px;
}

.quote-note i {
    margin-top: 3px;
    color: var(--gold);
}

.quote-foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 40px;
    color: var(--line);
    margin-bottom: 14px;
    display: block;
}

.progress {
    height: 8px;
    background: #F1EEE4;
    border-radius: 6px;
    overflow: hidden;
}

.progress span {
    display: block;
    height: 100%;
    background: var(--gold);
    border-radius: 6px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    height: 190px;
    padding-top: 10px;
}

.chart-bars .bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bars .fill {
    width: 100%;
    max-width: 46px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 8px 8px 0 0;
}

.chart-bars small {
    font-size: 12px;
    color: var(--muted);
}

.note-box {
    background: #FDF9EF;
    border: 1px solid #F0E2C4;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--gold-dark);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.note-box i {
    margin-top: 3px;
}

@media (max-width: 1024px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2,
    .grid-2-even {
        grid-template-columns: 1fr;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-side {
        display: none;
    }

    .radio-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .bo-sidebar {
        display: none;
    }

    .client-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

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