/* ═══════════════════════════════════════════
   AlFathKoding
   ═══════════════════════════════════════════ */

/* @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap"); */

/* ── RESET & ROOT ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

input,
textarea,
select,
[contenteditable] {
    user-select: text;
    -webkit-user-select: text;
}

.detail-description,
.reply-message,
.timeline-desc,
.detail-info-value,
.td-code,
.mobile-card-title,
.page-header-title,
.td-author-name,
.td-unit,
.page-header-subtitle,
.form-card-subtitle,
.reply-name,
.reply-time,
.timeline-meta,
.timeline-action,
.notif-item-name,
.notif-item-msg,
.notif-item-code,
.notif-item-time,
.toast-title-text,
.toast-meta,
.prof-name,
.prof-email,
.executor-checkbox-name,
.dash-overdue-title,
.dash-exec-name,
.filter-active-info,
.form-hint,
.asset-opt-name,
.asset-opt-code,
.asset-opt-meta,
.pagination-info,
.hero-stat-num,
.hero-stat-lbl,
.profile-hero-name,
.profile-hero-email,
.stat-number,
.stat-sublabel,
.stat-desc,
.combobox-option,
.badge-grouped,
.modal-confirm-text,
.modal-danger-text,
.dropdown-item,
.attach-prev-name,
.img-preview-filename {
    user-select: text;
    -webkit-user-select: text;
    -webkit-user-drag: none;
}

:root {
    --page-bg: #f0f1f5;
    --card-bg: #ffffff;
    --white: #ffffff;
    --text1: #1a1a2e;
    --text2: #5a6070;
    --text3: #9099aa;
    --default-bg: #0c5eb1;
    --border: #e8eaef;
    --accent: #e8294a;
    --accent2: #c8d7ff;
    --color-primary-soft: #c8d7ff;
    --color-dark: #000000;
    --color-light: #ffffff;
    --accent2-light: #fdeaed;
    --accent2-dark: #3b6ef5;
    --accent3: #c8ffd8;
    --success-bg: #15803d;
    --hover: #f5f6fa;
    --late-warning: #d97706;
    /* Gray scale */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Blue scale */
    --color-blue-50: #eff6ff;
    --color-blue-100: #dbeafe;
    --color-blue-200: #bfdbfe;
    --color-blue-300: #93c5fd;
    --color-blue-400: #60a5fa;
    --color-blue-500: #3b82f6;
    --color-blue-600: #2563eb;
    --color-blue-700: #1d4ed8;
    --color-blue-800: #1e40af;
    --color-blue-900: #1e3a8a;

    --disabled-form: #dee2e6;

    --radius-page: 16px;
    --radius-card: 14px;
    --sb-width: 240px;
    --gap: 10px;
    --pad: 10px;
    --font:
        system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.dark {
    --page-bg: #0f1117;
    --card-bg: #1a1f2e;
    --text1: #e8eaf0 !important;
    --text2: #8a93a8;
    --text3: #ffffff;
    --border: #252d3d;
    --hover: #222840;
    --color-dark: #ffffff;
    --disabled-form: #252d3d;
}

html,
body {
    height: 100%;
    background: var(--page-bg) !important;
    color: var(--text1) !important;
    font-family: var(--font) !important;
    font-size: 14px;
    transition:
        background 0.2s,
        color 0.2s;
    line-height: 1.3 !important;
}

body > .dropdown-menu {
    position: fixed !important;
}
/* ── SHELL ── */
.shell {
    display: flex;
    gap: var(--gap);
    padding: var(--pad);
    min-height: 100vh;
    align-items: flex-start;
}

/* ════════════════════════
   SIDEBAR
   ════════════════════════ */
.sidebar {
    width: var(--sb-width);
    min-width: var(--sb-width);
    background: var(--card-bg);
    border-radius: var(--radius-page);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: var(--pad);
    max-height: calc(100vh - var(--pad) * 2);
    overflow-y: auto;
    overflow-x: hidden;
    transition:
        width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        min-width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* collapsed */
.sidebar.collapsed {
    width: 56px;
    min-width: 56px;
    overflow: visible;
}
.sidebar.collapsed .sb-brand,
.sidebar.collapsed .nav-lbl,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .prof-info,
.sidebar.collapsed .prof-chevron,
.sidebar.collapsed .prof-dd,
.sidebar.collapsed .sb-community {
    display: none;
}
.sidebar.collapsed .sb-head {
    justify-content: center;
    padding: 14px 10px;
}
.sidebar.collapsed .sb-nav {
    padding: 8px 6px 4px;
}
.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 9px;
    gap: 0;
    border-radius: 9px;
}
.sidebar.collapsed .nav-item svg {
    width: 17px;
    height: 17px;
    opacity: 0.75;
}
.sidebar.collapsed .nav-item.active svg {
    opacity: 1;
}
.sidebar.collapsed .sb-foot {
    padding: 8px 6px;
}
.sidebar.collapsed .profile-btn {
    justify-content: center;
    padding: 8px;
    gap: 0;
}

/* tooltip */
.sb-tooltip {
    position: fixed;
    background: #1a1a2e;
    color: #fff;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    pointer-events: none;
    white-space: normal;
    max-width: 280px;
    line-height: 1.4;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.15s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark.sb-tooltip.show {
    background: #e8eaf0 !important;
    color: #1a1a2e !important;
}

.sb-tooltip.show {
    opacity: 1;
}

.sb-tooltip.tooltip-bottom-tip {
    transform: translate(-50%, 0) !important;
}

/* head */
.sb-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 14px 14px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.sb-logo {
    width: 34px;
    height: 34px;
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sb-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.sb-logo svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sb-brand {
    font-size: 15px;
    font-weight: 600;
    color: var(--text1);
}

/* nav */
.sb-nav {
    flex: 1;
    padding: 8px 10px 4px;
}
.nav-lbl {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 10px 8px 4px;
    white-space: nowrap;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px !important;
    border-radius: 9px;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text2);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    text-decoration: none;
    transition:
        background 0.13s,
        color 0.13s;
}
.nav-item:hover {
    background: var(--hover);
    color: var(--text1);
}
.nav-item.active {
    background: var(--accent2);
    color: var(--default-bg);
    font-weight: 600;
}
.dark .nav-item.active {
    background: var(--default-bg);
    color: #fff;
}
.nav-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.75;
}
.nav-item.active svg {
    opacity: 1;
}

/* community buttons */
.sb-community {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid var(--border);
}
.btn-community {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--hover);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.13s,
        border-color 0.13s;
}
.btn-community:hover {
    background: var(--border);
}
.btn-community svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: none;
    fill: currentColor;
}
.btn-community.telegram {
    color: #2aabee;
}
.btn-community.telegram:hover {
    border-color: #2aabee;
}
.btn-community.whatsapp {
    color: #25d366;
}
.btn-community.whatsapp:hover {
    border-color: #25d366;
}

/* footer / profile */
.sb-foot {
    padding: 10px;
    border-top: 1px solid var(--border);
}
.profile-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    background: var(--hover);
    cursor: pointer;
    transition: background 0.13s;
    position: relative;
}
.profile-btn:hover {
    background: var(--border);
}
.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #15803d, #5bbf81);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}
.prof-info {
    flex: 1;
    min-width: 0;
}
.prof-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prof-email {
    font-size: 11px;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prof-chevron {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    transition: transform 0.2s;
}
.profile-btn.open .prof-chevron {
    transform: rotate(180deg);
}

/* profile dropdown */
.prof-dd {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    z-index: 300;
    padding: 6px;
    display: none;
}
.prof-dd.open {
    display: block;
}

.prof-dd a {
    text-decoration: none !important;
}
.dd-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text2);
    cursor: pointer;
    transition: background 0.1s;
    text-decoration: none;
}
.dd-row:hover {
    background: var(--hover);
    color: var(--text1);
}
.dd-row svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.7;
}
.dd-row.red {
    color: var(--accent);
}
.dd-row.red svg {
    opacity: 1;
}
.dd-sep {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* dark toggle */
.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text2);
    cursor: pointer;
    transition: background 0.1s;
}
.toggle-wrap:hover {
    background: var(--hover);
}
.toggle-wrap svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.7;
}
.pill {
    width: 32px;
    height: 17px;
    background: #d1d5db;
    border-radius: 9px;
    position: relative;
    transition: background 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}
.dark .pill {
    background: var(--accent2);
}
.pill::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
.dark .pill::after {
    transform: translateX(15px);
}

/* ════════════════════════
   MAIN COL
   ════════════════════════ */
.main-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap);

    height: calc(100vh - var(--pad) * 2);
    overflow: hidden;
    position: sticky;
    top: var(--pad);
}

/* topbar */
.topbar {
    background: var(--default-bg);
    border-radius: var(--radius-page);
    border: 1px solid var(--border);
    padding: 11px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.topbar-icon {
    width: 17px;
    height: 17px;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.topbar-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
}

/* ════════════════════════
   TOPBAR RIGHT
   ════════════════════════ */
.topbar-spacer {
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.topbar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1.5px solid #fca5a5;
    background: #fef2f2;
    color: #dc2626;
    cursor: pointer;
    transition:
        background 0.13s,
        border-color 0.13s;
    flex-shrink: 0;
}
.topbar-logout:hover {
    background: #fee2e2;
    border-color: #f87171;
}
.topbar-logout svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ════════════════════════
   LOGOUT MODAL
   ════════════════════════ */
.logout-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.logout-modal-backdrop.show {
    opacity: 1;
    pointer-events: all;
}
.logout-modal-box {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    width: 100%;
    max-width: 340px;
    text-align: center;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    transform: translateY(10px) scale(0.97);
    transition: transform 0.2s ease;
}
.logout-modal-backdrop.show .logout-modal-box {
    transform: translateY(0) scale(1);
}
.logout-modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.logout-modal-icon svg {
    width: 22px;
    height: 22px;
}
.logout-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text1);
    margin-bottom: 8px;
}
.logout-modal-desc {
    font-size: 12.5px;
    color: var(--text3);
    line-height: 1.6;
    margin-bottom: 22px;
}
.logout-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.logout-modal-actions .btn-outline-secondary,
.logout-modal-actions .btn-danger {
    flex: 1;
    justify-content: center;
}

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius-page);
    border: 1px solid var(--border);
    padding: 22px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 98;
}
.overlay.show {
    display: block;
}

