:root{
  --of-bg: #f6f6f4;
  --of-card: #ffffff;
  --of-text: #0b0b0b;
  --of-muted: #6b7280;
  --of-border: rgba(17,17,17,.10);
  --of-sidebar: #171717;
  --of-sidebar-text: rgba(255,255,255,.86);
  --of-sidebar-muted: rgba(255,255,255,.55);
  --of-accent: #ff8a00;
  --of-font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Shared modal + form primitives (used by Petty Cash, Fuel, Vehicles, etc.) */
.of-modal{ position: fixed; inset: 0; z-index: 9999; display:none; }
.of-modal.is-open{ display:block; }
.of-modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.35); }
.of-modal-dialog{
  position: relative;
  width: min(720px, calc(100% - 24px));
  margin: 6vh auto;
  background:#fff;
  border-radius: 18px;
  border: 1px solid rgba(17,17,17,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  overflow:hidden;
  max-height: 88vh;
  display:flex;
  flex-direction:column;
}
.of-modal-head{ display:flex; align-items:center; justify-content:space-between; padding: 12px 16px; border-bottom: 1px solid rgba(17,17,17,.10); background: rgba(17,17,17,.02); }
.of-modal-title{ font-weight: 600; letter-spacing: -0.01em; }
.of-modal-body{ padding: 14px 16px; overflow:auto; flex: 1 1 auto; }
.of-modal-foot{ display:flex; gap:10px; justify-content:flex-end; padding: 12px 16px; border-top: 1px solid rgba(17,17,17,.10); background: rgba(17,17,17,.02); }
.of-modal-x{ appearance:none; border:0; background:transparent; font-size:22px; line-height:1; cursor:pointer; padding:2px 8px; border-radius:10px; }
body.of-modal-open{ overflow:hidden; }

.of-field{ margin-bottom: 12px; }
.of-label{
  font-size: 12px;
  color: var(--of-muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.of-input{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(17,17,17,.14);
  padding: 10px 12px;
  font-size: 14px;
  background:#fff;
}
textarea.of-input{ resize: vertical; min-height: 90px; }

.of-grid2{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px){ .of-grid2{ grid-template-columns: 1fr; } }

.of-hint{ font-size: 12px; color: var(--of-muted); font-weight: 500; margin-top: 6px; }
.of-body{ margin:0; font-family: var(--of-font); background: var(--of-bg); color: var(--of-text); }
.of-app{ min-height:100vh; display:flex; background: var(--of-bg); color: var(--of-text); overflow-x:hidden; }

/* Sidebar */
.of-sidebar{
  width: 84px;
  background: var(--of-sidebar);
  color: var(--of-sidebar-text);
  padding: 16px 10px;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.of-brand{ display:flex; align-items:center; gap:10px; padding: 6px 6px; }
.of-logo{ width:36px; height:36px; border-radius:12px; background:#fff; color:#111; display:flex; align-items:center; justify-content:center; font-weight:900; overflow:hidden; flex:0 0 36px; }
.of-logo img{ width:100%; height:100%; display:block; object-fit:cover; }
.of-brand-text{ display:none; } /* icon-only like Houzz */
.of-nav{ margin-top: 6px; display:flex; flex-direction:column; gap: 8px; }
.of-nav-item{
  display:flex; align-items:center; justify-content:center;
  height: 44px;
  border-radius: 14px;
  color: var(--of-sidebar-text);
  text-decoration:none;
  font-weight: 600;
  border: 1px solid transparent;
}
.of-nav-item span{ display:none; }
.of-nav-badge{ margin-left:auto; min-width:18px; height:18px; padding:0 6px; border-radius:999px; background:#ff8a00; color:#111; font-size:11px; line-height:18px; display:inline-flex; align-items:center; justify-content:center; font-style:normal; font-weight:800; box-shadow:0 1px 2px rgba(0,0,0,.18); }
.of-nav-item:hover{ background: rgba(255,138,0,.18); }
.of-nav-item.is-active{ background: rgba(255,138,0,.24); border-color: rgba(255,138,0,.35); box-shadow: inset 0 0 0 1px rgba(255,138,0,.25); }
.of-nav-sep{ height: 10px; }

/* Main */
.of-main{ flex:1; display:flex; flex-direction:column; min-width: 0; overflow-x:hidden; }

/* Prevent long content from forcing horizontal scroll */
.of-card,
.of-card-inner,
.of-pane,
.of-pane-inner,
.of-table-wrap{ min-width: 0; }

@media (max-width: 520px){
  .of-topbar{ padding: 12px 14px; }
  .of-content{ padding: 14px; }
  .of-title{ font-size: 26px; }
  .of-card{ padding: 16px; }
}
.of-topbar{
  background: var(--of-card);
  border-bottom: 1px solid var(--of-border);
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* Notifications (topbar) */
.of-topbar-right{ display:flex; align-items:center; gap: 10px; }
.of-notif{ position:relative; }
.of-notif-bell{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--of-border);
  background: var(--of-card);
  text-decoration:none;
  color: var(--of-text);
  position:relative;
}
.of-notif-bell:hover{ background: rgba(17,17,17,.04); }
.of-topbar-refresh-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--of-border);
  background: var(--of-card);
  text-decoration:none;
  color: var(--of-text);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
}
.of-topbar-refresh-btn:hover{ background: rgba(17,17,17,.04); }
.of-topbar-refresh-btn svg{ transition: transform .4s ease; }
.of-topbar-refresh-btn.spin svg{ transform: rotate(360deg); }

/* Icons */
.of-icon{ width:22px; height:22px; display:block; }
.of-sidebar .of-icon{ width:22px; height:22px; }
.of-topbar .of-icon{ width:20px; height:20px; }
.of-notif-count{
  position:absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.of-notif-panel{
  position:absolute;
  right: 0;
  top: 44px;
  width: 340px;
  max-width: calc(100vw - 24px);
  background: var(--of-card);
  border: 1px solid var(--of-border);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  display:none;
  overflow:hidden;
  z-index: 9999;
}
.of-notif-panel.is-open{ display:block; }
.of-notif-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--of-border);
}
.of-notif-title{ font-weight: 600; }
.of-notif-markall{ font-size: 12px; color: var(--of-muted); text-decoration:none; }
.of-notif-markall:hover{ color: var(--of-text); }
.of-notif-list{ max-height: 360px; overflow:auto; }
.of-notif-empty{ padding: 14px 12px; color: var(--of-muted); font-size: 13px; }
.of-notif-item{
  display:block;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,.04);
  text-decoration:none;
  color: var(--of-text);
}
.of-notif-item:hover{ background: rgba(17,17,17,.04); }
.of-notif-item.is-unread{ background: rgba(0,0,0,.03); }
.of-notif-item-title{ font-weight: 600; font-size: 13px; }
.of-notif-item-msg{ font-size: 12px; color: var(--of-muted); margin-top: 4px; }
.of-notif-item-time{ font-size: 11px; color: var(--of-muted); margin-top: 6px; }

.of-notif-foot{ padding: 10px 12px; border-top: 1px solid var(--of-border); background: rgba(0,0,0,.02); }
.of-notif-viewall{ display:block; text-align:center; font-weight:600; font-size:12px; color: var(--of-text); text-decoration:none; }
.of-notif-viewall:hover{ text-decoration:underline; }
.of-page-title{ font-weight:600; font-size:18px; letter-spacing: -0.01em; }
.of-chip-row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.of-chip{
  appearance:none;
  border: 1px solid var(--of-border);
  background: rgba(255,255,255,.75);
  color: var(--of-text);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  display:inline-flex;
  align-items:center;
  gap:8px;
  transition: background .12s ease, border-color .12s ease, transform .04s ease;
}
.of-chip .of-chip-ico{ display:inline-flex; opacity:.9; }
.of-chip:hover{
  background: rgba(255,122,0,.08);
  border-color: rgba(255,122,0,.35);
}
.of-chip:active{ transform: translateY(1px); }
.of-chip.is-active{
  background: rgba(255,122,0,.16);
  border-color: rgba(255,122,0,.55);
}
.of-chip:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,122,0,.20);
}

