/* ==========================================================================
   TAMBANG SENGON - SISTEM OPERASIONAL TAMBANG (SUPABASE INTEGRATION)
   ========================================================================== */

:root {
  --primary: #d97706;         /* Amber tambang */
  --primary-hover: #b45309;
  --primary-light: #fef3c7;
  --primary-dark: #78350f;
  
  --secondary: #1e293b;       /* Slate dark */
  --secondary-light: #334155;
  
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #eab308;
  --warning-bg: #fef9c3;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --info: #0284c7;
  --info-bg: #e0f2fe;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ================= Top Banner & Header ================= */
.top-notice-bar {
  background: #1e1b4b;
  color: #c7d2fe;
  font-size: 12px;
  padding: 6px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.notice-badge {
  background: #4338ca;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 11px;
}

.role-switcher-header {
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid #f59e0b;
}

.company-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  background: #f59e0b;
  color: #0f172a;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-size: 11px;
  color: #94a3b8;
}

/* User Profile Header Element */
.header-user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1e293b;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
}

.user-avatar-badge {
  background: #f59e0b;
  color: #0f172a;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.user-name-text {
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
}

.role-tag-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 6px;
}

.role-tag-lapangan {
  background: #0284c7;
  color: #fff;
}

.role-tag-kantor {
  background: #d97706;
  color: #fff;
}

.role-tag-owner {
  background: #7c3aed;
  color: #fff;
}

.btn-header-logout {
  background: #334155;
  color: #f1f5f9;
  border: none;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-header-logout:hover {
  background: #dc2626;
  color: #fff;
}

/* ================= LOGIN SCREEN ================= */
.login-wrapper {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 32px 28px;
}

.login-header {
  text-align: center;
  margin-bottom: 24px;
}

.login-logo {
  font-size: 44px;
  margin-bottom: 8px;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.login-sub {
  font-size: 13px;
  color: #64748b;
  margin-top: 4px;
}

.login-alert-box {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.btn-login-submit {
  width: 100%;
  background: #d97706;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.25);
  transition: background 0.2s;
  margin-top: 10px;
}

.btn-login-submit:hover {
  background: #b45309;
}

.btn-login-submit:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

.login-quick-accounts {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.quick-acc-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.quick-acc-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-quick-acc {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.15s;
}

.btn-quick-acc:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.supabase-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
}

.supabase-status-pill.connected {
  background: #dcfce7;
  color: #166534;
}

.supabase-status-pill.disconnected {
  background: #fee2e2;
  color: #991b1b;
}

/* ================= View Container ================= */
.app-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px;
}

/* ================= LAPANGAN (MOBILE VIEW) ================= */
.mobile-view-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}

.mobile-toolbar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-toggle-frame {
  background: #e2e8f0;
  color: #334155;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.btn-toggle-frame.active {
  background: #0f172a;
  color: #fff;
}

.mobile-frame {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.18), 0 0 0 8px #1e293b;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 800px;
}

.mobile-frame.full-width {
  max-width: 600px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.mobile-notch {
  background: #1e293b;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notch-pill {
  width: 90px;
  height: 6px;
  background: #334155;
  border-radius: 10px;
}

.mobile-header {
  background: #0f172a;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-header-title {
  font-size: 16px;
  font-weight: 700;
}

.mobile-header-sub {
  font-size: 11px;
  color: #94a3b8;
}

.network-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
}

.network-pill.online {
  background: #064e3b;
  color: #6ee7b7;
}

.network-pill.offline {
  background: #7f1d1d;
  color: #fca5a5;
}

.network-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Lapangan Sub Navigation */
.mobile-nav-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.mob-tab-btn {
  flex: 1;
  text-align: center;
  padding: 12px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}

.mob-tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  background: #fff;
}

.mobile-content {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  background: #f8fafc;
}

/* ================= Form Ritase Ponsel ================= */
.field-group {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.field-label .req {
  color: var(--danger);
}

.field-label .hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.field-input, .field-select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.field-input:focus, .field-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.input-plate {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 17px;
  background: #fdfaf3;
}

/* Vehicle Selector Cards */
.vehicle-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.vehicle-card-radio {
  display: none;
}

.vehicle-card-label {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 80px;
  justify-content: center;
}

.vehicle-card-label:hover {
  border-color: #94a3b8;
}

.vehicle-card-radio:checked + .vehicle-card-label {
  border-color: var(--primary);
  background: #fffbeb;
  box-shadow: 0 2px 4px rgba(217,119,6,0.12);
}

.veh-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.veh-cap {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-top: 2px;
}

.veh-desc {
  font-size: 11px;
  color: var(--text-muted);
}

/* Quick Driver Chips */
.quick-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.quick-chip {
  background: #e2e8f0;
  color: #334155;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
}

.quick-chip:hover {
  background: #cbd5e1;
}

/* Big Submit Button */
.btn-submit-ritase {
  width: 100%;
  background: #d97706;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
  margin-top: 20px;
}

.btn-submit-ritase:active {
  transform: scale(0.98);
}

.btn-submit-ritase:hover {
  background: #b45309;
}

.offline-alert-box {
  background: var(--warning-bg);
  border: 1px solid #fde047;
  color: #854d0e;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

/* Status Cards Lapangan */
.ritase-lapangan-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.card-plate {
  font-weight: 800;
  font-size: 16px;
  color: #0f172a;
}

.card-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.badge-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-approved {
  background: #dcfce7;
  color: #166534;
}

.badge-correction {
  background: #fee2e2;
  color: #991b1b;
}

.correction-box-alert {
  background: #fef2f2;
  border-left: 4px solid var(--danger);
  padding: 8px 10px;
  margin-top: 8px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
  color: #991b1b;
}

/* ================= KANTOR / OWNER (DESKTOP VIEW) ================= */
.office-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 750px;
}

.office-sidebar {
  background: #0f172a;
  color: #cbd5e1;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 11px;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 16px 8px 8px 8px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.sidebar-btn:hover {
  background: #1e293b;
  color: #fff;
}

.sidebar-btn.active {
  background: #d97706;
  color: #fff;
}

.sidebar-badge {
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-badge.pending {
  background: #f59e0b;
  color: #0f172a;
}

.office-content-panel {
  padding: 24px;
  overflow-y: auto;
  max-height: 850px;
}

/* Page Header */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}

.panel-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #cbd5e1;
}