/* ════════════════════════
   BUTTONS
   ════════════════════════ */
.btn-icon {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 5px 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--white);
    transition: background 0.13s;
    flex-shrink: 0;
}
.btn-icon:hover {
    background: var(--hover);
    color: var(--default-bg);
}
.btn-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.btn-icon svg:hover {
    stroke: var(--default-bg);
}
.hamburger {
    display: none;
}

/* primary red */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--default-bg);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.13s;
}
.btn-primary:hover {
    opacity: 0.88;
}
.btn-primary svg {
    width: 13px;
    height: 13px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* primary blue */
.btn-primary-blue {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--accent2-dark);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.13s;
}
.btn-primary-blue:hover {
    opacity: 0.88;
}
.btn-primary-blue svg {
    width: 13px;
    height: 13px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* secondary / outline */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--page-bg);
    color: var(--text2);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.13s;
}
.btn-secondary:hover {
    background: var(--hover);
}
.btn-secondary svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--card-bg);
    color: var(--text2);
    border: 1px solid #d1d5db;
    border-radius: 9px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.13s;
}
.btn-outline-secondary:hover {
    background: #ddd;
}
.btn-outline-secondary svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Full-width button modifier */
.btn-full {
    width: 100%;
    justify-content: center;
}
.justify-center {
    justify-content: center;
}

/* edit (blue small) */
.btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: var(--accent2);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.13s;
}
.btn-edit:hover {
    background: #a7befc;
}
.btn-edit svg {
    width: 12px;
    height: 12px;
    stroke: #001fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* delete (red small) */
.btn-delete {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: #fdeaed;
    color: var(--accent);
    border: none;
    border-radius: 7px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.13s;
}
.btn-delete:hover {
    background: #fca5a5;
}
.btn-delete svg {
    width: 12px;
    height: 12x;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ── Header action buttons (detail page) ── */
.btn-header-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 13px;
    border-radius: 9px;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.13s;
    white-space: nowrap;
}
.btn-header-action svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    flex-shrink: 0;
}
.btn-header-action.btn-blue {
    background: var(--accent2);
    color: var(--accent2-dark);
}
.btn-header-action.btn-blue:hover {
    opacity: 0.85;
}
.btn-header-action.btn-yellow {
    background: #fffbeb;
    color: #d97706;
    border: 1.5px solid #fde68a;
}
.btn-header-action.btn-yellow:hover {
    background: #fef3c7;
}
.btn-header-action.btn-green {
    background: #dcfce7;
    color: #15803d;
    border: 1.5px solid #bbf7d0;
}
.btn-header-action.btn-green:hover {
    background: #bbf7d0;
}
.btn-header-action.btn-red {
    background: #fdeaed;
    color: var(--accent);
    border: 1.5px solid #fca5a5;
}
.btn-header-action.btn-red:hover {
    background: #fecaca;
}
.btn-header-action.btn-primary {
    background: var(--default-bg);
    color: #fff;
}
.btn-header-action.btn-primary:hover {
    opacity: 0.88;
}
.btn-header-action.btn-gray {
    background: #f3f4f6;
    color: #4b5563;
    border: 1.5px solid #e5e7eb;
}
.btn-header-action.btn-gray:hover {
    background: #e5e7eb;
}

/* ════════════════════════
   PAGE HEADER
   ════════════════════════ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.page-header-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text1);
}

.page-header-subtitle {
    font-size: 12px;
    color: var(--text3);
    margin-top: 2px;
}

/* ════════════════════════
   FLASH MESSAGE
   ════════════════════════ */
.flash-success {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #15803d;
    border-radius: 10px;
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.flash-success svg {
    width: 15px;
    height: 15px;
    stroke: #15803d;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    flex-shrink: 0;
}

/* ════════════════════════
   TABLE
   ════════════════════════ */
.tbl-wrap {
    overflow-x: auto;
    /* overflow: visible !important; */
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    box-shadow:
        0 0 0 0 rgba(0, 0, 0, 0.2),
        0 1px 0 0 rgba(0, 0, 0, 0.19);
}
.data-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: var(--font);
}
.data-tbl th {
    text-align: left;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
    background: var(--page-bg);
    white-space: nowrap;
}
.data-tbl td {
    padding: 5px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text1);
    vertical-align: baseline;
    overflow: visible;
}
.data-tbl tbody tr:last-child td {
    border-bottom: none;
}
.data-tbl tbody tr:hover td {
    background: var(--hover);
}

.td-no {
    color: var(--text3);
    font-size: 12px;
}
.td-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text1);
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.td-content {
    font-size: 12.5px;
    color: var(--text2);
    max-width: 260px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.td-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

[data-tooltip] {
    position: relative;
}
[data-tooltip]::after {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.td-actions [data-tooltip]::after {
    left: auto;
    right: 0;
    transform: none;
    top: auto;
    bottom: calc(100% + 6px);
}

.tbl-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
}
.tbl-empty {
    padding: 50px !important;
    text-align: center;
    color: var(--text3);
    font-size: 13.5px;
}
.tbl-empty svg {
    width: 25px;
    height: 25px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    display: block;
    margin: 0 auto 10px;
}

/* ════════════════════════
   FORM — BASE
   ════════════════════════ */
.form-group {
    margin-bottom: 18px;
}
.form-group.mb-0 {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    margin-bottom: 6px;
}
.form-label .required {
    color: var(--accent);
}
.form-label .optional {
    font-size: 11px;
    font-weight: 400;
    color: var(--text3);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 9px 13px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 9px !important;
    background: var(--card-bg) !important;
    color: var(--text1) !important;
    font-family: var(--font) !important;
    font-size: 13.5px !important;
    outline: none !important;
    line-height: 1.4 !important;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.form-control:focus {
    border-color: var(--default-bg) !important;
    box-shadow: 0 0 0 3px rgba(41, 63, 232, 0.08) !important;
}
.form-control::placeholder {
    color: var(--text3) !important;
}

.form-control:disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
}

.disabled {
    background: var(--disabled-form) !important;
    cursor: not-allowed !important;
}

textarea.form-control {
    resize: vertical !important;
    line-height: 1.5 !important;
}

.form-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    background: #fdeaed !important;
    border: 1px solid #fca5a5 !important;
    color: var(--accent) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 12.5px !important;
    margin-top: 6px;
}
.form-error svg {
    width: 13px;
    height: 13px;
    stroke: var(--accent) !important;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
    margin-top: 1px;
}

.mt-8 {
    margin-top: 8px;
}

/* ════════════════════════
   FORM — 2-COLUMN GRID
   ════════════════════════ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 16px;
    align-items: flex-start;
}

.form-col-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-col-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ════════════════════════
   FORM CARD
   ════════════════════════ */
.form-card {
    background: var(--card-bg) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-card) !important;
    padding: 20px !important;
    box-shadow: 0 1px 8px rgba(12, 94, 197, 0.2) !important;
    transition: box-shadow 0.2s;
    margin-bottom: 5px;
}
.form-card:hover {
    box-shadow: 0 3px 8px rgba(12, 94, 197, 0.2) !important;
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 12px !important;
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
    border-bottom: 1.5px solid var(--border) !important;
}
.form-card-header.border-none {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.form-card-header.pb-0 {
    padding-bottom: 0;
}

.form-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--accent3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.form-card-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--success-bg);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.form-card-icon.blue {
    background: #eff3ff;
}
.form-card-icon.blue svg {
    stroke: var(--accent2-dark);
}

.form-card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text1);
    line-height: 1.2;
}
.form-card-subtitle {
    font-size: 11.5px;
    color: var(--text3);
    margin-top: 2px;
}

/* actions card */
.form-card-actions .form-card-header {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border);
}

.form-actions-v2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

/* ════════════════════════
   UPLOAD ZONE V2
   ════════════════════════ */
.upload-zone-v2 {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px dashed var(--border);
    border-radius: 10px;
    background: var(--page-bg);
    cursor: pointer;
    transition:
        border-color 0.18s,
        background 0.18s;
}
.upload-zone-v2:hover,
.upload-zone-v2.has-file {
    border-color: var(--default-bg);
    background: #fff8f9;
}
.dark .upload-zone-v2:hover,
.dark .upload-zone-v2.has-file {
    background: #2c1520;
}

.upload-zone-icon {
    width: 38px;
    height: 38px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.18s;
}
.upload-zone-v2:hover .upload-zone-icon,
.upload-zone-v2.has-file .upload-zone-icon {
    border-color: var(--default-bg);
}
.upload-zone-icon svg {
    width: 17px;
    height: 17px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.18s;
}
.upload-zone-v2:hover .upload-zone-icon svg,
.upload-zone-v2.has-file .upload-zone-icon svg {
    stroke: var(--default-bg);
}

.upload-zone-text {
    display: flex;
    flex-direction: column;
}
.upload-zone-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    transition: color 0.18s;
}
.upload-zone-v2:hover .upload-zone-title,
.upload-zone-v2.has-file .upload-zone-title {
    color: var(--default-bg);
}
.upload-zone-hint {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
}

.upload-input-hidden {
    display: none;
}

/* ════════════════════════
   IMAGE PREVIEW CARD V2
   ════════════════════════ */