.of-content{ padding: 16px 18px 26px; }

/* Onboarding row */
.of-onboard{
  background: var(--of-card);
  border: 1px solid var(--of-border);
  border-radius: 14px;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 14px;
}
.of-onboard-title{ font-weight: 700; letter-spacing: -0.01em; }
.of-progress{ color: var(--of-muted); font-size: 13px; }


/* KPI tiles */
.of-kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin: 0 0 14px;
}
.of-kpi{
  background: var(--of-card);
  border: 1px solid var(--of-border);
  border-radius: 14px;
  padding: 12px 14px;
}
.of-kpi-label{
  font-size: 12px;
  color: var(--of-muted);
  font-weight: 600;
}
.of-kpi-value{
  margin-top: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.of-kpi-sub{
  margin-top: 6px;
  font-size: 12px;
  color: var(--of-muted);
}

@media (max-width: 1100px){
  .of-kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .of-kpis{ grid-template-columns: 1fr; }
}

/* Dashboard grid */
.of-dashboard-grid{
  display:grid;
  grid-template-columns: 1.7fr .9fr;
  gap: 14px;
  align-items:start;
}
.of-panel{
  background: var(--of-card);
  border: 1px solid var(--of-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
}
.of-col-side .of-panel{ margin-bottom: 14px; }

.of-panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.of-panel-title{ font-weight: 700; letter-spacing: -0.01em; }
.of-panel-body{ margin-top: 12px; color: var(--of-muted); font-size: 13px; line-height:1.45; }
.of-panel-tabs{ margin-top: 12px; display:flex; gap:8px; flex-wrap:wrap; }
.of-pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--of-border);
  color: var(--of-muted);
}
.of-pill.is-active{ color: var(--of-text); background: rgba(17,17,17,.04); }

