@media (min-width: 769px) {
  /* Scope root & content wrapper */
  #tab-cash-count {
    background-color: #f6f7f9;
    color: #1a1d23;
  }

  #tab-cash-count .cc-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 20px 48px;
    box-sizing: border-box;
  }

  /* 8. Header Bar */
  #tab-cash-count .cc-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eef0f3;
    padding-bottom: 12px;
    background: transparent;
  }

  #tab-cash-count .cc-header-bar h2 {
    font-size: 16px;
    font-weight: 500;
    color: #1a1d23;
    letter-spacing: -0.2px;
    margin: 0;
  }

  #tab-cash-count .cc-header-bar .cc-badge,
  #tab-cash-count .cc-header-bar .cc-badge-status {
    border-radius: 9999px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 500;
    box-shadow: none;
  }

  #tab-cash-count .cc-header-bar .cc-badge {
    background-color: #eef2f6 !important; /* override default accent badge color */
    color: #2b6cb0 !important; /* override default white text */
  }

  #tab-cash-count .cc-header-bar p {
    font-size: 11px;
    color: #6b7280;
    margin: 3px 0 0;
  }

  #tab-cash-count .cc-header-bar button {
    height: 34px;
    padding: 0 16px;
    border-radius: 8px;
    background: #2b6cb0 !important; /* override default gold/excel background */
    color: #ffffff !important; /* ensure readable white text */
    border: none;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(43, 108, 176, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  #tab-cash-count .cc-header-bar button:hover {
    background: #23568c !important; /* override hover state */
  }

  /* 8. Meta Fields Info Strip */
  #tab-cash-count .cc-info-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 12px;
    box-shadow: none;
  }

  #tab-cash-count .cc-info-strip label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
    display: block;
    text-transform: lowercase;
  }

  #tab-cash-count .cc-info-strip label::first-letter {
    text-transform: uppercase;
  }

  #tab-cash-count .cc-info-strip .cc-input {
    height: 30px;
    border-radius: 7px;
    border: 1px solid #d9dde3;
    background: #ffffff;
    color: #1a1d23;
    font-size: 12px;
    padding: 0 8px;
  }

  #tab-cash-count .cc-info-strip .cc-static-text {
    height: 30px;
    line-height: 28px;
    border-radius: 7px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #1a1d23;
    font-family: inherit !important; /* override inline monospace font */
    font-size: 12px;
    font-weight: 500;
    padding: 0 8px;
  }

  /* 1. Sticky Summary Bar */
  #tab-cash-count #cc-selisih-hero {
    position: sticky;
    top: 8px;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 16px;
    margin-top: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  #tab-cash-count #cc-selisih-hero.is-kurang {
    background: #fffafa !important; /* override default transparent red tint */
    border-color: #f3b8b8 !important; /* override red border */
  }

  #tab-cash-count #cc-selisih-hero.is-lebih {
    background: #e3f6ea !important; /* override default amber background */
    border-color: #bbf7d0 !important; /* override amber border */
  }

  #tab-cash-count #cc-selisih-hero.is-klop {
    background: #ffffff !important; /* override default green tint */
    border-color: #e5e7eb !important; /* override green border */
  }

  #tab-cash-count #cc-selisih-hero .cc-selisih-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0;
    display: inline-block;
    text-transform: lowercase;
  }

  #tab-cash-count #cc-selisih-hero .cc-selisih-label::first-letter {
    text-transform: uppercase;
  }

  #tab-cash-count #cc-selisih-hero .cc-selisih-status-pill {
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
  }

  #tab-cash-count #cc-selisih-hero.is-kurang .cc-selisih-status-pill {
    background: #fde8e8 !important; /* override default pill background */
    color: #b42318 !important; /* override default pill color */
  }

  #tab-cash-count #cc-selisih-hero.is-lebih .cc-selisih-status-pill {
    background: #fdf1d8 !important; /* override default pill background */
    color: #9a6a0b !important; /* override default pill color */
  }

  #tab-cash-count #cc-selisih-hero.is-klop .cc-selisih-status-pill {
    background: #e3f6ea !important; /* override default pill background */
    color: #1a7a42 !important; /* override default pill color */
  }

  #tab-cash-count #cc-selisih-hero .cc-selisih-value {
    font-family: inherit !important; /* override monospace font */
    font-variant-numeric: tabular-nums;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
    color: #1a1d23;
  }

  #tab-cash-count #cc-selisih-hero.is-kurang .cc-selisih-value {
    color: #b42318 !important; /* override selisih kurang color */
  }

  #tab-cash-count #cc-selisih-hero.is-lebih .cc-selisih-value {
    color: #9a6a0b !important; /* override selisih lebih color */
  }

  #tab-cash-count #cc-selisih-hero.is-klop .cc-selisih-value {
    color: #1a7a42 !important; /* override selisih klop color */
  }

  #tab-cash-count #cc-selisih-hero .cc-chip {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 4px 10px;
    box-shadow: none;
    min-width: auto;
  }

  #tab-cash-count #cc-selisih-hero .cc-chip-lbl {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
  }

  #tab-cash-count #cc-selisih-hero .cc-chip-val {
    font-family: inherit !important; /* override monospace font */
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    font-weight: 500;
    color: #1a1d23;
  }

  #tab-cash-count #cc-selisih-hero .cc-chip-op {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
  }

  /* 2. Grid & Columns Layout */
  #tab-cash-count .cc-columns-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 12px;
  }

  #tab-cash-count .cc-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* 3. Section Cards & Tables */
  #tab-cash-count .cc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: none;
    scroll-margin-top: 80px;
  }

  #tab-cash-count .cc-card-title {
    font-size: 12px;
    font-weight: 500;
    color: #1a1d23;
    border-bottom: 1px solid #eef0f3;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  #tab-cash-count .cc-card-title .cc-tag-sub {
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
  }

  #tab-cash-count .cc-card-badge {
    font-family: inherit !important; /* override monospace font */
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    font-weight: 500;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #2b6cb0;
    padding: 2px 8px;
  }

  #tab-cash-count .cc-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
  }

  #tab-cash-count .cc-table {
    width: 100%;
    border-collapse: collapse;
  }

  #tab-cash-count .cc-table th {
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    padding: 6px 10px;
    border-bottom: 1px solid #e5e7eb;
    height: 32px;
    box-sizing: border-box;
  }

  #tab-cash-count .cc-table td {
    height: 36px;
    padding: 2px 8px;
    border-bottom: 1px solid #eef0f3;
    font-size: 12px;
    color: #1a1d23;
    box-sizing: border-box;
  }

  #tab-cash-count .cc-table tr:last-child td {
    border-bottom: none;
  }

  #tab-cash-count .cc-table td[style*="font-family"] {
    font-family: inherit !important; /* override inline monospace font in table cells */
  }

  #tab-cash-count .cc-table td[style*="font-weight:600"],
  #tab-cash-count .cc-table td[style*="font-weight:700"],
  #tab-cash-count .cc-table td[style*="font-weight:800"] {
    font-weight: 500 !important; /* normalize inline font-weight to 500 */
  }

  #tab-cash-count .cc-tfoot-row td {
    background: #f9fafb !important; /* override default bg3 */
    border-top: 1px solid #e5e7eb !important; /* override default double border */
    font-size: 12px;
    font-weight: 500 !important; /* override heavy bold */
    color: #1a1d23;
    height: 36px;
  }

  #tab-cash-count .cc-tfoot-row td:last-child {
    font-family: inherit !important; /* override inline monospace */
    font-variant-numeric: tabular-nums;
    color: #2b6cb0 !important; /* override default accent */
    font-weight: 500 !important; /* override inline weight 800 */
  }

  /* Form Inputs */
  #tab-cash-count .cc-input {
    height: 28px;
    border: 1px solid #d9dde3;
    border-radius: 7px;
    background: #ffffff;
    color: #1a1d23;
    font-family: inherit !important; /* override default monospace font */
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  #tab-cash-count .cc-input:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 2px rgba(43, 108, 176, 0.25);
  }

  #tab-cash-count input.cc-num-input {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
  }

  #tab-cash-count input.cc-val-zero {
    color: #9aa1ac;
  }

  /* 4 & 5. Collapsible Rows & Actions */
  #tab-cash-count.cc-ready #cc-dp-tbody tr.cc-zero:not(.cc-force-visible),
  #tab-cash-count.cc-ready #cc-nota-tbody tr.cc-zero:not(.cc-force-visible) {
    display: none;
  }

  #tab-cash-count .cc-denom-toggle-row {
    display: none !important;
  }

  #tab-cash-count .cc-add-row-tr {
    display: table-row !important; /* override default display none for desktop */
  }

  #tab-cash-count .cc-toggle-btn,
  #tab-cash-count .cc-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #2b6cb0;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 8px;
  }

  #tab-cash-count .cc-toggle-btn:hover,
  #tab-cash-count .cc-add-btn:hover {
    text-decoration: underline;
  }

  #tab-cash-count .cc-action-cell {
    padding: 4px 8px;
    background: #f9fafb;
    border-top: 1px solid #eef0f3;
  }

  #tab-cash-count .cc-empty-notice {
    font-size: 11px;
    color: #6b7280;
    font-style: italic;
    padding: 8px 10px;
    text-align: center;
    background: #f9fafb;
    border-bottom: 1px solid #eef0f3;
  }

  /* 6. Catatan & Pernyataan */
  #tab-cash-count .cc-catatan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
  }

  #tab-cash-count .cc-catatan-grid label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
    display: block;
    text-transform: lowercase;
  }

  #tab-cash-count .cc-catatan-grid label::first-letter {
    text-transform: uppercase;
  }

  #tab-cash-count .cc-catatan-grid .cc-input {
    height: 30px;
    width: 100%;
    border-radius: 7px;
  }

  #tab-cash-count .cc-statement-box {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f3f8fe !important; /* override default transparent accent background */
    border-left: 3px solid #2b6cb0 !important; /* override default border width and color */
    border-radius: 6px;
    padding: 10px 12px;
  }

  #tab-cash-count .cc-statement-box .cc-statement-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.45;
  }

  /* 7. Tanda Tangan & Penanggung Jawab */
  #tab-cash-count #cc-signatures-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }

  #tab-cash-count #cc-signatures-container.is-pos {
    grid-template-columns: repeat(4, 1fr);
  }

  #tab-cash-count .cc-sign-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
    text-align: center;
    box-shadow: none;
    position: relative;
    box-sizing: border-box;
  }

  #tab-cash-count .cc-sign-card .cc-sign-role {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: lowercase;
    letter-spacing: 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  #tab-cash-count .cc-sign-card .cc-sign-role::first-letter {
    text-transform: uppercase;
  }

  #tab-cash-count .cc-sign-card .cc-sign-box-space {
    height: 36px;
    min-height: 36px;
    flex: none;
    border-bottom: 1px dashed #d9dde3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0;
    position: relative;
  }

  #tab-cash-count .cc-sign-card .cc-sign-box-space::before {
    content: 'Tanda tangan';
    font-size: 11px;
    color: #9aa1ac;
    font-style: italic;
    font-weight: 400;
  }

  #tab-cash-count .cc-sign-card .cc-sign-name {
    border-top: none;
    padding-top: 0;
    font-size: 12px;
    font-weight: 500;
    color: #1a1d23;
  }

  #tab-cash-count .cc-sign-card .cc-sign-name input {
    height: 28px;
    border-radius: 7px;
    border: 1px solid #d9dde3;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  #tab-cash-count .cc-sign-card .cc-sign-pill {
    display: inline-block !important; /* override default display none for desktop */
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    margin-top: 6px;
    align-self: center;
  }

  #tab-cash-count .cc-sign-card .cc-sign-pill.is-terisi {
    background: #e3f6ea;
    color: #1a7a42;
  }

  #tab-cash-count .cc-sign-card .cc-sign-pill.is-belum {
    background: #fdf1d8;
    color: #9a6a0b;
  }
}