.img-preview-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1.5px solid var(--border);
    background: var(--page-bg);
}
.img-preview-full {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.img-preview-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.img-preview-badge.new,
.img-preview-badge:not(.current) {
    background: rgba(232, 41, 74, 0.85);
    color: #fff;
}
.img-preview-badge.current {
    background: rgba(90, 96, 112, 0.75);
    color: #fff;
}
.img-preview-badge svg {
    width: 10px;
    height: 10px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}
.img-preview-filename {
    padding: 6px 12px;
    font-size: 11px;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
}

/* ════════════════════════
   OPTIONAL BADGE
   ════════════════════════ */
.optional-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 400;
    color: var(--text3);
}

/* ════════════════════════
   OLD FORM UPLOAD (legacy keep)
   ════════════════════════ */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    background: var(--page-bg);
    transition: border-color 0.15s;
}
.upload-zone:hover {
    border-color: var(--default-bg);
}
.upload-zone svg {
    width: 28px;
    height: 28px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    display: block;
    margin: 0 auto 8px;
}
.upload-hint {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 8px;
}
.upload-input {
    font-size: 13px;
    color: var(--text2);
    cursor: pointer;
}

/* Old image preview (legacy keep) */
.img-preview-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.img-preview-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--border);
}
.img-preview-thumb.new {
    border-color: var(--accent2);
}
.img-preview-label {
    font-size: 12px;
    font-weight: 600;
}
.img-preview-label.new {
    color: var(--accent2);
}
.img-preview-label.current {
    color: var(--text2);
}
.img-preview-name {
    font-size: 11px;
    color: var(--text3);
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.border-bottom {
    border: 1px solid #fdeaed;
}

/* ════════════════════════
   INDEX TOOLBAR
   ════════════════════════ */
.index-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
}

.index-toolbar .desktop-only {
    flex-wrap: nowrap !important;
}

/* View switch: Tabel / Kanban — segmented control, samain gaya sama .profile-tabs */
.view-mode-switch {
    display: inline-flex;
    gap: 0;
    margin-bottom: 14px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    padding: 4px;
}
.view-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.15s;
}
.view-mode-btn:hover:not(.active) {
    color: var(--text1);
}
.view-mode-btn.active {
    background: var(--default-bg);
    color: #fff;
    box-shadow: 0 2px 8px rgba(12, 94, 197, 0.3);
}

/* Kanban board */
.kanban-board {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    align-items: flex-start;
}
.kanban-column {
    flex: 0 0 300px;
    width: 300px;
    background: var(--page-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-height: calc(100vh - 320px);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}
.kanban-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.kanban-column-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--text3);
    background: var(--card-bg);
    border-radius: 999px;
    padding: 2px 9px;
}
.kanban-column-body {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
}
.kanban-column-body .data-tbl-mobile-card {
    margin-bottom: 10px;
}
.kanban-column-body .data-tbl-mobile-card:last-child {
    margin-bottom: 0;
}
.kanban-column-body .mobile-action-bar {
    flex-direction: column;
}
.kanban-column-body .mobile-action-btn {
    flex: none;
    width: 100%;
    margin-bottom: 5px;
}
.kanban-empty {
    text-align: center;
    font-size: 12px;
    color: var(--text3);
    padding: 24px 8px;
}

.kanban-load-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    margin-top: 4px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    transition:
        background 0.13s,
        border-color 0.13s,
        color 0.13s;
}
.kanban-load-more-btn:hover {
    background: var(--hover);
    border-color: var(--default-bg);
    color: var(--default-bg);
}
.kanban-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search bar */
.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 160px;
    max-width: 300px;
    flex: 1 1 200px;
}
.search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
    flex-shrink: 0;
}
.search-input {
    width: 100%;
    padding: 8px 36px 8px 34px !important;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    background: var(--card-bg);
    color: var(--text1);
    font-family: var(--font);
    font-size: 13px;
    outline: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.search-input:focus {
    border-color: var(--default-bg);
    box-shadow: 0 0 0 3px rgba(41, 63, 232, 0.08);
}
.search-input::placeholder {
    color: var(--text3);
}
.search-clear {
    position: absolute;
    right: 8px;
    width: 20px;
    height: 20px;
    background: var(--border);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.13s;
}
.search-clear:hover {
    background: #fca5a5;
}
.search-clear svg {
    width: 10px;
    height: 10px;
    stroke: var(--text2);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}
.search-clear:hover svg {
    stroke: var(--default-bg);
}

/* ── Asset Searchable Select ─────────────────────────────── */
.asset-select-wrap {
    position: relative;
}

.asset-select-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    background: var(--card-bg);
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.asset-select-input-wrap.asset-select-focused {
    border-color: var(--default-bg);
    box-shadow: 0 0 0 3px rgba(41, 63, 232, 0.08);
}

.asset-select-icon {
    position: absolute;
    left: 11px;
    width: 14px;
    height: 14px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
    pointer-events: none;
}

.asset-select-input {
    width: 100%;
    padding: 9px 64px 9px 32px;
    border: none;
    background: transparent;
    color: var(--text1);
    font-family: var(--font);
    font-size: 13.5px;
    outline: none;
    line-height: 1.4;
}
.asset-select-input::placeholder {
    color: var(--text3);
}

.asset-select-clear {
    position: absolute;
    right: 28px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    color: var(--text2);
    transition: background 0.15s;
}
.asset-select-clear:hover {
    background: var(--text3);
}
.asset-select-clear svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.asset-select-chevron {
    position: absolute;
    right: 10px;
    width: 14px;
    height: 14px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
    transition: transform 0.2s;
}
.asset-select-chevron.rotated {
    transform: rotate(180deg);
}

/* Dropdown */
.asset-select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 200;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px;
}

/* Transition */
.dropdown-enter {
    transition:
        opacity 0.12s ease,
        transform 0.12s ease;
}
.dropdown-enter-start {
    opacity: 0;
    transform: translateY(-6px);
}
.dropdown-enter-end {
    opacity: 1;
    transform: translateY(0);
}

.asset-select-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    color: var(--text3);
    font-size: 13px;
}
.asset-select-empty svg {
    width: 14px;
    height: 14px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.asset-select-option {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.1s;
    position: relative;
}
.asset-select-option:hover {
    background: var(--hover-bg, rgba(0, 0, 0, 0.04));
}
.asset-select-option.selected {
    background: rgba(41, 63, 232, 0.07);
}

.asset-opt-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding-right: 20px;
}
.asset-opt-code {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--default-bg);
    background: rgba(41, 63, 232, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.asset-opt-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text1);
    line-height: 1.4;
}
.asset-opt-meta {
    font-size: 11.5px;
    color: var(--text3);
    padding-left: 2px;
}
.asset-opt-check {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    stroke: var(--default-bg);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ════════════════════════
   TABLE ENHANCEMENTS
   ════════════════════════ */
.tbl-thumb-wrap {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.tbl-thumb-wrap .tbl-thumb {
    border: none;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.td-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text3);
    margin-top: 3px;
}
.td-meta svg {
    width: 11px;
    height: 11px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

/* ════════════════════════
   CUSTOM PAGINATION
   ════════════════════════ */
.custom-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.pagination-info {
    font-size: 12px;
    color: var(--text3);
}
.pagination-info strong {
    color: var(--text2);
    font-weight: 600;
}
.pagination-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    color: var(--text2);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.13s,
        border-color 0.13s,
        color 0.13s;
    user-select: none;
    text-decoration: none;
}
.page-btn:hover:not(.disabled):not(.active) {
    background: var(--hover) !important;
    border-color: #c5c9d4 !important;
    color: var(--text1) !important;
}
.page-btn.active {
    background: var(--default-bg) !important;
    border-color: var(--default-bg) !important;
    color: #fff !important;
    font-weight: 700 !important;
    cursor: default !important;
}
.page-btn.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.page-btn.page-dots {
    border: none;
    background: transparent;
    cursor: default;
    letter-spacing: 1px;
    color: var(--text3);
}
.page-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ════════════════════════
   FLASH FADE OUT
   ════════════════════════ */
.flash-fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* ── PROFILE HERO ── */
.profile-hero {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-page);
    overflow: hidden;
    margin-bottom: 5px;
    box-shadow: 0 1px 8px rgba(12, 94, 197, 0.12);
}
.profile-hero-banner {
    height: 80px;
    background: linear-gradient(135deg, #0c5eb1 0%, #3b6ef5 50%, #6d9ef7 100%);
    position: relative;
    overflow: hidden;
}
.profile-hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='0' cy='0' r='20'/%3E%3Ccircle cx='60' cy='60' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.profile-hero-body {
    padding: 0 22px 20px;
    position: relative;
}
.profile-avatar-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -46px;
    margin-bottom: 16px;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #15803d, #5bbf81);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 26px;
    border: 4px solid var(--card-bg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}
.profile-avatar:hover {
    transform: scale(1.04);
}
.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.profile-avatar:hover .profile-avatar-overlay {
    opacity: 1;
}
.profile-avatar-overlay svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.profile-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    padding-left: 16px;
    padding-bottom: 4px;
}
.profile-hero-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-light);
    line-height: 1.2;
    letter-spacing: -0.3px;
}
.profile-hero-email {
    font-size: 12px;
    color: var(--text3);
    font-weight: 500;
    letter-spacing: 0.1px;
}
.profile-hero-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.unit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.role-badge svg,
.unit-badge svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}
.profile-hero-stats {
    display: flex;
    gap: 0;
    border-top: 1.5px solid var(--border);
    margin-top: 14px;
}
.hero-stat {
    flex: 1;
    padding: 12px 0;
    text-align: center;
    border-right: 1px solid var(--border);
}
.hero-stat:last-child {
    border-right: none;
}
.hero-stat-num {
    font-size: 18px;
    font-weight: 800;
    color: var(--default-bg);
}
.hero-stat-lbl {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
}