.of-row{
  display:grid;
  text-decoration:none;

  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items:center;
  padding: 10px 0;
  border-top: 1px solid rgba(17,17,17,.06);
}
.of-badge{
  width: 34px; height: 34px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(17,17,17,.04);
  border: 1px solid rgba(17,17,17,.08);
  font-weight: 900;
  font-size: 10px;
}
.of-row-title{ font-weight: 600; color: var(--of-text); }
.of-row-meta{ color: var(--of-text); font-weight: 600; }
.of-row-chip{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.10);
  color: var(--of-muted);
}

/* Create tiles */
.of-create-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.of-create-tile{
  background: rgba(17,17,17,.04);
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 14px;
  padding: 12px 10px;
  text-align:center;
  user-select:none;
  height: 92px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color: inherit;
}
.of-create-ico{ font-size: 18px; }
.of-create-label{ margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--of-text); }

.of-support-grid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
}
.of-support-tile{
  background: rgba(17,17,17,.04);
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
  font-size: 13px;
  display:flex;
  align-items:center;
  min-height:64px;
  text-decoration:none;
  color:inherit;
}
.of-small{ color: var(--of-muted); font-size: 13px; }

/* Buttons */
.of-btn{ border:1px solid rgba(17,17,17,.12); background:#fff; padding:9px 12px; border-radius: 12px; cursor:pointer; font-weight: 600; }
.of-btn[disabled], .of-btn.is-disabled{ cursor:not-allowed; opacity:.6; }
.of-btn-primary{ background:#111; color:#fff; border-color:#111; }

/* Login/OTP */
.of-login-card, .of-otp-card{ max-width:520px; margin:24px auto; background: var(--of-card); border:1px solid var(--of-border); border-radius:18px; padding:18px; }
.of-login-title{ font-weight:900; font-size:20px; }
.of-login-sub{ margin-top:6px; color: var(--of-muted); }
.of-login-msg{ margin-top:10px; color:#b42318; font-weight:800; }
.of-login-form{ display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.of-login-form label{ font-size:12px; color: var(--of-muted); font-weight:600; }
.of-login-form input{ height:42px; border-radius:12px; border:1px solid rgba(17,17,17,.14); padding:0 12px; outline:none; }
.of-login-foot{ margin-top:12px; }
.of-login-foot a{ color: var(--of-text); opacity:.75; }

.of-otp-title{ font-weight:900; font-size:18px; }
.of-otp-sub{ margin-top:6px; color: var(--of-muted); }
.of-otp-actions{ display:flex; gap:10px; align-items:center; margin-top:14px; flex-wrap:wrap; }
.of-otp-input{ height:42px; border-radius:12px; border:1px solid rgba(17,17,17,.14); padding:0 12px; width:180px; }
.of-otp-msg{ margin-top:12px; color: var(--of-text); font-weight:800; }
.of-otp-foot{ margin-top:12px; }

/* Responsive */
@media (max-width: 900px){
  .of-dashboard-grid{ grid-template-columns: 1fr; }
  .of-create-grid{ grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 740px){
  .of-sidebar{ width: 72px; }
  .of-create-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}


/* Sidebar collapse/expand */
.of-sidebar{
  width: 240px;
  padding: 14px 12px;
}
.of-brand-text{ display:block; }
.of-nav-item{ justify-content:flex-start; padding: 0 12px; gap: 10px; }
.of-nav-item span{ display:inline; }
.of-nav-item .of-nav-badge{ margin-left:auto; }
.of-side-toggle{
  display:inline-flex;
  width:36px;
  height:36px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  text-decoration:none;
  color: var(--of-sidebar-text);
  background: rgba(255,255,255,.08);
  margin-right: 8px;
}
.of-top-toggle{
  display:inline-flex;
  width:36px;
  height:36px;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  text-decoration:none;
  color: var(--of-text);
  background: rgba(17,17,17,.04);
  border: 1px solid rgba(17,17,17,.08);
  margin-right: 10px;
}

/* collapsed state */
.of-app.of-is-collapsed .of-sidebar{ width: 84px; padding:16px 10px; }
.of-app.of-is-collapsed .of-brand-text{ display:none; }
.of-app.of-is-collapsed .of-nav-item{ justify-content:center; padding:0; }
.of-app.of-is-collapsed .of-nav-item span{ display:none; }
.of-nav-badge{ margin-left:auto; min-width:18px; height:18px; padding:0 6px; border-radius:999px; background:#ff8a00; color:#111; font-size:11px; line-height:18px; display:inline-flex; align-items:center; justify-content:center; font-style:normal; font-weight:800; box-shadow:0 1px 2px rgba(0,0,0,.18); }
.of-app.of-is-collapsed .of-side-toggle{ margin-right:0; width:44px; height:44px; border-radius:14px; }

/* responsive: default collapsed on small screens */
@media (max-width: 740px){
  .of-sidebar{ width: 112px; padding: 14px 8px; }
  .of-brand{ justify-content:center; padding: 4px 2px; }
  .of-brand-text{ display:none; }
  .of-nav{ gap: 10px; }
  .of-nav-group{ margin: 10px 4px 4px; text-align:center; font-size:10px; line-height:1.15; }
  .of-nav-item{
    justify-content:center;
    flex-direction:column;
    gap: 4px;
    height: auto;
    min-height: 58px;
    padding: 8px 4px;
    border-radius: 16px;
  }
  .of-nav-item .of-icon{ width:20px; height:20px; }
  .of-nav-item .of-nav-badge{
    position:absolute;
    top:6px;
    right:8px;
    margin-left:0;
    min-width:16px;
    height:16px;
    line-height:16px;
    font-size:10px;
    padding:0 5px;
  }
  .of-nav-item span{
    display:block;
    font-size: 10px;
    line-height: 1.15;
    text-align:center;
    max-width: 96px;
    white-space: normal;
    word-break: break-word;
  }
}

.of-nav-group{ margin:12px 8px 6px; font-size:11px; letter-spacing:.06em; text-transform:uppercase; color: rgba(255,255,255,.45); font-weight:600; }

.of-create-tile{ display:block; text-decoration:none; color:inherit; }

/* ------------------------------
   File Manager (Premium UI)
------------------------------- */
.of-fm-shell{ overflow: hidden; }
.of-fm-head{ align-items:flex-start; }
.of-fm-toolbar{ flex:1; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.of-fm-breadcrumbs{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding-top: 2px; }
.of-fm-crumb{ font-weight: 600; color: #111; text-decoration:none; }
.of-fm-crumb.is-muted{ color: var(--of-muted); }
.of-fm-crumb.is-active{ color: #111; }
.of-fm-crumb-sep{ color: var(--of-muted); font-weight: 600; }
.of-fm-tools{ display:flex; align-items:center; gap:10px; }
.of-fm-search{
  width: min(360px, 42vw);
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,.14);
  padding: 10px 14px;
  background:#fff;
  font-weight: 800;
}
.of-fm-upload-btn{ cursor:pointer; }

.of-fm-grid{ display:grid; grid-template-columns: 260px 1fr 340px; gap: 14px; }
.of-fm-left, .of-fm-center, .of-fm-right{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(17,17,17,.10);
  border-radius: 18px;
  padding: 12px;
}
.of-fm-section-title{ font-weight: 600; font-size: 13px; color: rgba(17,17,17,.75); margin-bottom: 10px; }

.of-fm-folders{ display:flex; flex-direction:column; gap:6px; }
.of-fm-folder{ display:flex; align-items:center; gap:10px; width:100%; text-align:left; padding:10px 10px; border-radius: 14px; border: 1px solid transparent; background: transparent; cursor:pointer; font-weight: 600; }
.of-fm-folder:hover{ background:#fff; border-color: rgba(17,17,17,.10); }
.of-fm-folder-ico{ width: 20px; }
.of-fm-folder-name{ overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }

.of-fm-files{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.of-fm-file{ border: 1px solid rgba(17,17,17,.10); background:#fff; border-radius: 16px; padding: 12px; cursor:pointer; display:flex; flex-direction:column; gap:8px; text-align:left; }
.of-fm-file:hover{ box-shadow: 0 12px 28px rgba(0,0,0,.08); transform: translateY(-1px); }
.of-fm-file.is-active{ outline: 3px solid rgba(0,0,0,.12); }
.of-fm-file-ico{ font-size: 22px; }
.of-fm-file-name{ font-weight: 600; font-size: 13px; line-height: 1.15; max-height: 2.3em; overflow:hidden; }
.of-fm-file-meta{ font-size: 12px; color: var(--of-muted); font-weight: 500; }

.of-fm-right{ position: relative; }
.of-fm-details-empty{ color: var(--of-muted); font-weight: 500; padding: 10px; }
.of-fm-details-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom: 10px; }
.of-fm-details-title{ font-weight: 600; font-size: 14px; line-height: 1.2; }
.of-fm-details-actions{ display:flex; gap:8px; }

.of-fm-preview{ border-radius: 16px; overflow:hidden; border: 1px solid rgba(17,17,17,.10); background:#fff; height: 220px; margin-bottom: 10px; }
.of-fm-preview img{ width:100%; height:100%; object-fit: cover; display:block; }
.of-fm-preview iframe{ width:100%; height:100%; border:0; display:block; }
.of-fm-preview-icon{ display:flex; align-items:center; justify-content:center; font-size: 48px; color: rgba(17,17,17,.65); }

.of-fm-details-meta{ display:flex; flex-direction:column; gap:10px; }
.of-fm-meta-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding: 10px 12px; border-radius: 14px; background: rgba(17,17,17,.03); border: 1px solid rgba(17,17,17,.06); }
.of-fm-meta-row span{ color: var(--of-muted); font-weight: 500; font-size: 12px; }
.of-fm-meta-row strong{ font-weight: 600; font-size: 12px; }

@media (max-width: 1200px){
  .of-fm-files{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .of-fm-grid{ grid-template-columns: 240px 1fr 320px; }
}
@media (max-width: 980px){
  .of-fm-grid{ grid-template-columns: 1fr; }
  .of-fm-files{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .of-fm-search{ width: min(360px, 55vw); }
}
@media (max-width: 520px){
  .of-fm-files{ grid-template-columns: 1fr; }
  .of-fm-tools{ flex-wrap:wrap; justify-content:flex-end; }
  .of-fm-search{ width: 100%; }
}


.of-todo-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}
.of-mini-stat{background:#fff;border:1px solid #ece7df;border-radius:16px;padding:12px 14px}
.of-mini-stat strong{display:block;font-size:20px;line-height:1.1}
.of-mini-stat span{display:block;margin-top:4px;color:#6b7280;font-size:12px}
.of-todo-item.is-done{opacity:.7}
.of-empty-state{padding:18px;border:1px dashed #d6d3d1;border-radius:18px;background:#fff}
.of-empty-title{font-weight:600;color:#111827}
.of-empty-sub{margin-top:6px;color:#6b7280}

.of-row:hover{background:rgba(17,17,17,.02)}
.of-item-sub{margin-top:4px;color:var(--of-muted);font-size:12px;line-height:1.35}

.of-top-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:36px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--of-border);
  background:var(--of-card);
  color:var(--of-text);
  text-decoration:none;
  font-weight:600;
}
.of-top-link:hover{ background: rgba(17,17,17,.03); }
.of-top-link-settings{ padding:0 12px; }
.of-top-avatar{
  width:24px;
  height:24px;
  border-radius:999px;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f6efe3;
  color:#8b5a2b;
  font-size:12px;
  font-weight:700;
}
.of-top-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }
.of-top-avatar-fallback{ border:1px solid rgba(17,17,17,.08); }
@media (max-width:700px){
  .of-top-link-profile span:last-child{ display:none; }
}


/* Mobile polish: dashboard cards + topbar + notifications */
@media (max-width: 740px){
  .of-topbar-right{ gap:8px; }
  .of-top-link{ min-height:34px; padding:0 10px; }
  .of-top-link-settings span:last-child{ display:none; }
  .of-notif-panel{
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    z-index: 10050;
    max-height: calc(100vh - 92px);
  }
  .of-panel-head{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .of-panel-head > .of-btn,
  .of-panel-head > .of-btn-primary,
  .of-panel-head > a.of-btn,
  .of-panel-head > a.of-btn-primary{
    width: 100%;
    justify-content:center;
    text-align:center;
  }
  .of-row{
    grid-template-columns: auto 1fr;
    align-items:start;
    gap:10px;
  }
  .of-row > .of-row-meta{
    grid-column: 2;
    justify-self: start;
    margin-top: 4px;
  }
  .of-row > .of-row-chip{
    grid-column: 2;
    justify-self: start;
    margin-top: 6px;
  }
  .of-row-title,
  .of-item-sub,
  .of-row-meta,
  .of-row-chip{ word-break: break-word; }
}

@media (max-width: 520px){
  .of-content{ padding: 12px; }
  .of-panel{ padding: 12px; }
  .of-topbar{ padding: 12px; }
  .of-page-title{ font-size: 17px; }
  .of-panel-title{ font-size: 15px; }
  .of-pill{ padding: 6px 9px; font-size: 12px; }
  .of-notif-list{ max-height: calc(100vh - 170px); }
}

.of-training-card{ overflow:hidden; }
.of-training-wrap{ margin-top:12px; display:grid; grid-template-columns: minmax(0,1fr) 132px; gap:14px; align-items:center; }
.of-training-copy{ display:flex; flex-direction:column; gap:12px; }
.of-training-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.of-training-qr{ display:flex; align-items:center; justify-content:center; }
.of-training-qr img{ width:120px; height:120px; object-fit:contain; background:#fff; border:1px solid rgba(17,17,17,.08); border-radius:14px; padding:8px; }
@media (max-width: 820px){ .of-training-wrap{ grid-template-columns: 1fr; } .of-training-qr{ justify-content:flex-start; } }

.of-pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:14px;border-top:1px solid var(--of-line);margin-top:10px;}
.of-page-btn{display:inline-flex;align-items:center;justify-content:center;min-width:72px;height:38px;padding:0 14px;border:1px solid var(--of-line);border-radius:999px;background:#fff;color:var(--of-text);text-decoration:none;font-weight:500;}
.of-page-btn:hover{text-decoration:none;transform:translateY(-1px);}
.of-page-btn.is-disabled{pointer-events:none;opacity:.45;}
.of-page-status{font-size:13px;color:var(--of-muted);}

@media (max-width: 740px){
  .of-grid-form{ grid-template-columns: 1fr !important; }
  .of-support-grid{ grid-template-columns: 1fr; }
}

.of-col-main, .of-col-side{ min-width:0; }
.of-col-side .of-grid-form{ grid-template-columns:1fr !important; }
.of-col-side .of-grid-form .of-field, .of-col-side .of-grid-form > label, .of-col-side .of-grid-form > div{ min-width:0; }
.of-qr-unavailable{ margin-top:8px; }

.of-check-card{display:block;padding:12px 14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.of-check-card input{margin-right:8px}


.of-dept-track{border:1px solid rgba(17,17,17,.10); border-radius:16px; padding:12px 14px; background:#fff; margin-bottom:12px;}
.of-dept-track-top,.of-dept-track-meta{display:flex; justify-content:space-between; gap:12px; align-items:center;}
.of-dept-track-top{font-weight:800; margin-bottom:8px;}
.of-dept-track-meta{color:var(--of-muted); font-size:12px; margin-top:8px; flex-wrap:wrap;}
.of-dept-bar{height:10px; border-radius:999px; background:rgba(17,17,17,.08); overflow:hidden;}
.of-dept-bar>span{display:block; height:100%; border-radius:999px; width:0;}
.of-dept-track.is-green .of-dept-bar>span{background:#2faa60;}
.of-dept-track.is-yellow .of-dept-bar>span{background:#d4a017;}
.of-dept-track.is-red .of-dept-bar>span{background:#d9534f;}


/* v1.10.43.7 mobile shell density */
@media (max-width: 768px){
  .of-main{min-width:0;}
  .of-notif-panel{right:-8px;max-width:calc(100vw - 20px);}
  .of-topbar-right .of-icon,.of-topbar-refresh-btn .of-icon{width:18px;height:18px;}
  .of-panel-title{font-size:16px;}
  .of-panel-body{font-size:13px;line-height:1.45;}
  .of-onboard{align-items:start;}
  .of-onboard-sub{margin-top:2px;}
}
