/* ================================================================
   VB OA — Third-party Account Access Management
   Visual system sampled from the current OA screenshots:
     Toolbar      #714678 (dark eggplant)   60px
     Page band    #BA68C8 (purple 300)      56px
     Sidenav      white + #BA68C8 logo block + #FCECFF section wash
     Content      #FAFAFA with white cards
     Table header #D9D9E2 cool gray, zebra rows #F7F7F9
     Form labels  #767676, dividers #F5F5F5
   Angular Material 1.1.24 vocabulary (Roboto, Material Icons).
   ================================================================ */

:root {
  /* Brand */
  --c-primary:      #714678;
  --c-primary-700:  #5A3A61;
  --c-primary-500:  #84568B;
  --c-primary-300:  #BA68C8;
  --c-primary-100:  #FCECFF;
  --c-primary-50:   #FDF6FF;

  /* Neutrals */
  --c-bg:        #FAFAFA;
  --c-surface:   #FFFFFF;
  --c-border:    #E8E8E8;
  --c-divider:   #F3F3F3;
  --c-text:      #3B3B3B;
  --c-text-2:    #767676;
  --c-text-3:    #9E9E9E;
  --c-sidebar-text: #212121;

  /* Status */
  --c-success: #43A047;  --c-success-bg: #E8F5E9;
  --c-warning: #E65100;  --c-warning-bg: #FFF3E0;
  --c-danger:  #E53935;  --c-danger-bg:  #FFEBEE;
  --c-info:    #1565C0;  --c-info-bg:    #E3F2FD;
  --c-anomaly-line: #E53935;
  --c-anomaly-bg:   #FFF6F6;

  /* Shape & elevation */
  --r-sm: 3px;
  --r-md: 4px;
  --r-lg: 8px;
  --shadow-1: 0 1px 3px rgba(60, 40, 60, 0.08);
  --shadow-2: 0 3px 8px rgba(60, 40, 60, 0.14);
  --shadow-3: 0 10px 28px rgba(30, 15, 30, 0.22);

  /* Layout */
  --toolbar-h: 60px;
  --band-h: 56px;
  --sidenav-w: 264px;
  --content-pad: 24px;

  /* Type */
  --font: 'Roboto', 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  --font-mono: 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 500; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
p { margin: 0 0 12px; }
small { color: var(--c-text-2); }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
.material-icons { font-size: 20px; line-height: 1; vertical-align: middle; }

/* ================================================================
   App shell — toolbar on top, sidenav left, band + content right
   ================================================================ */
.od-shell {
  display: grid;
  grid-template-columns: var(--sidenav-w) 1fr;
  grid-template-rows: var(--toolbar-h) 1fr;
  grid-template-areas:
    "toolbar toolbar"
    "sidenav main";
  min-height: 100vh;
}

/* ---------- Toolbar ---------- */
.od-toolbar {
  grid-area: toolbar;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 40;
}
.od-toolbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #fff;
  text-decoration: none;
}
.od-toolbar__brand:hover { text-decoration: none; }
.od-toolbar__brand .material-icons { font-size: 26px; }
.od-toolbar__divider { width: 1px; height: 24px; background: rgba(255,255,255,0.25); }
.od-toolbar__title { font-size: 14px; color: rgba(255,255,255,0.9); }
.od-toolbar__spacer { flex: 1; }
.od-toolbar__iconbtn {
  position: relative;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.od-toolbar__iconbtn:hover { background: rgba(255,255,255,0.14); }
.od-toolbar__badge {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  background: #E53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.od-userchip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 24px;
  color: #fff;
  cursor: pointer;
}
.od-userchip:hover { background: rgba(255,255,255,0.14); }
.od-userchip__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-primary-300);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
}
.od-userchip__meta { line-height: 1.2; }
.od-userchip__name { font-size: 13px; font-weight: 500; }
.od-userchip__role { font-size: 11px; color: rgba(255,255,255,0.75); }