/* ── TABS ── */
.profile-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 4px;
}
.tab-btn {
    flex: 1;
    padding: 8px 0;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    border-radius: 9px;
    transition: all 0.15s;
}
.tab-btn.active {
    background: var(--default-bg);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(12, 94, 197, 0.3);
}
.tab-btn:hover:not(.active) {
    background: var(--hover);
    color: var(--text1);
}

/* ── ACTIVITY ROW ── */
.activity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.activity-row:last-child {
    border-bottom: none;
}
.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--default-bg);
    flex-shrink: 0;
}
.activity-dot.green {
    background: #16a34a;
}
.activity-dot.orange {
    background: #d97706;
}
.activity-info {
    flex: 1;
}
.activity-action {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text1);
}
.activity-meta {
    font-size: 11px;
    color: var(--text3);
    margin-top: 2px;
}
.activity-time {
    font-size: 11px;
    color: var(--text3);
    white-space: nowrap;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Combobox wrapper */
.combobox-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.combobox-wrap.is-disabled .combobox-input {
    opacity: 0.55;
    cursor: not-allowed;
}
.combobox-input {
    width: 100%;
    padding-right: 2rem; /* ruang untuk tombol clear */
}
.combobox-input.has-badge {
    padding-left: 3.25rem;
}

/* Badge "Baru" */
.combobox-badge-new {
    position: absolute;
    left: 0.5rem;
    z-index: 1;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-blue-600, #2563eb);
    border-radius: 4px;
    padding: 1px 6px;
    pointer-events: none;
}

/* Tombol clear */
.combobox-clear {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-gray-400);
    display: flex;
    align-items: center;
    padding: 0;
}
.combobox-clear:hover {
    color: var(--color-gray-700);
}

.combobox-clear svg:hover {
    color: var(--color-blue-600);
}

/* Dropdown */
.combobox-dropdown {
    position: absolute;
    z-index: 50;
    width: 100%;
    margin-top: 2px;
    background: var(--color-white, #fff);
    border: 1px solid var(--color-gray-200);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    max-height: 220px;
    overflow-y: auto;
}

/* Option item */
.combobox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-gray-700);
}
.combobox-option:hover {
    background: var(--color-gray-50);
}

/* Opsi tambah baru */
.combobox-option-new {
    color: var(--color-blue-600, #2563eb);
    border-top: 1px solid var(--color-gray-100);
    font-size: 0.875rem;
}
.combobox-option-new:hover {
    background: var(--color-blue-50, #eff6ff);
}

/* Empty state */
.combobox-empty {
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-gray-400);
    text-align: center;
}

/* Section label dalam dropdown */
.combobox-section-label {
    padding: 0.35rem 0.75rem 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-400);
}

/* Option aktif (selected) */
.combobox-option--active {
    background: var(--color-blue-50, #eff6ff);
    color: var(--color-blue-700, #1d4ed8);
    font-weight: 500;
}

/* Tag "Baru" di sebelah label */
.category-new-tag {
    display: inline-flex;
    align-items: center;
    margin-left: 0.4rem;
    padding: 1px 7px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-blue-600, #2563eb);
    border-radius: 999px;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

/* Border biru saat mode "new" */
.combobox-input--new {
    border-color: var(--color-blue-500, #3b82f6) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Form hint variants */
.form-hint {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-gray-400);
}
.form-hint--blue {
    color: var(--color-blue-600, #2563eb);
}
.form-hint--green {
    color: var(--color-green-600, #16a34a);
}

/* ── Notif Bell Button ── */
.topbar-notif-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition:
        background 0.13s,
        border-color 0.13s;
    flex-shrink: 0;
}
.topbar-notif-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}
.topbar-notif-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Badge merah */
.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--default-bg, #0c5eb1);
    line-height: 1;
    font-family: var(--font);
    pointer-events: none;
}

/* ── Notif Wrap ── */
.notif-wrap {
    position: relative;
}

/* ── Notif Panel ── */
.notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--card-bg, #fff);
    border: 1.5px solid var(--border, #e8eaef);
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.14);
    z-index: 9998;
    overflow: hidden;
    font-family: var(--font);
}
.notif-panel.open {
    display: block;
    animation: notifFadeIn 0.15s ease;
}
@keyframes notifFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border, #e8eaef);
}
.notif-panel-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text1, #1a1a2e);
}
.notif-panel-clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 11.5px;
    color: var(--text3, #9099aa);
    cursor: pointer;
    transition: color 0.13s;
    padding: 0;
}
.notif-panel-clear:hover {
    color: #16a34a;
}
.notif-panel-clear svg {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.notif-panel-body {
    max-height: 340px;
    overflow-y: auto;
    padding: 6px;
}

/* Notif item */
.notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 10px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.1s;
    border-bottom: 1px solid var(--border, #e8eaef);
}
.notif-item:last-child {
    border-bottom: none;
}
.notif-item:hover {
    background: var(--hover, #f5f6fa);
}
.notif-item.unread {
    background: #eff6ff;
}
.notif-item.unread:hover {
    background: #dbeafe;
}

.notif-item-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b6ef5, #7c3aed);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.notif-item-body {
    flex: 1;
    min-width: 0;
}
.notif-item-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.notif-item-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text1, #1a1a2e);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}
.notif-item-code {
    font-size: 10.5px;
    font-weight: 600;
    color: #2563eb;
    background: #eff6ff;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.notif-item-msg {
    font-size: 12px;
    color: var(--text2, #5a6070);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-item-time {
    font-size: 10.5px;
    color: var(--text3, #9099aa);
    margin-top: 3px;
}
.notif-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    flex-shrink: 0;
    margin-top: 5px;
}

/* Empty state */
.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 0;
    color: var(--text3, #9099aa);
    font-size: 13px;
}
.notif-empty svg {
    width: 26px;
    height: 26px;
    stroke: var(--text3, #9099aa);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.5;
}

/* ════════════════════════
   RESPONSIVE
   ════════════════════════ */
@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-col-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .shell {
        padding: 8px;
        gap: 0;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0 var(--radius-page) var(--radius-page) 0;
        transform: translateX(-110%);
        z-index: 99;
        transition: transform 0.25s ease;
        width: var(--sb-width) !important;
        min-width: var(--sb-width) !important;
    }
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    .sidebar.collapsed .sb-brand,
    .sidebar.collapsed .nav-lbl,
    .sidebar.collapsed .nav-item span,
    .sidebar.collapsed .prof-info,
    .sidebar.collapsed .prof-chevron,
    .sidebar.collapsed .sb-community {
        display: revert;
    }
    .sidebar.collapsed .sb-head {
        justify-content: flex-start;
        padding: 16px 14px 14px;
    }
    .sidebar.collapsed .sb-nav {
        padding: 8px 10px 4px;
    }
    .sidebar.collapsed .nav-item {
        justify-content: flex-start;
        padding: 8px 10px;
        gap: 9px;
    }
    .sidebar.collapsed .sb-foot {
        padding: 10px;
    }
    .sidebar.collapsed .profile-btn {
        justify-content: flex-start;
        padding: 9px 10px;
        gap: 9px;
    }

    .desktop-only {
        display: none;
    }
    .main-col {
        width: 100%;
    }
    .hamburger {
        display: flex !important;
    }
    .content-card {
        padding: 14px;
    }

    .form-col-side {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .form-actions {
        flex-wrap: wrap;
    }
    .form-actions-v2 .btn-full {
        padding: 10px;
    }
}

/* ════════════════════════
   SLUG PREVIEW
   ════════════════════════ */
.slug-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    background: var(--hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text3);
    margin-top: -10px;
    margin-bottom: 14px;
}
.slug-preview svg {
    width: 12px;
    height: 12px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}
.slug-preview strong {
    color: var(--accent2-dark);
    font-weight: 600;
}

/* STAT CARDS */
.stats-row-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.stats-row-scroll::-webkit-scrollbar {
    height: 4px;
}
.stats-row-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.stats-row-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.stats-row-scroll .stat-card {
    min-width: 220px;
    flex-shrink: 0;
    margin-bottom: 0;
}

/* ── Stat card scroll wrapper ── */
.stats-scroll-outer {
    position: relative;
    margin-bottom: 16px;
}
.stats-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition:
        background 0.13s,
        opacity 0.13s;
    color: var(--text2);
}
.stats-scroll-arrow:hover {
    background: var(--hover);
}
.stats-scroll-arrow.arrow-left {
    left: -14px;
}
.stats-scroll-arrow.arrow-right {
    right: -14px;
}
.stats-scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}
.stats-scroll-arrow svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}
.stats-row-scroll {
    scroll-behavior: smooth;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.stat-card {
    background: #f3f4f6;
    border-radius: 16px;
    padding: 15px 5px 5px 5px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.2s;
}

.dark .stat-card {
    background: var(--default-bg);
}

.dark .stat-card-label {
    color: var(--white);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
    margin-left: 15px;
}
.stat-card-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 15px;
}
.stat-number {
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}
.stat-sublabel {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.stat-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
}
.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.icon-blue {
    background: #dbeafe;
    color: #2563eb;
}
.icon-green {
    background: #dcfce7;
    color: #16a34a;
}
.icon-orange {
    background: #fef3c7;
    color: #d97706;
}
.icon-purple {
    background: #f3e8ff;
    color: #9333ea;
}
.icon-teal {
    background: #ccfbf1;
    color: #0d9488;
}
.icon-red {
    background: #fee2e2;
    color: #dc2626;
}
.num-blue {
    color: #2563eb;
}
.num-green {
    color: #16a34a;
}
.num-orange {
    color: #d97706;
}
.num-purple {
    color: #9333ea;
}

.num-red {
    color: #dc2626;
}

/* ════════════════════════
   STATUS TOGGLE
   ════════════════════════ */
