﻿      @import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@300;400;600;700&display=swap");

      :root {
        --bg: #0d1117;
        --bg-glow: #112139;
        --surface: #161b22;
        --surface2: #1e2631;
        --surface3: #0f1722;
        --border: #2d3748;
        --header-bg: rgba(10, 18, 31, 0.94);
        --panel-bg: rgba(16, 25, 37, 0.96);
        --side-menu-bg: rgba(13, 20, 31, 0.9);
        --overlay-bg: rgba(0, 0, 0, 0.58);
        --drawer-bg: linear-gradient(180deg, #101925 0%, #121d2b 100%);
        --checklist-bg: linear-gradient(160deg, #4a3f1f 0%, #392f16 100%);
        --checklist-border: rgba(255, 214, 102, 0.22);
        --checklist-text: #ffe9b3;
        --checklist-muted: rgba(255, 233, 179, 0.65);
        --checklist-done: rgba(255, 233, 179, 0.5);
        --checklist-focus: rgba(255, 214, 102, 0.4);
        --checklist-btn-bg: rgba(0, 0, 0, 0.18);
        --checklist-btn-bg-hover: rgba(0, 0, 0, 0.32);
        --checklist-btn-border: rgba(255, 214, 102, 0.35);
        --repeat-block-bg: rgba(7, 14, 20, 0.4);
        --accent: #00d4aa;
        --accent2: #0ea5e9;
        --warn: #f59e0b;
        --text: #e2e8f0;
        --muted: #8892a4;
        --red: #f87171;
        --green: #34d399;
        --sans: "IBM Plex Sans", sans-serif;
        --mono: "IBM Plex Mono", monospace;
      }

      html[data-theme="light"] {
        --bg: #f4f6fb;
        --bg-glow: #dbe6f7;
        --surface: #ffffff;
        --surface2: #eef1f7;
        --surface3: #e4e8f0;
        --border: #d7dce6;
        --header-bg: rgba(255, 255, 255, 0.94);
        --panel-bg: rgba(255, 255, 255, 0.96);
        --side-menu-bg: #fbfcfe;
        --overlay-bg: rgba(15, 23, 42, 0.45);
        --drawer-bg: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
        --checklist-bg: linear-gradient(160deg, #fff3c4 0%, #ffe89a 100%);
        --checklist-border: rgba(120, 90, 10, 0.28);
        --checklist-text: #4a3400;
        --checklist-muted: rgba(74, 52, 0, 0.65);
        --checklist-done: rgba(74, 52, 0, 0.45);
        --checklist-focus: rgba(120, 90, 10, 0.45);
        --checklist-btn-bg: rgba(0, 0, 0, 0.07);
        --checklist-btn-bg-hover: rgba(0, 0, 0, 0.14);
        --checklist-btn-border: rgba(120, 90, 10, 0.35);
        --repeat-block-bg: rgba(226, 232, 240, 0.6);
        --accent: #00997d;
        --accent2: #0284c7;
        --warn: #b45309;
        --text: #1a2233;
        --muted: #5b6478;
        --red: #dc2626;
        --green: #059669;
      }

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

      body {
        min-height: 100vh;
        background: radial-gradient(
          circle at top,
          var(--bg-glow) 0%,
          var(--bg) 48%
        );
        color: var(--text);
        font-family: var(--sans);
        transition:
          background 0.2s ease,
          color 0.2s ease;
      }

      header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px 28px;
        border-bottom: 1px solid var(--border);
        background: var(--header-bg);
        position: sticky;
        top: 0;
        z-index: 50;
        backdrop-filter: blur(10px);
      }

      .theme-toggle {
        position: relative;
        margin-top: auto;
        align-self: flex-start;
        width: 56px;
        height: 30px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--surface2);
        cursor: pointer;
        display: flex;
        align-items: center;
        flex-shrink: 0;
        transition: background 0.2s ease;
      }

      .theme-toggle-icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 13px;
        line-height: 1;
        color: var(--muted);
        pointer-events: none;
      }

      .theme-toggle-icon-sun {
        left: 7px;
      }

      .theme-toggle-icon-moon {
        right: 7px;
      }

      .theme-toggle-thumb {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--accent);
        transition: transform 0.2s ease;
      }

      html[data-theme="light"] .theme-toggle-thumb {
        transform: translateX(26px);
      }

      .header-left {
        display: flex;
        align-items: center;
        gap: 14px;
      }

      .logo-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        background: linear-gradient(
          135deg,
          var(--accent) 0%,
          var(--accent2) 100%
        );
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        color: #03151f;
      }

      .header-title h1 {
        font-size: 1.2rem;
      }

      .header-title p {
        margin-top: 2px;
        color: var(--muted);
        font-size: 0.82rem;
      }

      .header-nav {
        display: flex;
        gap: 10px;
      }

      .nav-btn,
      .btn,
      .ghost-btn,
      .icon-btn,
      .project-pill,
      .close-drawer-btn,
      .modal-close {
        cursor: pointer;
        font-family: inherit;
      }

      .nav-btn {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        border: none;
        border-bottom: 1px solid var(--border);
        background: transparent;
        color: var(--muted);
        border-radius: 0;
        padding: 12px 10px;
        font-weight: 600;
        text-align: left;
        transition:
          background 0.15s ease,
          color 0.15s ease;
      }

      .side-menu-list .nav-btn:last-child {
        border-bottom: none;
      }

      .nav-btn:hover {
        background: var(--surface2);
        color: var(--text);
      }

      .nav-btn.active {
        background: transparent;
        color: var(--accent);
      }

      .icon-btn {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--surface2);
        color: var(--text);
        font-size: 1.05rem;
        font-weight: 700;
      }

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

      .row-actions {
        display: flex;
        gap: 8px;
      }

      .row-icon-btn {
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface2);
        color: var(--muted);
        cursor: pointer;
        padding: 0;
      }

      .row-icon-btn svg {
        width: 16px;
        height: 16px;
      }

      .row-icon-btn:hover {
        border-color: var(--accent);
        color: var(--accent);
      }

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

      .main-container {
        min-height: calc(100vh - 75px);
        display: flex;
      }

      .side-menu {
        width: 240px;
        flex-shrink: 0;
        border-right: 1px solid var(--border);
        background: var(--side-menu-bg);
        padding: 22px 14px;
        position: sticky;
        top: 75px;
        height: calc(100vh - 75px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
      }

      .side-menu-title {
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin: 0 8px 12px;
      }

      .side-menu-list {
        display: flex;
        flex-direction: column;
      }

      .nav-icon {
        width: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        color: var(--muted);
        font-family: var(--mono);
        font-size: 0.72rem;
        font-weight: 700;
        flex-shrink: 0;
      }

      .nav-btn.active .nav-icon,
      .nav-btn:hover .nav-icon {
        color: inherit;
      }

      .content-area {
        flex: 1;
        min-width: 0;
        padding: 26px 30px 36px;
      }

      .login-screen {
        min-height: 100vh;
        display: grid;
        place-items: center;
        padding: 24px;
      }

      .login-panel {
        width: min(420px, 100%);
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--panel-bg);
        padding: 26px;
      }

      .login-panel h1 {
        font-size: 1.35rem;
        margin-bottom: 6px;
      }

      .login-panel p {
        color: var(--muted);
        margin-bottom: 20px;
      }

      .password-field-wrap {
        position: relative;
      }

      .form-group .password-field-wrap input {
        width: 100%;
        padding-right: 40px;
      }

      .password-toggle-btn {
        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-50%);
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        padding: 0;
      }

      .password-toggle-btn:hover {
        color: var(--accent);
      }

      .password-toggle-btn svg {
        width: 18px;
        height: 18px;
      }

      .user-chip {
        color: var(--muted);
        font-size: 0.85rem;
        text-align: right;
      }

      .locked-stage {
        opacity: 0.58;
      }

      .drawer-overlay {
        position: fixed;
        inset: 0;
        background: var(--overlay-bg);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 90;
      }

      .drawer-overlay.active {
        opacity: 1;
        pointer-events: auto;
      }

      /* Shown for the duration of any slow, one-shot network action (login,
         check-in/out, leave/permission requests, ...) — see
         showLoadingOverlay/hideLoadingOverlay in js/utils.js. Sits above
         every drawer/modal (highest z-index in the app) and blocks clicks
         behind it, so a second press while the request is in flight can't
         fire a duplicate submission. */
      .loading-overlay {
        position: fixed;
        inset: 0;
        background: var(--overlay-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.15s ease;
        z-index: 500;
      }

      .loading-overlay.visible {
        opacity: 1;
        pointer-events: auto;
      }

      .loading-overlay-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 28px 36px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
      }

      .loading-spinner {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 3px solid var(--border);
        border-top-color: var(--accent);
        animation: loading-spin 0.8s linear infinite;
      }

      .loading-overlay-text {
        margin: 0;
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--text);
      }

      @keyframes loading-spin {
        to {
          transform: rotate(360deg);
        }
      }

      .side-drawer {
        position: fixed;
        top: 0;
        left: 0;
        width: min(500px, 94vw);
        height: 100vh;
        background: var(--drawer-bg);
        border-right: 1px solid var(--border);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
        display: flex;
        flex-direction: column;
      }

      .side-drawer.open {
        transform: translateX(0);
      }

      .drawer-header {
        padding: 24px 24px 18px;
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        gap: 16px;
      }

      .drawer-header h2 {
        font-size: 1.4rem;
      }

      .drawer-header p {
        margin-top: 6px;
        color: var(--muted);
        line-height: 1.5;
      }

      .close-drawer-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--surface2);
        color: var(--text);
        font-size: 1.25rem;
      }

      .drawer-body {
        padding: 24px;
        overflow-y: auto;
      }

      .project-hero {
        padding: 24px;
        border: 1px solid rgba(0, 212, 170, 0.22);
        border-radius: 16px;
        background: linear-gradient(
          135deg,
          rgba(0, 212, 170, 0.12) 0%,
          rgba(14, 165, 233, 0.11) 100%
        );
        margin-bottom: 22px;
      }

      .hero-topline {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        align-items: flex-start;
      }

      .hero-actions {
        display: flex;
        gap: 10px;
        flex-shrink: 0;
      }

      .project-hero h2 {
        font-size: 1.65rem;
        margin-bottom: 8px;
      }

      .project-hero p {
        color: var(--muted);
        line-height: 1.6;
      }

      .pill-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 22px;
      }

      .project-pill {
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text);
        border-radius: 999px;
        padding: 10px 16px;
        font-weight: 600;
      }

      .project-pill.active {
        background: var(--accent);
        border-color: var(--accent);
        color: #05202a;
      }

      .leads-tabs {
        display: flex;
        gap: 4px;
        margin-bottom: -1px;
        position: relative;
        z-index: 1;
        padding-left: 4px;
      }

      .leads-tab {
        border: 1px solid var(--border);
        border-bottom: none;
        background: var(--surface2);
        color: var(--text);
        padding: 10px 24px;
        font-weight: 600;
        font-size: 0.85rem;
        border-radius: 10px 10px 0 0;
        cursor: pointer;
        opacity: 0.65;
        position: relative;
        transition:
          opacity 0.15s ease,
          background 0.15s ease;
      }

      .leads-tab:hover {
        opacity: 0.9;
      }

      .leads-tab.active {
        background: var(--surface);
        color: var(--accent);
        opacity: 1;
      }

      .leads-tab.active::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -1px;
        height: 1px;
        background: var(--surface);
      }

      #salesTabBody {
        padding-top: 22px;
      }

      .leads-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 10px 14px;
        margin-bottom: 16px;
      }

      .leads-sort-control {
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .leads-sort-control label {
        font-size: 0.8rem;
        color: var(--muted);
        font-weight: 600;
      }

      .leads-sort-control .status-select {
        min-width: 150px;
      }

      .sort-dir-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface2);
        color: var(--text);
        cursor: pointer;
        padding: 0;
        transition:
          background 0.12s ease,
          border-color 0.12s ease;
      }

      .sort-dir-btn:hover {
        border-color: var(--accent);
      }

      .sort-dir-btn svg {
        width: 15px;
        height: 15px;
      }

      .leads-th-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
      }

      .col-filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border: none;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
        padding: 0;
        border-radius: 5px;
        flex-shrink: 0;
        transition:
          color 0.12s ease,
          background 0.12s ease;
      }

      .col-filter-btn svg {
        width: 12px;
        height: 12px;
      }

      .col-filter-btn:hover {
        color: var(--text);
        background: var(--surface2);
      }

      .col-filter-btn.active {
        color: var(--accent);
      }

      .leads-th {
        position: relative;
      }

      .col-filter-popover {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        z-index: 5;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 8px;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
        text-transform: none;
        font-weight: 400;
        letter-spacing: normal;
      }

      .col-filter-popover input[type="text"],
      .col-filter-popover select {
        border: 1px solid var(--border);
        border-radius: 7px;
        background: var(--bg);
        color: var(--text);
        padding: 7px 9px;
        font: inherit;
        min-width: 160px;
      }

      .col-filter-popover input[type="text"]:focus,
      .col-filter-popover select:focus {
        outline: none;
        border-color: var(--accent);
      }

      .checklist-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 28px;
        padding: 6px;
      }

      .checklist-section {
        background: var(--checklist-bg);
        border: 1px solid var(--checklist-border);
        border-radius: 2px 2px 12px 12px;
        padding: 16px 16px 14px;
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
        transform: rotate(-1.4deg);
        transition:
          transform 0.2s ease,
          box-shadow 0.2s ease;
      }

      .checklist-list .checklist-section:nth-child(3n + 2) {
        transform: rotate(1.2deg);
      }

      .checklist-list .checklist-section:nth-child(3n + 3) {
        transform: rotate(-0.6deg);
      }

      .checklist-section:hover {
        transform: rotate(0deg) translateY(-3px);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
      }

      .checklist-section-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 4px;
      }

      .checklist-section-header input[type="text"],
      .checklist-section-header h4 {
        color: var(--checklist-text);
      }

      .checklist-section-header input[type="text"] {
        flex: 1;
        border: none;
        background: transparent;
        font-weight: 700;
        font-size: 0.95rem;
        padding: 4px 0;
      }

      .checklist-section-header h4 {
        flex: 1;
        margin: 0;
      }

      .checklist-section .helper-note {
        color: var(--checklist-muted);
      }

      .checklist-item-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 6px 0;
      }

      .checklist-item-row input[type="text"] {
        flex: 1;
        border: none;
        border-bottom: 1px solid transparent;
        background: transparent;
        color: var(--checklist-text);
        padding: 4px 0;
      }

      .checklist-item-row input[type="text"]:focus {
        border-bottom: 1px solid var(--checklist-focus);
        outline: none;
      }

      .checklist-item-done {
        text-decoration: line-through;
        color: var(--checklist-done);
      }

      .checklist-section .ghost-btn {
        border: 1px solid var(--checklist-btn-border);
        background: var(--checklist-btn-bg);
        color: var(--checklist-text);
      }

      .checklist-section .ghost-btn:hover {
        background: var(--checklist-btn-bg-hover);
      }

      .log-feed {
        border-left: 2px solid var(--border);
        margin-left: 4px;
      }

      .log-entry {
        position: relative;
        padding: 10px 0 10px 20px;
        border-bottom: 1px solid rgba(45, 55, 72, 0.5);
      }

      .log-entry:last-child {
        border-bottom: none;
      }

      .log-entry::before {
        content: "";
        position: absolute;
        left: -5px;
        top: 16px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent);
      }

      .log-entry-message {
        font-size: 0.85rem;
        color: var(--text);
        font-weight: 500;
      }

      .log-entry-meta {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        margin-top: 2px;
        font-size: 0.72rem;
        color: var(--muted, #8a94a6);
      }

      .log-entry-time {
        font-family: var(--mono);
        white-space: nowrap;
      }

      .stat-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 28px;
        padding-bottom: 16px;
        margin-bottom: 24px;
        border-bottom: 1px solid var(--border);
      }

      .stat-bar-label {
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: var(--muted);
        font-size: 0.7rem;
        margin-bottom: 6px;
      }

      .stat-bar-value {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--accent);
      }

      .stat-bar-secondary {
        margin-top: 2px;
        font-size: 0.8rem;
        color: var(--muted);
      }

      .empty-state {
        border: 1px dashed var(--border);
        border-radius: 18px;
        padding: 54px 28px;
        background: linear-gradient(
          135deg,
          var(--surface2) 0%,
          var(--surface) 100%
        );
        text-align: center;
      }

      .empty-state h3 {
        margin-bottom: 10px;
        font-size: 1.35rem;
      }

      .empty-state p {
        color: var(--muted);
        line-height: 1.7;
        max-width: 620px;
        margin: 0 auto 20px;
      }

      .section-title {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 20px;
        font-size: 1.28rem;
      }

      .section-title::before {
        content: "";
        width: 4px;
        height: 28px;
        border-radius: 999px;
        background: var(--accent);
      }

      .stage-list {
        display: flex;
        flex-direction: column;
      }

      .stage-row {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
        cursor: pointer;
        transition: background 0.15s ease;
      }

      .stage-list .stage-row:last-child {
        border-bottom: none;
      }

      .stage-row:hover {
        background: var(--surface2);
      }

      .stage-row-icon {
        width: 32px;
        flex-shrink: 0;
        color: var(--accent);
        font-family: var(--mono);
        font-size: 0.72rem;
        font-weight: 700;
        text-align: center;
      }

      .stage-row-main {
        flex: 1;
        min-width: 0;
      }

      .stage-row-name {
        font-weight: 600;
        margin-bottom: 8px;
      }

      .stage-row-note {
        margin-top: 6px;
        font-size: 0.76rem;
        color: var(--muted);
      }

      .stage-row-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2px;
        flex-shrink: 0;
        font-size: 0.78rem;
        color: var(--muted);
      }

      .stage-row-percent {
        font-weight: 700;
        color: var(--muted);
      }

      .stage-row.in-progress .stage-row-percent {
        color: var(--accent2);
      }

      .stage-row.completed .stage-row-percent {
        color: var(--green);
      }

      .helper-note,
      .subtask-meta,
      .detail-description {
        color: var(--muted);
        line-height: 1.55;
      }

      .progress-bar-bg {
        height: 8px;
        background: var(--surface2);
        border-radius: 999px;
        overflow: hidden;
      }

      .progress-bar-fill {
        height: 100%;
        background: linear-gradient(
          90deg,
          var(--accent) 0%,
          var(--accent2) 100%
        );
      }

      .progress-text {
        margin-top: 8px;
        text-align: right;
        font-size: 0.78rem;
        color: var(--muted);
      }

      .view {
        display: none;
      }

      .view.active {
        display: block;
      }

      .stage-detail {
        display: none;
      }

      .stage-detail.active {
        display: block;
      }

      .back-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 22px;
        border: 1px solid var(--border);
        background: var(--surface2);
        color: var(--text);
        border-radius: 10px;
        padding: 10px 18px;
        font-weight: 600;
        cursor: pointer;
      }

      .detail-header {
        padding: 22px;
        border-radius: 16px;
        border: 1px solid var(--border);
        background: linear-gradient(
          135deg,
          var(--surface2) 0%,
          var(--surface) 100%
        );
        margin-bottom: 24px;
      }

      .detail-title {
        display: flex;
        gap: 16px;
        align-items: center;
      }

      .detail-badge {
        width: 64px;
        height: 64px;
        border-radius: 16px;
        background: rgba(0, 212, 170, 0.12);
        color: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
      }

      .detail-title h2 {
        margin-bottom: 8px;
      }

      .subtask-list {
        display: flex;
        flex-direction: column;
      }

      .subtask-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
        cursor: pointer;
        transition: background 0.15s ease;
      }

      .subtask-list .subtask-item:last-child {
        border-bottom: none;
      }

      .subtask-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
      }

      .subtask-item:hover {
        background: var(--surface2);
      }

      .subtask-checkbox {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        border: 2px solid var(--border);
        border-radius: 7px;
        position: relative;
      }

      .subtask-checkbox.completed {
        border-color: var(--accent);
        background: var(--accent);
      }

      .subtask-checkbox.completed::after {
        content: "✓";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #041923;
        font-weight: 700;
      }

      .subtask-content {
        flex: 1;
      }

      .subtask-name {
        font-weight: 600;
        line-height: 1.45;
      }

      .subtask-status {
        flex-shrink: 0;
        border-radius: 999px;
        padding: 5px 10px;
        font-size: 0.75rem;
        text-transform: capitalize;
        font-weight: 700;
      }

      .subtask-status.pending {
        background: rgba(245, 158, 11, 0.18);
        color: var(--warn);
      }

      .subtask-status.in-progress {
        background: rgba(14, 165, 233, 0.18);
        color: var(--accent2);
      }

      .subtask-status.completed {
        background: rgba(52, 211, 153, 0.18);
        color: var(--green);
      }

      .fab-btn {
        position: fixed;
        right: 28px;
        bottom: 28px;
        z-index: 60;
        padding: 12px 22px;
        border: none;
        border-radius: 999px;
        background: var(--accent);
        color: #06231d;
        font-weight: 700;
        font-size: 13px;
        cursor: pointer;
        box-shadow: 0 10px 26px rgba(0, 212, 170, 0.35);
      }

      .fab-btn:hover {
        filter: brightness(1.05);
      }

      /* A second fab-btn on the same view (e.g. Sales project detail's
         "Email" next to "Upload Client Docs") sits left of the first
         instead of stacking directly on top of it. The small-screen
         .fab-btn override below switches position to static, at which
         point `right` has no effect and they stack full-width in source
         order like any other block element. */
      .fab-btn-secondary {
        right: 200px;
      }

      .modal-overlay {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: rgba(0, 0, 0, 0.66);
        z-index: 140;
      }

      .modal-overlay.active {
        display: flex;
      }

      .modal-content {
        position: relative;
        width: min(1100px, 100%);
        max-height: 90vh;
        overflow-y: auto;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 28px;

      }

      .modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: var(--surface2);
        color: var(--text);
        font-size: 1.15rem;
      }

      .modal-header {
        margin-bottom: 18px;
      }

      .modal-header h3 {
        font-size: 1.45rem;
      }

      .modal-body {
        display: grid;
        gap: 20px;
      }

      .form-section {
        padding: 20px;
        background: var(--surface2);
        border: 1px solid rgba(255, 255, 255, 0.03);
        border-radius: 14px;
      }

      .form-section h4 {
        margin-bottom: 14px;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--accent);
      }

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

      .form-group label {
        display: block;
        margin-bottom: 7px;
        color: var(--muted);
        font-weight: 600;
        font-size: 0.84rem;
      }

      .form-group input,
      .form-group select,
      .form-group textarea {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg);
        color: var(--text);
        padding: 11px 12px;
        font: inherit;
      }

      .form-group textarea {
        min-height: 96px;
        resize: vertical;
      }

      .form-group input:focus,
      .form-group select:focus,
      .form-group textarea:focus {
        outline: none;
        border-color: var(--accent);
      }

      .inline-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }

      .questionnaire-section-title {
        font-size: 0.78rem;
        font-weight: 700;
        color: var(--accent);
        margin: 14px 0 6px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
      }

      .choice-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 10px;
      }

      .choice-chip {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg);
        color: var(--text);
        padding: 12px;
        font-weight: 700;
        cursor: pointer;
      }

      .choice-chip input {
        accent-color: var(--accent);
      }

      .choice-chip.active {
        border-color: var(--accent);
        background: rgba(0, 212, 170, 0.12);
        color: var(--accent);
      }

      .assignment-select {
        display: grid;
        gap: 5px;
        min-width: 210px;
        color: var(--muted);
        font-size: 0.76rem;
        font-weight: 700;
      }

      .assignment-select select {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--bg);
        color: var(--text);
        padding: 8px 10px;
        font: inherit;
      }

      .divider {
        height: 1px;
        background: var(--border);
        margin: 16px 0;
      }

      .repeat-block {
        padding: 16px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: var(--repeat-block-bg);
        margin-bottom: 14px;
      }

      .repeat-block-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
      }

      .repeat-block-header h5 {
        font-size: 0.96rem;
      }

      .event-row {
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
        padding: 16px;
      }

      .summary-list,
      .data-list {
        display: flex;
        flex-direction: column;
      }

      .summary-row,
      .data-row {
        padding: 14px 4px;
        border-bottom: 1px solid var(--border);
      }

      .summary-list .summary-row:last-child,
      .data-list .data-row:last-child {
        border-bottom: none;
      }

      .summary-row {
        cursor: pointer;
        transition: background 0.15s ease;
      }

      .summary-row:hover {
        background: var(--surface2);
      }

      .summary-row h4,
      .data-row h4 {
        margin-bottom: 6px;
      }

      .summary-row-actions {
        margin-top: 10px;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }

      .table-wrap {
        overflow-x: auto;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
      }

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

      .data-table th,
      .data-table td {
        padding: 13px 14px;
        border-bottom: 1px solid var(--border);
        text-align: left;
        vertical-align: top;
      }

      .data-table th {
        background: var(--surface2);
        color: var(--muted);
        font-size: 0.74rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .data-table tbody tr {
        cursor: pointer;
      }

      .data-table tbody tr:hover {
        background: rgba(0, 212, 170, 0.08);
      }

      /* Attendance History (js/attendance.js renderAttendanceHistoryTable) —
         leave days highlighted so they stand out from working days at a
         glance; synthetic Sunday filler rows muted/greyed since they carry
         no real data, just marking the weekly off. */
      .data-table tbody tr.row-leave {
        background: rgba(255, 152, 0, 0.12);
      }

      .data-table tbody tr.row-leave:hover {
        background: rgba(255, 152, 0, 0.2);
      }

      .data-table tbody tr.row-weekly-off {
        background: rgba(120, 120, 120, 0.08);
        color: var(--muted);
        cursor: default;
      }

      .data-table tbody tr.row-weekly-off:hover {
        background: rgba(120, 120, 120, 0.08);
      }

      /* Inline-editable cells (Salary page) aren't wrapped in .form-group,
         so they'd otherwise fall back to the browser's default white input
         styling instead of the app's dark theme. */
      .data-table input[type="number"] {
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface);
        color: var(--text);
        padding: 8px;
        font: inherit;
      }

      .data-table input[type="number"]:focus {
        outline: none;
        border-color: var(--accent);
      }

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

      /* Leads / Contacted / Junk / Lost table — a calmer, less boxy variant
         of .data-table, originally scoped to renderEnquiriesTable
         (js/enquiry.js) but now shared by the Quotation list
         (renderQuotationsList, js/quotation.js) for the same minimal,
         professional look. No shaded header band, lighter row dividers,
         generous padding, and inline controls (status/remarks) styled to
         blend in until you actually interact with them instead of looking
         like stray form fields dropped into a grid. */
      .leads-table-wrap {
        overflow-x: auto;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface);
      }

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

      .leads-table th {
        padding: 12px 16px;
        text-align: left;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
        border-bottom: 1px solid var(--border);
      }

      .leads-table td {
        padding: 14px 16px;
        text-align: left;
        vertical-align: middle;
        font-size: 0.87rem;
        border-bottom: 1px solid var(--border);
      }

      .leads-table tbody tr {
        cursor: pointer;
        transition: background 0.12s ease;
      }

      .leads-table tbody tr:hover {
        background: var(--surface2);
      }

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

      .leads-table .lead-primary {
        display: block;
        font-weight: 600;
        color: var(--text);
      }

      .leads-table .lead-secondary {
        display: block;
        font-size: 0.78rem;
        color: var(--muted);
        margin-top: 2px;
        font-weight: 400;
      }

      .leads-table .status-select,
      .leads-table .remarks-input {
        border: 1px solid transparent;
        background: transparent;
        color: var(--text);
        padding: 6px 8px;
        border-radius: 7px;
        font: inherit;
        min-width: 0;
        width: 100%;
      }

      /* Remarks is a textarea (not a single-line input) precisely so a long
         typed remark wraps and stays fully visible instead of scrolling
         off out of view within a fixed-width cell. */
      .leads-table .remarks-input {
        min-width: 160px;
        min-height: 40px;
        resize: vertical;
        white-space: pre-wrap;
        line-height: 1.35;
      }

      .leads-table .status-select:hover,
      .leads-table .remarks-input:hover {
        border-color: var(--border);
        background: var(--surface2);
      }

      .leads-table .status-select:focus,
      .leads-table .remarks-input:focus {
        outline: none;
        border-color: var(--accent);
        background: var(--bg);
      }

      .leads-table .row-actions {
        justify-content: flex-start;
      }

      /* Sales Items table reuses .leads-table's structure/layout — this is
         just its cell-input styling, same "blend in until you interact"
         treatment as .leads-table .status-select above. */
      .sales-item-cell {
        border: 1px solid transparent;
        background: transparent;
        color: var(--text);
        padding: 6px 8px;
        border-radius: 7px;
        font: inherit;
        width: 100%;
        box-sizing: border-box;
      }

      .sales-item-cell:hover {
        border-color: var(--border);
        background: var(--surface2);
      }

      .sales-item-cell:focus {
        outline: none;
        border-color: var(--accent);
        background: var(--bg);
      }

      .sales-item-picker-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        border: none;
        border-radius: 8px;
        background: transparent;
        color: var(--text);
        padding: 9px 10px;
        font: inherit;
        text-align: left;
        cursor: pointer;
      }

      .sales-item-picker-row:hover {
        background: var(--surface2);
      }

      .sales-item-picker-name {
        font-weight: 600;
      }

      .sales-item-picker-meta {
        font-size: 0.78rem;
        color: var(--muted);
        white-space: nowrap;
      }

      .assumption-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 16px;
      }

      .assumption-table th,
      .assumption-table td {
        border: 1px solid var(--border);
        padding: 10px 12px;
        text-align: left;
        vertical-align: middle;
      }

      .assumption-table th {
        background: var(--surface2);
        color: var(--muted);
        font-size: 0.78rem;
        text-transform: uppercase;
      }

      .assumption-table input[type="text"] {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--surface);
        color: var(--text);
        padding: 8px;
      }

      .assumption-table .checkbox-cell {
        text-align: center;
      }

      .assumption-actions,
      .boq-actions {
        margin-bottom: 18px;
        display: flex;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
      }

      .assumption-version-list {
        margin-top: 12px;
        padding: 14px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: var(--surface);
      }

      .assumption-version-list h5 {
        margin-bottom: 10px;
        font-size: 0.95rem;
      }

      .assumption-version-list ul {
        list-style: none;
        padding-left: 0;
      }

      .assumption-version-list li {
        padding: 6px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--text);
      }

      .form-group .field-label-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .form-group .field-label-row button {
        width: 38px;
        height: 38px;
        padding: 0;
      }

      .status-select {
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--bg);
        color: var(--text);
        padding: 7px 9px;
        font: inherit;
        min-width: 138px;
      }

      .status-badge {
        display: inline-flex;
        align-items: center;
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 5px 10px;
        background: var(--surface2);
        color: var(--text);
        font-size: 0.78rem;
        font-weight: 700;
        white-space: nowrap;
      }

      .status-badge.new {
        color: var(--muted);
      }

      .status-badge.proposal {
        border-color: var(--accent2);
        color: var(--accent2);
      }

      .status-badge.in-progress {
        border-color: var(--accent);
        color: var(--accent);
      }

      .status-badge.completed {
        border-color: var(--green);
        color: var(--green);
      }

      .status-badge.declined {
        border-color: var(--red);
        color: var(--red);
      }

      .detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      .detail-field {
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--surface2);
        padding: 12px;
      }

      .detail-field.full {
        grid-column: 1 / -1;
      }

      .detail-field label {
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
      }

      .database-record-layout {
        display: grid;
        grid-template-columns: minmax(240px, 0.75fr) minmax(320px, 1.25fr);
        gap: 16px;
      }

      .database-panel {
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
        padding: 16px;
      }

      .database-panel h3 {
        margin-bottom: 10px;
      }

      .record-list {
        display: grid;
        gap: 10px;
      }

      .event-list {
        display: grid;
        gap: 12px;
      }

      .task-header {
        margin-bottom: 16px;
      }

      .task-header h3 {
        color: var(--accent);
        text-transform: uppercase;
        font-size: 1rem;
        margin-bottom: 8px;
      }

      .task-description {
        color: var(--text);
        font-size: 0.9rem;
        line-height: 1.4;
      }

      .doc-editor h4 {
        text-transform: uppercase;
        color: var(--accent);
        margin-bottom: 4px;
      }

      .doc-editor p {
        color: var(--muted);
        font-size: 0.85rem;
        margin-bottom: 12px;
      }

      .doc-editor textarea {
        background: var(--surface2);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 12px;
        font-family: var(--mono);
        font-size: 0.85rem;
        line-height: 1.4;
        color: var(--text);
        width: 100%;
        resize: vertical;
      }

      .event-row {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        align-items: flex-start;
      }

      .event-date {
        color: var(--accent);
        font-family: var(--mono);
        white-space: nowrap;
      }

      .db-breadcrumb {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        font-size: 0.85rem;
        margin-bottom: 16px;
      }

      .db-crumb {
        color: var(--muted);
        cursor: pointer;
      }

      .db-crumb:hover {
        color: var(--accent);
      }

      .db-crumb.active {
        color: var(--text);
        font-weight: 600;
        cursor: default;
      }

      .db-crumb.active:hover {
        color: var(--text);
      }

      .db-crumb-sep {
        color: var(--border);
      }

      .db-toolbar {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 14px;
      }

      .db-stats-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 22px;
        padding-bottom: 14px;
        margin-bottom: 6px;
        border-bottom: 1px solid var(--border);
        font-size: 0.82rem;
        color: var(--muted);
      }

      .db-stats-bar strong {
        color: var(--accent);
        margin-right: 5px;
      }

      .db-list {
        display: flex;
        flex-direction: column;
      }

      .db-row {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 4px;
        border-bottom: 1px solid var(--border);
      }

      .db-list .db-row:last-child {
        border-bottom: none;
      }

      .db-row-nav {
        cursor: pointer;
        transition: background 0.15s ease;
      }

      .db-row-nav:hover {
        background: var(--surface2);
      }

      .db-row-icon {
        flex-shrink: 0;
        display: flex;
        color: var(--muted);
      }

      .db-row-main {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
      }

      .db-row-name {
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .db-row-meta {
        font-size: 0.78rem;
        color: var(--muted);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .db-row-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
      }

      .db-row-btn {
        border: 1px solid var(--border);
        background: var(--surface2);
        color: var(--text);
        border-radius: 8px;
        padding: 6px 12px;
        font-size: 0.78rem;
        font-weight: 600;
        cursor: pointer;
        font-family: inherit;
      }

      .db-row-btn:hover {
        border-color: var(--accent);
      }

      .db-row-badge {
        background: var(--surface2);
        color: var(--muted);
        padding: 3px 9px;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 600;
      }

      .db-row-chevron {
        color: var(--muted);
        font-size: 1.15rem;
      }

      .selector-list {
        display: grid;
        gap: 8px;
        padding: 10px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg);
      }

      .employee-chip-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .employee-chip {
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--surface2);
        color: var(--text);
        padding: 8px 12px;
        font: inherit;
        font-size: 0.86rem;
        cursor: pointer;
      }

      .employee-chip.active {
        border-color: var(--accent);
        background: rgba(0, 212, 170, 0.14);
        color: var(--accent);
      }

      .doc-toolbar {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 14px;
      }

      .doc-editor-list {
        display: grid;
        gap: 14px;
      }

      .doc-editor {
        display: grid;
        gap: 10px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
        padding: 14px;
      }

      .doc-editor textarea {
        min-height: 260px;
        resize: vertical;
      }

      .doc-viewer-frame {
        width: 100%;
        min-height: 520px;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg);
      }

      .pdf-viewer-frame {
        width: 100%;
        min-height: 72vh;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg);
      }

      .calendar-shell {
        display: grid;
        gap: 14px;
      }

      .calendar-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }

      .calendar-title {
        font-size: 1.2rem;
        font-weight: 700;
      }

      .calendar-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
        background: var(--surface3);
      }

      .calendar-weekday,
      .calendar-day {
        min-height: 104px;
        padding: 8px;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
      }

      .calendar-weekday {
        min-height: auto;
        background: var(--surface2);
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
      }

      .calendar-day:nth-child(7n),
      .calendar-weekday:nth-child(7n) {
        border-right: none;
      }

      .calendar-day.muted {
        opacity: 0.45;
      }

      .calendar-day.today {
        box-shadow: inset 0 0 0 2px var(--accent);
      }

      .day-number {
        font-family: var(--mono);
        color: var(--text);
        margin-bottom: 6px;
      }

      .calendar-chip {
        display: block;
        margin-top: 4px;
        border-radius: 6px;
        padding: 4px 6px;
        font-size: 0.72rem;
        line-height: 1.25;
        color: #041923;
        background: var(--accent);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .calendar-chip.holiday {
        background: var(--warn);
      }

      .calc-frame {
        width: 100%;
        min-height: 72vh;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--bg);
      }

      .btn,
      .ghost-btn {
        border-radius: 10px;
        padding: 11px 16px;
        font-weight: 700;
      }

      .term-drag-row-dragging {
        opacity: 0.4;
      }

      .btn {
        border: none;
      }

      .btn-primary {
        background: linear-gradient(135deg, var(--accent) 0%, #06bf98 100%);
        color: #06202a;
      }

      .btn-secondary,
      .ghost-btn {
        border: 1px solid var(--border);
        background: var(--surface2);
        color: var(--text);
      }

      .action-buttons {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
      }

      #reports {
        padding-top: 20px;
      }

      @media (max-width: 860px) {
        .content-area,
        .drawer-body {
          padding-left: 18px;
          padding-right: 18px;
        }

        header {
          padding: 14px 18px;
          flex-wrap: wrap;
        }

        .main-container {
          display: block;
        }

        .side-menu {
          position: static;
          width: 100%;
          height: auto;
          border-right: none;
          border-bottom: 1px solid var(--border);
        }

        .side-menu-list {
          flex-direction: row;
          flex-wrap: wrap;
        }

        .side-menu-list .nav-btn {
          width: auto;
          border-bottom: none;
        }

        .inline-grid,
        .database-record-layout {
          grid-template-columns: 1fr;
        }

        .detail-title {
          align-items: flex-start;
        }

        .content-area {
          padding-bottom: 90px;
        }

        .leads-tabs {
          flex-wrap: nowrap;
          overflow-x: auto;
          -webkit-overflow-scrolling: touch;
        }

        .leads-tab {
          flex: 0 0 auto;
        }

        .fab-btn {
          position: static;
          display: block;
          width: 100%;
          margin-top: 20px;
          text-align: center;
        }

        .checklist-list {
          grid-template-columns: 1fr;
        }

        .checklist-section {
          transform: none;
        }

        .checklist-section:hover {
          transform: translateY(-2px);
        }

        .modal-content {
          padding: 18px;
        }

        .side-drawer {
          width: 100%;
        }
      }