/* ---------- Sidenav ---------- */
.od-sidenav {
  grid-area: sidenav;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  overflow-y: auto;
  padding-bottom: 24px;
  position: sticky;
  top: var(--toolbar-h);
  height: calc(100vh - var(--toolbar-h));
  align-self: start;
}
.od-sidenav__logo {
  background: var(--c-primary-300);
  color: #fff;
  padding: 20px 20px 18px;
}
.od-sidenav__logo .material-icons { font-size: 30px; }
.od-sidenav__logo-name {
  font-size: 17px;
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.3px;
}
.od-sidenav__logo-sub { font-size: 11px; color: rgba(255,255,255,0.85); margin-top: 2px; }
.od-sidenav__label {
  background: var(--c-primary-100);
  color: var(--c-primary-500);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 9px 20px;
  border-bottom: 1px solid #F1E3F5;
}
.od-sidenav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 20px;
  color: var(--c-sidebar-text);
  font-size: 13.5px;
  cursor: pointer;
  border-left: 3px solid transparent;
  text-decoration: none;
}
.od-sidenav__item .material-icons { color: var(--c-primary-300); font-size: 20px; }
.od-sidenav__item:hover { background: var(--c-primary-50); text-decoration: none; }
.od-sidenav__item.is-active {
  background: var(--c-primary-100);
  border-left-color: var(--c-primary-300);
  color: var(--c-primary);
  font-weight: 500;
}
.od-sidenav__item.is-active .material-icons { color: var(--c-primary); }
.od-sidenav__spacer { height: 1px; background: var(--c-divider); margin: 8px 16px; }

/* ---------- Page band (purple title strip) ---------- */
.od-band {
  background: var(--c-primary-300);
  color: #fff;
  height: var(--band-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.od-band__title { font-size: 17px; font-weight: 500; letter-spacing: 0.2px; }
.od-band__sub { font-size: 12.5px; color: rgba(255,255,255,0.88); }
.od-band__spacer { flex: 1; }
.od-band .od-btn--onband {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
}
.od-band .od-btn--onband:hover { background: rgba(255,255,255,0.28); }

/* ---------- Main content ---------- */
.od-main { grid-area: main; min-width: 0; }
.od-content { padding: var(--content-pad); }

/* ================================================================
   Tabs
   ================================================================ */
.od-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: 0 24px;
}
.od-tab {
  padding: 14px 20px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-text-2);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.od-tab:hover { color: var(--c-primary); }
.od-tab.is-active {
  color: var(--c-primary);
  border-bottom-color: var(--c-primary-300);
}
.od-tab .material-icons { font-size: 18px; }
.od-tab .od-tab__count {
  background: var(--c-primary-100);
  color: var(--c-primary);
  border-radius: 10px;
  font-size: 11px;
  padding: 1px 8px;
  font-weight: 600;
}

/* ================================================================
   Cards
   ================================================================ */
.od-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  margin-bottom: 20px;
}
.od-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-divider);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-primary);
}
.od-card__head .material-icons { font-size: 20px; color: var(--c-primary-300); }
.od-card__head-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.od-search {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 17px;
  min-width: 180px;
}
.od-search .material-icons { font-size: 18px; color: var(--c-text-3); }
.od-search__input {
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--c-text);
  width: 100%;
}
.od-search__input::placeholder { color: var(--c-text-3); }
.od-card__body { padding: 20px; }

/* ================================================================
   Buttons
   ================================================================ */