.status-toggle {
    display: flex;
    gap: 8px;
}
.status-opt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.status-opt:hover {
    background: var(--hover);
}
.status-opt svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}
.status-opt.active-draft {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #b45309;
    font-weight: 600;
}
.status-opt.active-published {
    background: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
    font-weight: 600;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ════════════════════════
   AUTH — BODY & OUTER
   ════════════════════════ */
.auth-body {
    min-height: 100vh;
    background: var(--page-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-outer {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ════════════════════════
   AUTH — CARD
   ════════════════════════ */
.auth-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-page);
    padding: 32px 28px;
    width: 100%;
    max-width: 400px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.03),
        0 4px 24px rgba(0, 0, 0, 0.06);
}

.auth-logo-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
}
.auth-logo-box {
    width: 30px;
    height: 30px;
    background: var(--default-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.auth-logo-box svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.auth-brand-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text1);
}

.auth-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--text1);
    margin-bottom: 4px;
}
.auth-subheading {
    font-size: 13px;
    color: var(--text3);
    margin-bottom: 0;
}
.auth-divider {
    height: 1.5px;
    background: var(--border);
    margin: 18px 0;
}

/* ════════════════════════
   AUTH — FIELDS
   ════════════════════════ */
.auth-field {
    margin-bottom: 14px;
}
.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    margin-bottom: 6px;
}
.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

/* password wrap */
.auth-pw-wrap {
    position: relative;
}
.auth-pw-wrap .form-control {
    padding-right: 40px;
}
.auth-pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.auth-pw-toggle svg {
    width: 15px;
    height: 15px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

/* ════════════════════════
   AUTH — REMEMBER
   ════════════════════════ */
.auth-remember-row {
    margin-bottom: 14px;
}
.auth-remember-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text2);
    cursor: pointer;
    user-select: none;
}
.auth-checkbox {
    accent-color: var(--default-bg);
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* ════════════════════════
   AUTH — PASSWORD STRENGTH
   ════════════════════════ */
.pw-strength-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 7px;
    margin-bottom: 4px;
}
.pw-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.pw-strength-fill {
    height: 100%;
    border-radius: 4px;
    transition:
        width 0.25s,
        background 0.25s;
}
.pw-strength-fill.strength-1 {
    width: 25%;
    background: #ef4444;
}
.pw-strength-fill.strength-2 {
    width: 50%;
    background: #f59e0b;
}
.pw-strength-fill.strength-3 {
    width: 75%;
    background: #3b82f6;
}
.pw-strength-fill.strength-4 {
    width: 100%;
    background: #22c55e;
}
.pw-strength-label {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.pw-strength-label.strength-label-1 {
    color: #ef4444;
}
.pw-strength-label.strength-label-2 {
    color: #b45309;
}
.pw-strength-label.strength-label-3 {
    color: #1d4ed8;
}
.pw-strength-label.strength-label-4 {
    color: #15803d;
}

/* ════════════════════════
   AUTH — FOOTER LINK
   ════════════════════════ */
.auth-footer-link {
    text-align: center;
    font-size: 13px;
    color: var(--text3);
    margin-top: 18px;
}
.auth-footer-link a {
    color: var(--default-bg);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer-link a:hover {
    text-decoration: underline;
}

.auth-loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 20, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: auth-fade-in 0.2s ease-out;
}

@keyframes auth-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    animation: auth-pop-in 0.25s ease-out;
}

@keyframes auth-pop-in {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.auth-loading-logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    animation: auth-pulse 1.4s ease-in-out infinite;
}

.auth-loading-logo svg {
    width: 100%;
    height: 100%;
}

@keyframes auth-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.7;
    }
}

.auth-loading-spinner-wrap {
    position: relative;
    width: 48px;
    height: 48px;
}

.auth-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.auth-loading-ring-1 {
    border-top-color: #fff;
    border-right-color: #fff;
    animation: auth-spin-cw 0.9s linear infinite;
}

.auth-loading-ring-2 {
    border-bottom-color: rgba(255, 255, 255, 0.4);
    border-left-color: rgba(255, 255, 255, 0.4);
    animation: auth-spin-ccw 1.3s linear infinite;
}

@keyframes auth-spin-cw {
    to {
        transform: rotate(360deg);
    }
}

@keyframes auth-spin-ccw {
    to {
        transform: rotate(-360deg);
    }
}

.auth-loading-text {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    margin: 0;
    letter-spacing: 0.3px;
}

.auth-loading-dots {
    display: flex;
    gap: 5px;
}

.auth-loading-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: auth-dot-bounce 1.2s ease-in-out infinite;
}

.auth-loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}
.auth-loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes auth-dot-bounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ════════════════════════
   AUTH — LOADING SPIN
   ════════════════════════ */
@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}
.auth-spin {
    width: 13px;
    height: 13px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    animation: auth-spin 0.7s linear infinite;
}

/* ════════════════════════
   FILTER BUTTON GROUP
   ════════════════════════ */
.filter-wrap {
    display: flex;
    align-items: center;
}
.filter-btn-group {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--page-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 3px;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 7px;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition:
        background 0.13s,
        color 0.13s;
    white-space: nowrap;
}
.filter-btn:hover {
    background: var(--card-bg);
    color: var(--text1);
}
.filter-btn.active {
    background: var(--card-bg);
    color: var(--text1);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.filter-btn.active-published {
    background: #dcfce7;
    color: #15803d;
    font-weight: 600;
}
.filter-btn.active-draft {
    background: #fffbeb;
    color: #b45309;
    font-weight: 600;
}

/* ── Filter Select ───────────────────────────────────────────── */
.filter-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.filter-select-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
    flex-shrink: 0;
}
.filter-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 8px 36px 8px 30px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    background: var(--card-bg);
    color: var(--text1);
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    min-width: 145px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239099aa' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}
.filter-select:focus {
    border-color: var(--default-bg);
    box-shadow: 0 0 0 3px rgba(41, 63, 232, 0.08);
}

/* ── Reset Filter Button ─────────────────────────────────────── */
.btn-reset-filter {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border: 1.5px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
    color: #dc2626;
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.13s;
    white-space: nowrap;
}
.btn-reset-filter:hover {
    background: #fee2e2;
}
.btn-reset-filter svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ── Filter Trigger Button ── */
.filter-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    cursor: pointer;
    position: relative;
    transition:
        border-color 0.15s,
        background 0.15s;
}
.filter-trigger-btn:hover {
    background: var(--hover);
    border-color: var(--default-bg);
}
.filter-trigger-btn svg {
    stroke: var(--text2);
}
.filter-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    position: absolute;
    top: -3px;
    right: -3px;
    border: 2px solid var(--card-bg);
}

/* ── Drawer Backdrop ── */
.filter-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.filter-drawer-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Drawer Panel ── */
.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 350px;
    background: var(--card-bg);
    border-left: 1.5px solid var(--border);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-drawer.open {
    transform: translateX(0);
}

/* ── Drawer Head ── */
.filter-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1.5px solid var(--border);
    flex-shrink: 0;
}
.filter-drawer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text1);
}
.filter-drawer-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: var(--page-bg);
    cursor: pointer;
    color: var(--text2);
    transition: background 0.13s;
}
.filter-drawer-close:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ── Drawer Body ── */
.filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.filter-drawer-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-drawer-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-drawer-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    height: auto;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    border-left: none;
    border-top: 1.5px solid var(--border);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-bg);
    z-index: 201;
    display: flex;
    flex-direction: column;
}

.filter-drawer-mobile.open {
    transform: translateY(0);
}

/* ── Priority Radio Opts ── */
.filter-priority-opts {
    display: flex;
    gap: 6px;
}
.filter-prio-opt {
    flex: 1;
    text-align: center;
    padding: 7px 0;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.13s;
}
.filter-prio-opt:hover {
    background: var(--hover);
}
.filter-prio-opt.active,
.filter-prio-opt:has(input:checked) {
    background: var(--accent2);
    border-color: var(--default-bg);
    color: var(--default-bg);
    font-weight: 700;
}

/* ── Date Row ── */
.filter-date-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-date-row .form-control {
    flex: 1;
    font-size: 12px !important;
    padding: 8px 10px !important;
}
.filter-date-sep {
    font-size: 14px;
    color: var(--text3);
    flex-shrink: 0;
}

/* ── Active Info Banner ── */
.filter-active-info {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #d97706;
}

/* ── Drawer Footer ── */
.filter-drawer-foot {
    padding: 16px 20px;
    border-top: 1.5px solid var(--border);
    flex-shrink: 0;
}

/* ════════════════════════
   STATUS DOT & BADGE
   ════════════════════════ */
.status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.published {
    background: #22c55e;
}
.status-dot.draft {
    background: #f59e0b;
}

.td-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}
.td-status-badge.published {
    background: #dcfce7;
    color: #15803d;
}
.td-status-badge.draft {
    background: #fffbeb;
    color: #b45309;
}

/* ════════════════════════
   CATEGORY BADGE
   ════════════════════════ */
.td-badge.category {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--accent2);
    color: var(--accent2-dark);
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ════════════════════════
   AUTHOR CELL
   ════════════════════════ */
.td-author {
    display: flex;
    align-items: center;
    gap: 7px;
}
.td-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b6ef5, #e8294a);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.td-author-name {
    font-size: 12px;
    color: var(--text2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* ── Ticket Code ─────────────────────────────── */
.td-code {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-dark);
    background: var(--color-primary-soft);
    padding: 2px 8px;
    border-radius: 4px;
}

.td-unit {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-dark);
    padding: 2px 8px;
    border-radius: 4px;
    gap: 2px;
    display: flex;
    align-items: center;
}