.stat-card.alert::before { background: #ef4444; }
.stat-card.warning::before { background: #f59e0b; }
.stat-card.success::before { background: #10b981; }
.stat-card.info::before { background: #0ea5e9; }

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 6px 0 2px 0;
}

.stat-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Filter Controls Bar */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn-pill:hover {
  background: #e2e8f0;
}

.filter-btn-pill.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.filter-search-input {
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  min-width: 220px;
}

/* Data Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tr:hover {
  background: #fcfcfd;
}

.cell-plate {
  font-family: monospace;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
}

.btn-action-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-action {
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-approve {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.btn-approve:hover {
  background: #16a34a;
  color: #fff;
}

.btn-reject {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.btn-reject:hover {
  background: #dc2626;
  color: #fff;
}

.btn-history {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.btn-history:hover {
  background: #e2e8f0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-cancel {
  background: #e2e8f0;
  color: #334155;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.btn-confirm-action {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* History Timeline inside Modal */
.timeline {
  border-left: 2px solid #e2e8f0;
  margin-left: 10px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
}

.timeline-time {
  font-size: 11px;
  color: var(--text-muted);
}

.timeline-actor {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.timeline-note {
  font-size: 12px;
  color: #334155;
  margin-top: 2px;
}

/* Spec Highlight Callout Box */
.spec-callout {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #78350f;
}

.spec-callout strong {
  color: #92400e;
}

/* Foto Rekap Card Grid */
.foto-rekap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.foto-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.foto-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f1f5f9;
  display: block;
}

.foto-card-body {
  padding: 12px;
}

/* Responsive adjustment for small desktop */
@media (max-width: 900px) {
  .office-layout {
    grid-template-columns: 1fr;
  }
  .office-sidebar {
    padding: 12px;
  }
  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .sidebar-btn {
    white-space: nowrap;
  }
}

/* Finance, warehouse, and asset modules */
#financeSummaryCards .stat-card,
#dashboardFinanceCards .stat-card {
  border-top: 3px solid #d97706;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
#financeSummaryCards strong,
#dashboardFinanceCards strong { color: #0f172a; }
#officeTab-keuangan .panel-header,
#officeTab-gudang .panel-header,
#officeTab-aset .panel-header,
#officeTab-dokumen .panel-header { gap: 12px; flex-wrap: wrap; }
#officeTab-keuangan .panel-header > input,
#officeTab-gudang .panel-header > input,
#officeTab-aset .panel-header > input { min-width: min(100%, 260px); }
#officeTab-keuangan .data-table th,
#officeTab-gudang .data-table th,
#officeTab-aset .data-table th { white-space: nowrap; }
#officeTab-keuangan .stat-card,
#officeTab-gudang .stat-card,
#officeTab-aset .stat-card { box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05); }
@media (max-width: 640px) {
  #officeTab-keuangan .panel-header > div,
  #officeTab-gudang .panel-header > div,
  #officeTab-aset .panel-header > div,
  #officeTab-dokumen .panel-header > div { width: 100%; }
  #officeTab-keuangan .panel-header > input,
  #officeTab-gudang .panel-header > input,
  #officeTab-aset .panel-header > input { width: 100%; max-width: none !important; }
  #dashboardFinanceMonth { flex: 1; min-width: 145px; }
}
@media (max-width: 900px) {
  .office-content-panel { max-height: none; overflow: visible; padding: 16px; }
  .office-sidebar { border-bottom: 1px solid #1e293b; }
  .sidebar-menu { gap: 8px; }
  .sidebar-menu li { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .office-layout { gap: 0; border-radius: 12px; }
  .office-sidebar { border-radius: 12px 12px 0 0; }
  .office-content-panel { padding: 14px 12px; }
  .office-content-panel .panel-header { align-items: stretch; }
  .office-content-panel .panel-header input,
  .office-content-panel .panel-header select { width: 100%; max-width: none !important; }
  .office-content-panel .table-responsive { margin-left: -4px; margin-right: -4px; }
  #officeTab-dokumen .panel-header > div[style*="max-width"] { flex-direction: column; max-width: none !important; }
}