.od-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 84px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.od-btn:hover { text-decoration: none; }
.od-btn .material-icons { font-size: 18px; }
.od-btn--primary { background: var(--c-primary); color: #fff; }
.od-btn--primary:hover { background: var(--c-primary-700); }
.od-btn--accent { background: var(--c-primary-300); color: #fff; }
.od-btn--accent:hover { background: var(--c-primary-500); }
.od-btn--outline { background: #fff; color: var(--c-primary); border-color: var(--c-primary-300); }
.od-btn--outline:hover { background: var(--c-primary-50); }
.od-btn--ghost { background: transparent; color: var(--c-primary); min-width: 0; }
.od-btn--ghost:hover { background: var(--c-primary-50); }
.od-btn--danger { background: var(--c-danger); color: #fff; }
.od-btn--danger:hover { background: #C62828; }
.od-btn--sm { height: 30px; min-width: 0; padding: 0 12px; font-size: 12px; }
.od-btn--icon { width: 36px; min-width: 36px; padding: 0; border-radius: 50%; }
.od-row-actions { display: flex; gap: 2px; align-items: center; }
.od-row-actions .od-btn--icon { width: 30px; min-width: 30px; height: 30px; }
.od-row-actions .od-btn--icon .material-icons { font-size: 17px; }
.od-cell-ellipsis { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-uploads { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.od-uploads .material-icons { font-size: 15px; color: var(--c-text-2); }
.od-btn[disabled], .od-btn.is-disabled {
  background: #BDBDBD !important;
  color: #fff !important;
  border-color: transparent !important;
  cursor: not-allowed;
}
.od-btn--outline[disabled], .od-btn--outline.is-disabled {
  background: transparent !important;
  color: #9E9E9E !important;
  border-color: #E0E0E0 !important;
}

/* ================================================================
   Forms
   ================================================================ */
.od-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}
.od-field { display: flex; flex-direction: column; margin-bottom: 4px; }
.od-field--full { grid-column: 1 / -1; }
.od-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-text-2);
  margin-bottom: 6px;
}
.od-req { color: var(--c-danger); margin-left: 2px; }
.od-input, .od-select, .od-textarea {
  width: 100%;
  border: 1px solid #E1E3E1;
  border-radius: var(--r-sm);
  background: #fff;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--c-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.od-input:focus, .od-select:focus, .od-textarea:focus {
  outline: none;
  border-color: var(--c-primary-300);
  box-shadow: 0 0 0 2px rgba(186, 104, 200, 0.18);
}
.od-input.is-invalid, .od-textarea.is-invalid {
  border-color: var(--c-danger);
  box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.14);
}
.od-textarea { min-height: 104px; resize: vertical; line-height: 1.55; }
.od-hint { font-size: 11.5px; color: var(--c-text-3); margin-top: 5px; }
.od-error { font-size: 11.5px; color: var(--c-danger); margin-top: 5px; display: none; }
.is-invalid + .od-error, .od-error.is-visible { display: block; }
.od-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  margin-top: 8px;
  border-top: 1px solid var(--c-divider);
}

/* Filter row (list pages — matches reference gray toolbar) */
.od-filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #F4F4F4;
  border: 1px solid #EEEEEE;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.od-filterbar .od-input, .od-filterbar .od-select {
  width: auto;
  min-width: 180px;
  background: #fff;
  height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}
.od-filterbar__label { font-size: 12.5px; color: var(--c-text-2); }

/* ================================================================
   Tables (reference: cool-gray header, zebra rows, hairline borders)
   ================================================================ */
.od-table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.od-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 720px;
}
.od-table thead th {
  background: #D9D9E2;
  color: #4A4A55;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 10px 14px;
  border-bottom: 1px solid #C9CBD8;
  white-space: nowrap;
}
.od-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #E8EAF0;
  color: var(--c-text);
  vertical-align: middle;
}
.od-table tbody tr:nth-child(even) { background: #F7F7F9; }
.od-table tbody tr:hover { background: var(--c-primary-50); }
.od-table tbody tr.is-anomaly { background: var(--c-anomaly-bg); }
.od-table tbody tr.is-anomaly:hover { background: #FFECEC; }
.od-table tbody tr.is-anomaly td:first-child {
  border-left: 3px solid var(--c-anomaly-line);
  padding-left: 11px;
}
.od-table tbody tr.is-public td:first-child {
  border-left: 3px solid #B0B0B0;
  padding-left: 11px;
}
.od-table tbody tr.is-public { background: #FAFAFA; }
.od-table__actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ================================================================
   Chips & tags
   ================================================================ */
.od-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 10px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.od-chip .material-icons { font-size: 13px; }
.od-chip--pending  { background: var(--c-warning-bg); color: var(--c-warning); }
.od-chip--approved { background: var(--c-success-bg); color: var(--c-success); }
.od-chip--rejected { background: var(--c-danger-bg);  color: var(--c-danger); }
.od-chip--created  { background: var(--c-info-bg);    color: var(--c-info); }
.od-chip--neutral  { background: #F0F0F0; color: #616161; }
.od-chip--purple   { background: var(--c-primary-100); color: var(--c-primary); }
.od-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
.od-tag .material-icons { font-size: 12px; }
.od-tag--t1 { background: #FFCDD2; color: #B71C1C; }
.od-tag--t2 { background: #FFE0B2; color: #E65100; }
.od-tag--t3 { background: #FFCDD2; color: #B71C1C; }
.od-tag--public { background: #E0E0E0; color: #616161; }

/* ================================================================
   Workbench widgets
   ================================================================ */
.od-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.od-widget { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.od-widget__head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--c-divider);
  font-size: 13.5px; font-weight: 500; color: var(--c-primary);
}
.od-widget__head .material-icons { color: var(--c-primary-300); font-size: 19px; }
.od-widget__head a { margin-left: auto; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.od-widget__head a:hover { text-decoration: none; }
.od-widget__head a .material-icons { font-size: 15px; color: var(--c-primary); }
.od-widget__body { padding: 16px 18px; }
.od-widget--danger .od-widget__head { color: var(--c-danger); }
.od-widget--danger .od-widget__head .material-icons { color: var(--c-danger); }

/* Stat rows */
.od-stat {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--c-divider);
  font-size: 13px;
}
.od-stat:last-child { border-bottom: 0; }
.od-stat__num { font-size: 17px; font-weight: 500; font-family: var(--font-mono); }
.od-stat__num--danger { color: var(--c-danger); }
.od-stat__num--warn { color: var(--c-warning); }
.od-stat__num--ok { color: var(--c-success); }

/* Mini horizontal bars (dashboard) */
.od-bars { display: flex; flex-direction: column; gap: 9px; }
.od-bar-row { display: grid; grid-template-columns: 108px 1fr 40px; align-items: center; gap: 10px; font-size: 12px; }
.od-bar-track { height: 10px; background: var(--c-divider); border-radius: 5px; overflow: hidden; }
.od-bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--c-primary-300), var(--c-primary)); }
.od-bar-num { text-align: right; font-family: var(--font-mono); font-size: 11.5px; color: var(--c-text-2); }

/* Donut (status distribution) */
.od-donut {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: conic-gradient(
    var(--c-primary-300) 0 58%,
    var(--c-success) 58% 82%,
    var(--c-danger) 82% 93%,
    #E0E0E0 93% 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.od-donut::after {
  content: "";
  position: absolute;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fff;
}
.od-donut__num {
  position: relative; z-index: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 500;
  line-height: 1.15;
}
.od-donut__num small { display: block; font-size: 9.5px; letter-spacing: 0.6px; text-transform: uppercase; }
.od-legend { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.od-legend span { display: flex; align-items: center; gap: 7px; }
.od-legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; flex-shrink: 0; }

/* ================================================================
   Dialog & snackbar
   ================================================================ */
.od-overlay {
  position: fixed; inset: 0;
  background: rgba(40, 20, 40, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 90;
  padding: 20px;
}
.od-overlay.is-open { display: flex; }
.od-dialog {
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-3);
  width: 440px;
  max-width: 100%;
  max-height: 86vh;
  overflow-y: auto;
}
.od-dialog__head {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--c-divider);
  display: flex; align-items: center; gap: 10px;
}
.od-dialog__head .material-icons { color: var(--c-primary-300); }
.od-dialog__head--danger .material-icons { color: var(--c-danger); }
.od-dialog__body { padding: 20px; }
.od-dialog__actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--c-divider);
}
.od-dialog__close {
  margin-left: auto;
  border: 0; background: none; cursor: pointer;
  color: var(--c-text-3);
  display: flex;
}
.od-dialog__close:hover { color: var(--c-text); }

.od-snackbar {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(90px);
  background: #323232;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-2);
  z-index: 99;
  transition: transform 0.25s ease;
  max-width: calc(100vw - 40px);
}
.od-snackbar.is-visible { transform: translateX(-50%) translateY(0); }
.od-snackbar .material-icons { color: #81C784; font-size: 18px; }
.od-snackbar--error .material-icons { color: #EF9A9A; }

/* ================================================================
   Responsive — sidenav collapses below 1080px, grids stack below 860px
   ================================================================ */
@media (max-width: 1080px) {
  .od-shell {
    grid-template-columns: 1fr;
    grid-template-areas: "toolbar" "main";
  }
  .od-sidenav {
    display: none;
    position: fixed;
    left: 0;
    top: var(--toolbar-h);
    bottom: 0;
    width: var(--sidenav-w);
    z-index: 60;
    box-shadow: var(--shadow-3);
    height: auto;
  }
  .od-sidenav.is-open { display: block; }
  .od-hamburger { display: inline-flex !important; }
}
@media (min-width: 1081px) {
  .od-hamburger { display: none !important; }
}
@media (max-width: 860px) {
  .od-grid { grid-template-columns: 1fr; }
  .od-form-grid { grid-template-columns: 1fr; }
  .od-content { padding: 16px; }
  .od-band { padding: 0 16px; }
  .od-band__sub { display: none; }
  .od-tabs { padding: 0 8px; overflow-x: auto; }
  .od-userchip__meta { display: none; }
}
@media (max-width: 560px) {
  .od-filterbar .od-input, .od-filterbar .od-select { min-width: 0; width: 100%; }
}

/* ============================================================
   List page — reference style (purple toolbar w/ icon buttons,
   plain top-right search, flat table). Sampled from the
   Attendance/PTO list screenshot.
   ============================================================ */
.od-lp-body { background: #FAFAFA; }

.od-lp-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  background: #BA68C8;
  box-shadow: 0 2px 4px rgba(0,0,0,0.18);
  z-index: 40;
}
.od-lp-tools { display: flex; gap: 8px; align-items: center; flex: none; }
.od-lp-tools--right { margin-left: auto; }
.od-lp-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: #FFFFFF; color: #BA68C8; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  text-decoration: none; flex: none;
  transition: transform .12s, box-shadow .12s;
}
.od-lp-iconbtn:hover { transform: translateY(-1px); box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.od-lp-iconbtn .material-icons { font-size: 18px; }
.od-lp-iconbtn.is-spinning .material-icons { animation: od-lp-spin .7s linear infinite; }
@keyframes od-lp-spin { to { transform: rotate(360deg); } }

.od-lp-title {
  color: #fff; font-size: 16px; font-weight: 500; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* search row below toolbar */
.od-lp-main { min-height: calc(100vh - 56px); }
.od-lp-searchrow {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 16px; padding: 14px 24px 6px;
}
.od-lp-count { font-size: 12px; color: #9E9E9E; margin-right: auto; }
.od-lp-search {
  display: flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px; width: 380px; max-width: 100%;
  background: #FFFFFF; border: 1px solid #EDEDED; border-radius: 16px;
}
.od-lp-search .material-icons { font-size: 18px; color: #BA68C8; }
.od-lp-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 13px; color: #3B3B3B;
}
.od-lp-search input::placeholder { color: #9E9E9E; }

/* flat table */
.od-lp-tablewrap { overflow-x: auto; padding: 0 24px 24px; }
.od-lp-table { width: 100%; min-width: 960px; border-collapse: collapse; }
.od-lp-table th {
  font-size: 12px; font-weight: 500; color: #666666;
  text-align: left; padding: 10px 16px; white-space: nowrap;
  border-bottom: 1px solid #DCDCDC;
}
.od-lp-table td {
  font-size: 13px; color: #3B3B3B; padding: 11px 16px;
  border-bottom: 1px solid #DCDCDC; vertical-align: middle;
}
.od-lp-table tbody tr { height: 48px; }
.od-lp-table tbody tr:hover { background: #F7F5FA; }
.od-mono { font-family: 'Roboto Mono', Consolas, monospace; font-size: 12px; color: #202020; }

/* action ⋮ (Material accent pink, sampled #FF4081) */
.od-lp-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 0; background: transparent;
  color: #FF4081; cursor: pointer; border-radius: 50%; padding: 0;
}
.od-lp-act:hover { background: rgba(255,64,129,.08); }
.od-lp-act .material-icons { font-size: 19px; }

/* applicant cell: avatar + blue name + mail */
.od-lp-appl { display: flex; align-items: center; gap: 10px; }
.od-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; color: #7B1FA2; background: #E1BEE7;
}
.od-avatar--b { background: #BBDEFB; color: #1565C0; }
.od-avatar--g { background: #C8E6C9; color: #2E7D32; }
.od-avatar--a { background: #FFE0B2; color: #E65100; }
.od-lp-appl-name { color: #2070BB; font-size: 13px; cursor: pointer; }
.od-lp-appl-name:hover { text-decoration: underline; }
.od-lp-appl-mail { font-size: 11.5px; color: #9E9E9E; }

/* date with amber calendar icon */
.od-lp-date { white-space: nowrap; }
.od-lp-date .material-icons { font-size: 15px; color: #E8A349; vertical-align: -3px; margin-right: 4px; }

/* approver icon circles */
.od-aprv { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.od-aprv-icn {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; box-sizing: border-box;
}
.od-aprv-icn--ok { background: #00A870; }
.od-aprv-icn--no { background: #E34D59; }
.od-aprv-icn--pend { background: #FFFFFF; border: 2px solid #C5C5C5; }
.od-aprv-name { color: #3B3B3B; }

/* status chips — sampled colors */
.od-chip--created  { background: #BA68C8; color: #fff; text-transform: none; }
.od-chip--approved { background: #00A870; color: #fff; text-transform: none; }
.od-chip--rejected { background: #E34D59; color: #fff; text-transform: none; }
.od-chip--finished { background: #607D8B; color: #fff; text-transform: none; }

/* reason — single-line ellipsis. The previous -webkit-line-clamp box made the cell a
   block-level flex container, which ignored the td's vertical-align: middle — text sat
   high with blank space below and multi-line rows pushed their divider out of line. */
.od-lp-reason {
  max-width: 280px; color: #616161;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.od-upld { color: #757575; white-space: nowrap; }
.od-upld .material-icons { font-size: 15px; vertical-align: -3px; color: #9E9E9E; }
.od-lp-empty { padding: 48px 0; text-align: center; color: #9E9E9E; font-size: 13px; }

/* hamburger drawer */
.od-lp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 70; display: none; }
.od-lp-overlay.is-open { display: block; }
.od-lp-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 250px; z-index: 80;
  background: #fff; transform: translateX(-100%); transition: transform .22s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,.2); overflow-y: auto;
}
.od-lp-drawer.is-open { transform: none; }
.od-lp-drawer__head { background: #BA68C8; color: #fff; padding: 18px 20px; }
.od-lp-drawer__head b { font-size: 16px; display: block; font-weight: 500; }
.od-lp-drawer__head span { font-size: 11.5px; opacity: .85; }
.od-lp-drawer__label {
  padding: 14px 20px 6px; font-size: 11px; color: #9E9E9E;
  text-transform: uppercase; letter-spacing: .5px;
}
.od-lp-drawer__item {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  color: #3B3B3B; font-size: 13.5px; text-decoration: none; cursor: pointer;
  border-left: 3px solid transparent;
}
.od-lp-drawer__item:hover { background: #F3E5F5; text-decoration: none; }
.od-lp-drawer__item.is-active { background: #F3E5F5; color: #7B1FA2; border-left-color: #BA68C8; font-weight: 500; }
.od-lp-drawer__item .material-icons { font-size: 18px; color: #7B1FA2; }

/* floating menus (action ⋮ / filter / settings) */
.od-lp-menu {
  position: fixed; z-index: 90; min-width: 168px; background: #fff;
  border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.22);
  padding: 6px 0; display: none; font-size: 13px; color: #3B3B3B;
}
.od-lp-menu.is-open { display: block; }
.od-lp-menu__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 16px;
  cursor: pointer; white-space: nowrap;
}
.od-lp-menu__item:hover { background: #F3E5F5; }
.od-lp-menu__item .material-icons { font-size: 16px; color: #7B1FA2; }
.od-lp-menu__item--danger { color: #E34D59; }
.od-lp-menu__item--danger .material-icons { color: #E34D59; }
.od-lp-menu__sep { height: 1px; background: #EEE; margin: 4px 0; }
.od-lp-menu label {
  display: flex; gap: 8px; align-items: center; padding: 7px 16px;
  cursor: pointer; font-size: 12.5px;
}
.od-lp-menu label input { accent-color: #BA68C8; }

/* dialogs */
.od-lp-dialog-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 95;
  display: none; align-items: center; justify-content: center;
}
.od-lp-dialog-overlay.is-open { display: flex; }
.od-lp-dialog {
  background: #fff; border-radius: 8px; width: 440px; max-width: calc(100vw - 32px);
  box-shadow: 0 8px 30px rgba(0,0,0,.28); overflow: hidden;
}
.od-lp-dialog__head {
  background: #BA68C8; color: #fff; padding: 14px 20px;
  font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px;
}
.od-lp-dialog__head .material-icons { font-size: 20px; }
.od-lp-dialog__body { padding: 20px; font-size: 13px; }
.od-lp-dialog__foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 12px 20px; border-top: 1px solid #EEE;
}
.od-lp-dl { display: grid; grid-template-columns: 130px 1fr; row-gap: 10px; }
.od-lp-dl dt { color: #9E9E9E; font-size: 12.5px; }
.od-lp-dl dd { margin: 0; color: #3B3B3B; font-size: 13px; }

/* ================================================================
   Approval flow visualisation (reference image: green ✔ / grey ● / red ✗
   circles stacked vertically, name in lavender)
   ================================================================ */
.od-approver-flow {
  display: inline-flex; flex-direction: column; gap: 4px;
  padding: 2px 0;
}
.od-approver-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; line-height: 1.2;
}
.od-step {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; box-sizing: border-box;
}
.od-step .material-icons { font-size: 12px; }
.od-step--done     { background: #00A870; color: #fff; }
.od-step--pending  { background: #C5C5C5; color: #fff; }
.od-step--rejected { background: #E34D59; color: #fff; }
.od-step--waiting  { background: transparent; border: 1.5px dashed #C5C5C5; }
.od-step-name { color: #9C7BB1; font-weight: 500; }
.od-step-name.is-muted { opacity: 0.45; }

/* ================================================================
   Kebab (⋮) action menu — three-dot trigger opens inline dropdown
   ================================================================ */
.od-kebab { position: relative; display: inline-block; }
.od-kebab__btn {
  background: transparent; border: 0; cursor: pointer;
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-text-2); padding: 0;
  transition: background 0.15s;
}
.od-kebab__btn:hover { background: rgba(0,0,0,0.06); color: var(--c-primary); }
.od-kebab__btn .material-icons { font-size: 19px; }
.od-kebab__menu {
  /* fixed (not absolute) so it escapes <td>/<tr> stacking contexts and any
     overflow:hidden on table cells/rows. JS positions it next to the trigger
     via getBoundingClientRect(). */
  position: fixed;
  background: #fff; border: 1px solid var(--c-border);
  border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  min-width: 168px; padding: 4px 0;
  display: none; z-index: 100;
}
.od-kebab.is-open .od-kebab__menu { display: block; }
.od-kebab__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 16px;
  background: transparent; border: 0;
  cursor: pointer; font-family: inherit; font-size: 13px;
  color: var(--c-text); text-align: left;
}
.od-kebab__item:hover { background: rgba(186, 104, 200, 0.10); }
.od-kebab__item .material-icons { font-size: 16px; color: var(--c-primary); }
.od-kebab__item--danger { color: var(--c-danger); }
.od-kebab__item--danger .material-icons { color: var(--c-danger); }
.od-kebab__item--danger:hover { background: rgba(227, 77, 89, 0.08); }
.od-kebab__sep { height: 1px; background: var(--c-divider); margin: 4px 0; }

/* apply view layout */
.od-lp-applygrid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .od-lp-applygrid { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
  .od-lp-title { font-size: 14px; }
  .od-lp-iconbtn { width: 26px; height: 26px; }
  .od-lp-iconbtn .material-icons { font-size: 17px; }
  .od-lp-searchrow { flex-wrap: wrap; padding: 12px 16px 6px; }
  .od-lp-count { width: 100%; }
  .od-lp-search { width: 100%; }
  .od-lp-tablewrap { padding: 0 12px 20px; }
}