/* ── Priority Badges ─────────────────────────── */
.priority-low {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.priority-medium {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.priority-high {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ════════════════════════
   TD-BADGE BASE
   ════════════════════════ */
.td-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* ════════════════════════
   STATUS DOT — TICKET
   ════════════════════════ */
.status-dot.dot-yellow {
    background: #f59e0b;
}
.status-dot.dot-blue {
    background: #2563eb;
}
.status-dot.dot-purple {
    background: #7c3aed;
}
.status-dot.dot-orange {
    background: #f97316;
}
.status-dot.dot-green {
    background: #16a34a;
}
.status-dot.dot-gray {
    background: #6b7280;
}
.status-dot.dot-red {
    background: #dc2626;
}

/* ════════════════════════
   TD-STATUS-BADGE — TICKET
   (pakai badge-* class dari enum)
   ════════════════════════ */
.td-status-badge.badge-yellow {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.td-status-badge.badge-blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.td-status-badge.badge-purple {
    background: #faf5ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}
.td-status-badge.badge-orange {
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}
.td-status-badge.badge-green {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.td-status-badge.badge-gray {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}
.td-status-badge.badge-red {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ── Status Badges ───────────────────────────── */
.badge-gray {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}
.badge-blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.badge-yellow {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}
.badge-purple {
    background: #faf5ff;
    color: #7c3aed;
    border: 1px solid #e9d5ff;
}
.badge-green {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.badge-red {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* ── Action Buttons ──────────────────────────── */
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.btn-action svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.btn-action:hover {
    opacity: 0.75;
}
.btn-blue {
    background: #eff6ff;
    color: #2563eb;
}
.btn-yellow {
    background: #fffbeb;
    color: #d97706;
}
.btn-green {
    background: #f0fdf4;
    color: #16a34a;
}

.btn-green:hover {
    background: #16a34a;
    color: #f0fdf4;
}
.btn-red {
    background: #fef2f2;
    color: #dc2626;
}

/* ── Modal ───────────────────────────────────── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}
.modal-box {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.modal-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}
.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 4px;
}
.modal-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}
.modal-body {
    margin-bottom: 20px;
}
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ── Detail Page ─────────────────────────────── */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}
.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.detail-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    white-space: pre-wrap;
    margin-bottom: 20px;
}
.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
}
.detail-info-label {
    font-size: 0.75rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.detail-info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    margin-top: 2px;
}

/* ── Replies ─────────────────────────────────── */
.reply-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.reply-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.reply-own {
    flex-direction: row-reverse;
}
.reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-primary-soft, #fdeaed);
    color: var(--color-primary, #e8294a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.reply-bubble {
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px 14px;
    max-width: 80%;
}
.reply-own .reply-bubble {
    background: #eff6ff;
}
.reply-header {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
}
.reply-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}
.reply-time {
    font-size: 0.72rem;
    color: #9ca3af;
}
.reply-message {
    font-size: 0.875rem;
    color: #111827;
    line-height: 1.5;
}
.reply-form {
    border-top: 1px solid #f3f4f6;
    padding-top: 16px;
}
.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

/* ── Timeline ────────────────────────────────── */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.timeline-item {
    display: flex;
    gap: 12px;
    padding-bottom: 20px;
    position: relative;
}
.timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 18px;
    bottom: 0;
    width: 2px;
    background: #f3f4f6;
}
.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--color-primary, #e8294a);
    flex-shrink: 0;
    margin-top: 2px;
}
.timeline-content {
    flex: 1;
}
.timeline-action {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.timeline-desc {
    font-size: 0.875rem;
    color: #374151;
    margin: 2px 0;
}
.timeline-meta {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* ── Priority Selector ───────────────────────── */
.priority-selector {
    display: flex;
    gap: 8px;
}
.priority-opt {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.15s;
}
.priority-opt:hover {
    border-color: #9ca3af;
}
.priority-opt.active-low {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #16a34a;
}
.priority-opt.active-medium {
    border-color: #d97706;
    background: #fffbeb;
    color: #d97706;
}
.priority-opt.active-high {
    border-color: #dc2626;
    background: #fef2f2;
    color: #dc2626;
}

.priority-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* ── Filter Count Badge ──────────────────────────────────────── */
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--border);
    color: var(--text2);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
    transition:
        background 0.13s,
        color 0.13s;
}
.filter-btn.active .filter-count,
.filter-count-active {
    background: var(--default-bg);
    color: #fff;
}

/* ── Dropdown Action Menu ────────────────────────────────────── */
.action-dropdown {
    position: relative;
    display: inline-block;
}
.btn-action-dots {
    /* display: inline-flex; */
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 7px;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    color: var(--text2);
    cursor: pointer;
    transition:
        background 0.13s,
        border-color 0.13s;
}
.btn-action-dots:hover {
    background: var(--hover);
    border-color: #c5c9d4;
    color: var(--text1);
}

.btn-action-dots:focus {
    border-color: var(--default-bg);
}

.btn-action-dots svg {
    width: 15px;
    height: 15px;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    z-index: 100;
    background: var(--card-bg) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 11px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
    min-width: 185px;
    padding: 5px !important;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 11px !important;
    border-radius: 7px;
    border: none;
    background: transparent !important;
    font-family: var(--font) !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: var(--text1) !important;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.1s !important;
    width: 100%;
    text-align: left;
}
.dropdown-item:hover {
    background: var(--hover) !important;
}
.dropdown-item svg {
    width: 13px !important;
    height: 13px !important;
    stroke: currentColor !important;
    fill: none;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    flex-shrink: 0 !important;
    opacity: 0.7 !important;
}
.dropdown-item-red {
    color: #dc2626 !important;
}
.dropdown-item-red:hover {
    background: #fef2f2 !important;
}
.dropdown-item-green {
    color: #16a34a !important;
}
.dropdown-item-green:hover {
    background: #f0fdf4 !important;
}
.dropdown-item-yellow {
    color: #d97706 !important;
}
.dropdown-item-yellow:hover {
    background: #fffbeb !important;
}
.dropdown-item-blue {
    color: #2563eb !important;
}
.dropdown-item-blue:hover {
    background: #eff6ff !important;
}
.dropdown-sep {
    height: 1px;
    background: var(--border) !important;
    margin: 3px 0;
}

.dropdown-enter {
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}
.dropdown-enter-start {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
}
.dropdown-enter-end {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Reopen Badge ────────────────────────────────────────────── */
.reopen-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    margin-top: 4px;
    white-space: nowrap;
}

.reopen-disabled {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 9px;
    animation: reopen-blink 1.2s ease-in-out infinite;
}

@keyframes reopen-blink {
    0%,
    100% {
        opacity: 1;
        background: #fef2f2;
        border-color: #fecaca;
        box-shadow: none;
    }
    50% {
        opacity: 0.85;
        background: #fee2e2;
        border-color: #dc2626;
        box-shadow: 0 0 8px rgba(220, 38, 38, 0.35);
    }
}

/* ── Estimate cell ───────────────────────────────────────────── */
.td-estimate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text2);
    font-weight: 500;
}
.td-estimate svg {
    width: 12px;
    height: 12px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

/* ── Modal sizes ─────────────────────────────────────────────── */
.modal-sm {
    max-width: 360px;
}
.modal-md {
    max-width: 460px;
}
.modal-lg {
    max-width: 600px;
}

/* ── Modal danger / confirm content ─────────────────────────── */
.modal-danger-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.modal-danger-icon svg {
    width: 22px;
    height: 22px;
    stroke: #dc2626;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.modal-danger-text,
.modal-confirm-text {
    text-align: center;
    font-size: 13.5px;
    color: var(--text2);
    line-height: 1.6;
}
.modal-danger-text {
    color: #374151;
}

/* ── Danger button ───────────────────────────────────────────── */
.btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.13s;
}
.btn-danger:hover {
    opacity: 0.88;
}
.btn-danger svg {
    width: 13px;
    height: 13px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ── Form hint ───────────────────────────────────────────────── */
.form-hint {
    font-size: 11.5px;
    color: var(--text3);
    margin-top: 5px;
}

/* ── Multi Upload Zone ───────────────────────────────────────── */
.upload-multi-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    background: var(--page-bg);
    transition:
        border-color 0.18s,
        background 0.18s;
    overflow: hidden;
}
.upload-multi-zone:hover,
.upload-multi-zone.dragging {
    border-color: var(--default-bg);
    background: #f0f4ff;
}
.dark .upload-multi-zone:hover {
    background: #1c2340;
}
.upload-multi-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 20px;
    cursor: pointer;
    text-align: center;
}
.upload-multi-icon {
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.upload-multi-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.upload-multi-text {
    font-size: 13.5px;
    color: var(--text2);
}
.upload-multi-text strong {
    color: var(--default-bg);
}
.upload-multi-hint {
    font-size: 11.5px;
    color: var(--text3);
}

/* ── Upload Loading ──────────────────────────────────────────── */
.upload-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--text2);
    background: var(--hover);
    border-radius: 8px;
    margin-top: 10px;
}
.upload-loading svg {
    width: 15px;
    height: 15px;
    stroke: var(--default-bg);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.spin {
    animation: spin 0.8s linear infinite;
}

/* ── Attachment Preview Grid ─────────────────────────────────── */
.attachment-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.attach-prev-item {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--page-bg);
}
.attach-prev-img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}
.attach-prev-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 90px;
    background: #f8fafc;
    color: var(--text3);
    font-size: 11px;
    font-weight: 600;
}
.attach-prev-pdf svg {
    width: 22px;
    height: 22px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
}
.attach-prev-name {
    padding: 5px 8px;
    font-size: 10.5px;
    color: var(--text3);
    border-top: 1px solid var(--border);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: var(--card-bg);
}
.attach-prev-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.attach-prev-remove:hover {
    background: #dc2626;
}
.attach-prev-remove svg {
    width: 10px;
    height: 10px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
}

/* ── Attachment Gallery (detail view) ───────────────────────── */
.attachment-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 4px;
}
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    display: block;
    text-decoration: none;
}
.gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
    transition: transform 0.2s;
}
.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
}

.gallery-item-wrap .gallery-item {
    border: none;
    border-radius: 0;
    flex: 1;
}

.gallery-item-wrap .gallery-item img,
.gallery-item-wrap .gallery-item video {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.gallery-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 6px 10px;
    background: var(--page-bg);
    border-top: 1px solid var(--border);
    font-size: 11px;
    font-weight: 600;
    color: var(--text2);
    text-decoration: none;
    transition:
        background 0.13s,
        color 0.13s;
    flex-shrink: 0; /* jangan menyusut */
    font-family: var(--font);
}

.gallery-download-btn:hover {
    background: var(--default-bg);
    color: #fff;
}

.gallery-download-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-overlay svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.gallery-overlay--video {
    opacity: 1 !important;
    background: #00000000;
}
.gallery-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100px;
    background: #f8fafc;
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
}
.gallery-pdf svg {
    width: 24px;
    height: 24px;
    stroke: var(--text2);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
}
.gallery-pdf:hover {
    background: #eff6ff;
}

/* ── Detail estimate badge ───────────────────────────────────── */
.detail-estimate-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
    font-size: 12px;
    font-weight: 600;
}
.detail-estimate-badge svg {
    width: 12px;
    height: 12px;
    stroke: #d97706;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

.toast {
    min-width: 260px;
    max-width: 320px;
    background: #1a1f2e;
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    animation: slideIn 0.25s ease;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 3px;
}

.toast-msg {
    font-size: 12px;
    color: #cbd5e1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-new {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: var(--font);
    min-width: 300px;
    max-width: 340px;
    animation: slideIn 0.25s ease;
}
.toast-inner {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 13px 14px 10px;
}
.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.toast-icon.created {
    background: #eff6ff;
}
.toast-icon.assigned {
    background: #dcfce7;
}
.toast-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.toast-icon.created svg {
    stroke: #2563eb;
}
.toast-icon.assigned svg {
    stroke: #16a34a;
}
.toast-type {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 2px;
}
.toast-type.created {
    color: #2563eb;
}
.toast-type.assigned {
    color: #16a34a;
}
.toast-title-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.toast-meta {
    font-size: 11.5px;
    color: var(--text3);
}
.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text3);
    display: flex;
    margin-top: -2px;
    flex-shrink: 0;
}
.toast-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.toast-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 10px;
}
.toast-action {
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    padding: 5px 11px;
    cursor: pointer;
    text-decoration: none;
}
.toast-action.created {
    background: #eff6ff;
    color: #2563eb;
}
.toast-action.assigned {
    background: #dcfce7;
    color: #15803d;
}
.toast-progress {
    height: 3px;
    background: var(--border);
}
.toast-progress-bar {
    height: 3px;
    animation: toastProgress 6s linear forwards;
}
.toast-progress-bar.created {
    background: #2563eb;
}
.toast-progress-bar.assigned {
    background: #16a34a;
}
@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* ════════════════════════
   RESPONSIVE — DASHBOARD & TICKETS
   ════════════════════════ */

.row {
    --bs-gutter-x: 0.5rem !important;
}

/* Kkolom Bootstrap jadi flex container */
.row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Form card mengisi sisa tinggi kolom */
.row > [class*="col-"] > .form-card {
    flex: 1;
    margin-bottom: 5px;
}

/* Stat card juga ikut stretch */
.row > [class*="col-"] > .stat-card {
    flex: 1;
}

/* Khusus wrapper mb-4 di stat card */
.row > [class*="col-"].mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Distribusi Prioritas: isi ruang kosong dengan spacer */
.dash-prio-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dashboard-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.dash-prio-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.dash-prio-label {
    min-width: 52px;
    font-size: 12px;
    color: var(--text2);
}
.dash-prio-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.dash-prio-fill {
    height: 100%;
    border-radius: 4px;
}
.dash-prio-fill.high {
    background: #dc2626;
}
.dash-prio-fill.medium {
    background: #d97706;
}
.dash-prio-fill.low {
    background: #16a34a;
}
.dash-prio-count {
    min-width: 24px;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.dash-exec-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.dash-exec-name {
    min-width: 80px;
    font-size: 11px;
    color: var(--text2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-exec-bar {
    flex: 1;
    height: 5px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.dash-exec-fill {
    height: 100%;
    background: #3b6ef5;
    border-radius: 4px;
}
.dash-exec-count {
    min-width: 24px;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
}

.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.dash-overdue-badge {
    font-size: 11px;
    background: #fef2f2;
    color: #dc2626;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
}

.dash-late-badge {
    font-size: 11px;
    background: #f9fafb;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}

.dash-overdue-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.dash-overdue-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.dash-overdue-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text1);
    margin: 4px 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-overdue-meta {
    font-size: 11px;
    color: var(--text3);
    display: flex;
    gap: 10px;
}

.dash-empty {
    text-align: center;
    padding: 24px 0;
    color: var(--text3);
    font-size: 13px;
}
.dash-empty svg {
    display: block;
    margin: 0 auto 8px;
    opacity: 0.4;
}

.dash-top-exec {
    margin-top: auto;
    padding-top: 20px;
}

@media (max-width: 640px) {
    /* Stat cards: 2 kolom di mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-card-row {
        padding: 10px;
    }

    /* Dashboard grid rows jadi 1 kolom */
    .dashboard-row {
        grid-template-columns: 1fr !important;
    }

    /* Index toolbar: search full width, filter stack */
    .index-toolbar {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 10px;
    }

    .search-wrap {
        max-width: 100%;
        min-width: 0;
        flex: 0 1 auto;
    }

    .index-toolbar > div:last-child {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select-wrap {
        width: 100%;
    }

    .filter-select {
        width: 100%;
        min-width: 0;
    }

    .btn-reset-filter {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .data-tbl thead {
        display: none;
    }

    .tbl-wrap {
        overflow: visible;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .data-tbl tbody tr {
        display: block;
        position: relative;
        background: var(--card-bg);
        border: 1.5px solid var(--border);
        border-radius: 14px;
        margin-bottom: 10px;
        padding: 13px 14px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .data-tbl tbody tr.tr-done {
        border-left: 5px solid #22c55e;
        /* background: rgba(34, 197, 94, 0.05); */
    }

    .data-tbl tbody tr.tr-progress {
        border-left: 5px solid #facc15;
        /* background: rgba(250, 204, 21, 0.05); */
    }

    .data-tbl tbody tr.tr-waiting-verification {
        border-left: 5px solid #7c3aed;
        /* background: rgba(250, 204, 21, 0.05); */
    }

    .data-tbl tbody tr.tr-closed {
        border-left: 5px solid #dc2626;
        /* background: rgba(34, 197, 94, 0.05); */
    }

    .data-tbl tbody tr.tr-active-touch td {
        box-shadow:
            inset 0 2px 0 #06b6d4,
            inset 0 -2px 0 #06b6d4;
        background: rgba(6, 182, 212, 0.08);
    }

    .data-tbl tbody tr:hover td {
        background: transparent;
    }

    .data-tbl td {
        display: block;
        border-bottom: none;
        padding: 0;
        font-size: 12px;
    }

    /* Nomor — sembunyikan */
    .data-tbl td:first-child {
        display: none;
    }

    /* Baris atas: kode + action button berdampingan */
    .data-tbl td:nth-child(2) {
        display: inline-flex;
        align-items: center;
        margin-bottom: 6px;
    }

    /* Action button — absolute pojok kanan atas */
    .data-tbl td:last-child {
        position: absolute;
        top: 13px;
        right: 14px;
        display: flex;
        align-items: flex-start;
    }

    /* Dropdown tetap muncul normal karena tr punya position: relative */
    .data-tbl td:last-child .dropdown-menu {
        right: 0;
        top: calc(100% + 5px);
        z-index: 999;
    }

    /* Judul — full width */
    .data-tbl td:nth-child(3) {
        padding-right: 38px; /* beri ruang buat tombol action */
        margin-bottom: 8px;
    }

    .data-tbl td:nth-child(3) .td-title {
        max-width: 100%;
        white-space: normal;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
    }

    /* Meta info — flex wrap, pisah dengan garis atas */
    .data-tbl td:nth-child(4) {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        padding-top: 8px;
        margin-top: 4px;
        /* border-top: 1px solid var(--border); */
    }

    .data-tbl td:nth-child(5),
    .data-tbl td:nth-child(6),
    .data-tbl td:nth-child(7) {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        margin-top: 4px;
    }

    .data-tbl .tbl-thumb-wrap,
    .data-tbl .tbl-thumb {
        display: none;
    }
}

@media (max-width: 340px) {
    .topbar-title {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .notif-panel {
        position: fixed;
        top: 70px;
        right: 8px;
        left: 8px;
        width: auto;
    }
}

@media (max-width: 640px) {
    .tbl-wrap:has(.data-tbl.ds) {
        overflow-x: auto !important;
        border: 1px solid var(--border) !important;
        box-shadow:
            0 0 0 0 rgba(0, 0, 0, 0.2),
            0 1px 0 0 rgba(0, 0, 0, 0.19) !important;
        border-radius: var(--radius-card) !important;
        background: var(--card-bg) !important;
    }

    .data-tbl.ds {
        display: table;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }

    .data-tbl.ds thead {
        display: table-header-group !important;
    }

    .data-tbl.ds tbody {
        display: table-row-group !important;
    }

    .data-tbl.ds tbody tr {
        display: table-row !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border-bottom: 1px solid var(--border) !important;
    }

    .data-tbl.ds td {
        display: table-cell !important;
        padding: 8px 10px !important;
        border-bottom: none !important;
        position: static !important;
        white-space: nowrap;
    }

    .data-tbl.ds td:last-child {
        position: static !important;
    }

    .data-tbl.ds .td-title {
        max-width: 130px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Sama kayak .data-tbl-mobile-card: dipakai di list mobile DAN kartu Kanban
   desktop, jadi displaynya nggak lagi digantung ke media query mobile. */
.mobile-action-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 0 0;
    margin-top: 6px;
    border-top: 1px solid var(--border);
}
.mobile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    min-width: 120px;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    transition:
        background 0.15s,
        color 0.15s;
}
.mobile-action-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}
.mobile-action-btn.btn-yellow {
    background: #fffbeb;
    color: #d97706;
}
.mobile-action-btn.btn-yellow:hover {
    background: #fef3c7;
}
.mobile-action-btn.btn-green {
    background: #f0fdf4;
    color: #16a34a;
}
.mobile-action-btn.btn-green:hover {
    background: #dcfce7;
}
.mobile-action-btn.btn-primary {
    background: var(--default-bg);
    color: #fff;
}
.mobile-action-btn.btn-primary:hover {
    filter: brightness(0.92);
}
.mobile-action-btn.btn-blue {
    background: #eff6ff;
    color: #2563eb;
}
.mobile-action-btn.btn-blue:hover {
    background: #dbeafe;
}
.mobile-action-btn.btn-gray {
    background: #f3f4f6;
    color: #4b5563;
}
.mobile-action-btn.btn-gray:hover {
    background: #e5e7eb;
}

@media (max-width: 768px) {
    .desktop-action-btns {
        display: none !important;
    }
}

/* MOBILE  */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
    .desktop-only {
        display: none !important;
    }
}

.mobile-load-more {
    display: none;
}

@media (max-width: 768px) {
    .mobile-load-more {
        display: flex;
        justify-content: center;
        padding: 12px 0;
    }
    .btn-load-more {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 24px;
        background: var(--card-bg);
        border: 1.5px solid var(--border);
        border-radius: 10px;
        font-family: var(--font);
        font-size: 13px;
        font-weight: 600;
        color: var(--text2);
        cursor: pointer;
        width: 100%;
        justify-content: center;
    }
    .btn-load-more svg {
        width: 14px;
        height: 14px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
    }
}

@media (max-width: 768px) {
    .mobile-status-group {
        margin-bottom: 10px;
    }

    .mobile-group-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: var(--card-bg);
        border: 1.5px solid var(--border);
        border-radius: 12px;
        padding: 12px 14px;
        cursor: pointer;
        margin-bottom: 6px;
        font-family: var(--font);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        transition:
            border-color 0.15s,
            box-shadow 0.15s;
    }
    .mobile-group-header:hover {
        border-color: var(--default-bg);
        box-shadow: 0 2px 8px rgba(12, 94, 177, 0.12);
    }

    .mobile-group-header-left {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-group-header-right {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-group-count {
        font-size: 11.5px;
        font-weight: 600;
        color: var(--text3);
        background: var(--page-bg);
        border: 1px solid var(--border);
        padding: 3px 10px;
        border-radius: 20px;
    }

    .mobile-group-chevron {
        width: 24px;
        height: 24px;
        border-radius: 6px;
        background: var(--page-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        transition:
            transform 0.2s,
            background 0.15s;
    }
    .mobile-group-chevron.rotated {
        transform: rotate(180deg);
        background: var(--accent2);
    }
    .mobile-group-chevron svg {
        width: 13px;
        height: 13px;
        stroke: var(--text2);
        fill: none;
        stroke-width: 2.5;
        stroke-linecap: round;
    }
    .mobile-group-chevron.rotated svg {
        stroke: var(--default-bg);
    }
}

/* Kartu tiket ini dipakai di list mobile DAN di board Kanban desktop,
   jadi styling-nya sengaja nggak digembok di media query max-width:768px lagi. */
.data-tbl-mobile-card {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    margin-bottom: 8px;
    padding: 13px 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}
.data-tbl-mobile-card.tr-done {
    border-left: 4px solid #22c55e;
}
.data-tbl-mobile-card.tr-progress {
    border-left: 4px solid #facc15;
}
.data-tbl-mobile-card.tr-waiting-verification {
    border-left: 4px solid #7c3aed;
}
.data-tbl-mobile-card.tr-closed {
    border-left: 4px solid #dc2626;
}

.data-tbl-mobile-card.tr-active-touch {
    outline: 2px solid #06b6d4;
    outline-offset: 2px;
    background: rgba(6, 182, 212, 0.08);
}

.mobile-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.mobile-card-actions {
    position: relative;
}
.mobile-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    margin-bottom: 6px;
    line-height: 1.4;
    padding-right: 8px;
}
.mobile-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.mobile-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

/* Mobile filter bar */
.filter-mobile-bar {
    display: none !important;
}

@media (max-width: 768px) {
    .filter-mobile-bar {
        display: flex !important;
        gap: 8px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .detail-info-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .detail-info-item {
        padding: 6px 0;
        /* border-bottom: 1px solid var(--border); */
    }

    .detail-info-item:last-child {
        border-bottom: none;
    }

    .detail-meta-row {
        gap: 6px;
    }

    .detail-description {
        font-size: 0.875rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ASSIGN MULTI EXECUTOR
   ═══════════════════════════════════════════════════════════════ */

/* Info bar: "X executor dipilih" */
.assign-info-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 12.5px;
    color: #1d4ed8;
    margin-bottom: 14px;
}
.assign-info-bar svg {
    flex-shrink: 0;
}

/* Search box di dalam modal */
.executor-search-wrap {
    position: relative;
    margin-bottom: 8px;
}
.executor-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    stroke: var(--text3);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}
.executor-search-input {
    width: 100%;
    padding: 8px 32px 8px 32px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    background: var(--card-bg);
    color: var(--text1);
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.executor-search-input:focus {
    border-color: var(--default-bg) !important;
    box-shadow: 0 0 0 3px rgba(41, 63, 232, 0.08) !important;
}
.executor-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    color: var(--text3);
    display: flex;
    align-items: center;
}
.executor-search-clear svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Checkbox list container */
.executor-checkbox-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Scrollbar styling */
.executor-checkbox-list::-webkit-scrollbar {
    width: 4px;
}
.executor-checkbox-list::-webkit-scrollbar-track {
    background: transparent;
}
.executor-checkbox-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* Each executor row */
.executor-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.12s;
    user-select: none;
    position: relative;
}
.executor-checkbox-item:hover {
    background: var(--hover-bg, #f5f5f5);
}
.executor-checkbox-item.is-checked {
    background: #eff6ff;
}

/* Hide native checkbox */
.executor-checkbox-native {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom checkbox box */
.executor-checkbox-box {
    width: 17px;
    height: 17px;
    border: 2px solid var(--border);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--card-bg);
    transition:
        border-color 0.12s,
        background 0.12s;
}
.executor-checkbox-box svg {
    display: none;
}
.executor-checkbox-item.is-checked .executor-checkbox-box {
    background: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
}
.executor-checkbox-item.is-checked .executor-checkbox-box svg {
    display: block;
}

.executor-pj-utama {
    margin-left: auto;
    font-size: 10px;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    padding: 2px 7px;
    border-radius: 20px;
    white-space: nowrap;
}

.pj-btn-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--page-bg);
    border: 1px solid var(--border);
    color: var(--text3);
    cursor: not-allowed;
}

.pj-utama {
    font-size: 9px;
    font-weight: 700;
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
}

/* Avatar circle */
.executor-checkbox-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light, #dbeafe);
    color: var(--primary, #2563eb);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.executor-checkbox-item.is-checked .executor-checkbox-avatar {
    background: var(--primary, #2563eb);
    color: #fff;
}

/* Executor name */
.executor-checkbox-name {
    font-size: 13px;
    color: var(--text1);
    font-weight: 500;
}

/* Empty state */
.executor-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    color: var(--text3);
    font-size: 12.5px;
}

/* ── Badge "Terkait" di tabel ── */
.badge-grouped {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
}
.badge-grouped svg {
    stroke: currentColor;
    flex-shrink: 0;
}
.content-card {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.content-card::-webkit-scrollbar {
    width: 6px;
}
.content-card::-webkit-scrollbar-track {
    background: transparent;
}
.content-card::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.content-card::-webkit-scrollbar-thumb:hover {
    background: var(--text3);
}
.content-card::-webkit-scrollbar-thumb {
    background: transparent;
    transition: background 0.2s;
}
.content-card:hover::-webkit-scrollbar-thumb {
    background: var(--border);
}

/* ════════════════════════
   GUIDE / PANDUAN PAGE
   ════════════════════════ */
[x-cloak] {
    display: none !important;
}
.td-overdue-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: #dc2626;
}
.td-late-tag {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--late-warning);
}
.push-notif-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 500;
    margin: 16px 16px 0;
}
.push-notif-banner svg {
    flex-shrink: 0;
}
.push-notif-banner span {
    flex: 1;
}
.push-notif-banner-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.push-notif-banner-btn:hover {
    opacity: 0.88;
}
.push-notif-banner-close {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    flex-shrink: 0;
}
.guide-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.guide-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    color: var(--text2);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.13s;
}
.guide-tab svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.guide-tab.guide-tab-blue.active {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.guide-tab.guide-tab-purple.active {
    background: #faf5ff;
    color: #7c3aed;
    border-color: #e9d5ff;
}
.guide-tab.guide-tab-green.active {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}
.guide-flow {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 2px 0 20px;
}
.guide-flow-arrow {
    color: var(--text3);
    font-size: 12px;
}
.guide-step {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.guide-step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.guide-step:first-of-type {
    padding-top: 0;
}
.guide-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent3);
    color: var(--accent2-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.guide-step-body {
    flex: 1;
    min-width: 0;
}
.guide-step-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text1);
    margin-bottom: 3px;
}
.guide-step-desc {
    font-size: 12.5px;
    color: var(--text3);
    line-height: 1.6;
}