
    :root {
      color-scheme: light;
      --bg: #F3F4F6; /* Tailwind gray-100 */
      --panel: #ffffff;
      --ink: #111827; /* Tailwind gray-900 */
      --muted: #6B7280; /* Tailwind gray-500 */
      --line: #E5E7EB; /* Tailwind gray-200 */
      --line-strong: #D1D5DB; /* Tailwind gray-300 */
      --brand-blue: #2563EB; /* Tailwind blue-600 */
      --brand-blue-dark: #1D4ED8; /* Tailwind blue-700 */
      --brand-blue-soft: #EFF6FF; /* Tailwind blue-50 */
      --brand-black: #111827;
      --brand-gray: #374151;
      --green: #059669; /* Tailwind emerald-600 */
      --green-soft: #ECFDF5; /* Tailwind emerald-50 */
      --blue: #2563EB;
      --blue-soft: #EFF6FF;
      --amber: #D97706; /* Tailwind amber-600 */
      --amber-soft: #FFFBEB; /* Tailwind amber-50 */
      --red: #DC2626; /* Tailwind red-600 */
      --red-soft: #FEF2F2; /* Tailwind red-50 */
      --violet: #7C3AED; /* Tailwind violet-600 */
      --violet-soft: #F5F3FF; /* Tailwind violet-50 */
      --nav: #1F2937;
      --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
      --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
      --radius: 12px;
      --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    * { box-sizing: border-box; }
    html, body {
      height: 100%;
      touch-action: manipulation;
      -webkit-text-size-adjust: 100%;
      text-size-adjust: 100%;
    }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--ink);
      font-family: var(--font);
      font-size: 14px;
      letter-spacing: -0.01em;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; transition: all 0.2s ease; }
    .shell {
      min-height: 100%;
      display: grid;
      grid-template-columns: 1fr;
      grid-template-rows: auto minmax(0, 1fr);
      align-items: start;
    }
    .sidebar {
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(12px);
      color: var(--ink);
      padding: 12px 24px 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      border-right: 0;
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 40;
      box-shadow: var(--shadow-sm);
      align-self: start;
      min-height: 0;
    }
    .brand { display: flex; align-items: center; justify-content: center; gap: 16px; }
    .mark {
      width: 152px; height: 52px; border-radius: 0;
      display: grid; place-items: center;
      background: transparent;
      font-weight: 800;
      box-shadow: none;
      overflow: hidden;
    }
    .mark img { width: 100%; height: 100%; object-fit: contain; padding: 0; background: transparent; }
    .login-card .mark { width: 190px; height: 66px; }
    .sidebar .brand { margin-bottom: 0; padding: 0; }
    .sidebar .mark { width: 124px; height: 40px; }
    .brand strong { display: block; font-size: 16px; }
    .brand span { color: #a9bdc7; font-size: 12px; }
    .header-date {
      min-height: 32px;
      padding: 6px 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      display: inline-flex;
      align-items: center;
      color: var(--muted);
      background: #F9FAFB;
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }
    .nav {
      width: min(760px, 100%);
      display: flex;
      justify-content: center;
      gap: 8px;
      overflow-x: auto;
      padding: 0;
      scrollbar-width: none;
    }
    .nav::-webkit-scrollbar { display: none; }
    .nav button {
      width: auto;
      min-width: 46px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid transparent;
      border-radius: var(--radius);
      min-height: 36px;
      padding: 0 16px;
      color: var(--brand-gray);
      background: transparent;
      text-align: center;
      font-weight: 600;
      font-size: 13px;
      white-space: nowrap;
      transition: all 0.2s ease;
    }
    .nav button svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 2;
      fill: none;
      flex: 0 0 auto;
    }
    .nav button.active, .nav button:hover {
      background: var(--brand-blue-soft);
      color: var(--brand-blue);
    }
    .notification-nav-btn { position: relative; }
    .notification-badge {
      position: absolute;
      right: 7px;
      top: 5px;
      min-width: 18px;
      height: 18px;
      border-radius: 999px;
      background: #dc2626;
      color: #fff;
      display: grid;
      place-items: center;
      padding: 0 5px;
      font-size: 10px;
      font-weight: 900;
      line-height: 1;
      box-shadow: 0 0 0 2px #fff;
      font-variant-numeric: tabular-nums;
    }
    .side-note {
      margin-top: auto;
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 8px;
      padding: 14px;
      color: #cadbe1;
      background: rgba(255,255,255,.05);
      line-height: 1.45;
      font-size: 12px;
    }
    .main { min-width: 0; }
    .topbar {
      min-height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 20px;
      background: rgba(255,255,255,.88);
      border-bottom: 1px solid var(--line);
      position: static;
      top: auto;
      z-index: 20;
      backdrop-filter: blur(10px);
    }
    h1 { margin: 0; font-size: 23px; line-height: 1.15; }
    .sub { color: var(--muted); margin-top: 5px; font-size: 13px; }
    .top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
    .btn {
      border: 1px solid var(--line-strong);
      background: var(--panel);
      color: var(--ink);
      border-radius: var(--radius);
      min-height: 40px;
      padding: 0 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-weight: 600;
      font-size: 13px;
      white-space: nowrap;
      box-shadow: var(--shadow-sm);
    }
    .btn:hover { border-color: var(--line-strong); background: #f9fafb; transform: translateY(-1px); }
    .btn.primary { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -2px rgba(37, 99, 235, 0.1); border-width: 0; }
    .btn.primary:hover { background: var(--brand-blue-dark); transform: translateY(-1px); box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); }
    .btn.danger { border-color: transparent; color: #fff; background: var(--red); }
    .btn.danger:hover { background: #B91C1C; }
    .btn.icon { width: 40px; padding: 0; }
    .content { padding: 12px 16px 24px; display: grid; gap: 10px; }
    .stats { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; }
    .stat {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 16px 20px;
      box-shadow: var(--shadow-sm);
      position: relative;
      overflow: hidden;
      transition: all 0.2s ease;
    }
    .stat:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
    .stat::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 4px;
      height: 100%;
      background: var(--brand-blue);
    }
    .stat:nth-child(2)::before { background: var(--violet); }
    .stat:nth-child(3)::before { background: var(--green); }
    .stat:nth-child(4)::before { background: var(--amber); }
    .stat span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
    .stat strong { display: block; margin-top: 8px; font-size: 26px; font-weight: 800; color: var(--ink); }
    .workspace {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      margin-top: 12px;
    }
    .today-calls {
      display: grid;
      gap: 8px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--line);
      background: #f7fafc;
    }
    .today-calls-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .today-calls-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-width: 0;
      flex: 1 1 auto;
    }
    .today-calls-head strong { font-size: 14px; }
    .today-calls-summary { color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
    .today-calls-toggle {
      width: 32px;
      height: 32px;
      flex: 0 0 32px;
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #40505b;
      background: #fff;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .today-calls-toggle:hover {
      border-color: var(--brand-blue);
      color: var(--brand-blue);
      background: var(--brand-blue-soft);
    }
    .today-calls-toggle svg {
      width: 17px;
      height: 17px;
      stroke: currentColor;
      stroke-width: 2.5;
      fill: none;
      transform: rotate(180deg);
      transition: transform 0.2s ease;
    }
    .today-calls.collapsed .today-calls-toggle svg { transform: rotate(0deg); }
    .today-calls.collapsed .today-call-list { display: none; }
    .today-call-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .today-call-group {
      display: grid;
      gap: 6px;
      min-width: 0;
    }
    .today-call-group-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      color: #40505b;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .today-call-group-title span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 850;
      text-transform: none;
    }
    .today-call-row {
      display: grid;
      grid-template-columns: 44px minmax(150px, 1fr) 152px 80px 180px;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: #fff;
      box-shadow: var(--shadow-sm);
    }
    .today-call-id { text-align: center; }
    .today-call-person { min-width: 0; }
    .today-call-main {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }
    .today-call-main .lead {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .today-call-links {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
    }
    .today-call-link {
      width: 32px;
      height: 32px;
      border: 1.5px solid #b7c8dc;
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--brand-blue);
      background: #fff;
      text-decoration: none;
      box-shadow: 0 6px 14px rgba(28, 68, 110, 0.09);
      transition: all 0.2s ease;
    }
    .today-call-link:hover {
      border-color: var(--brand-blue);
      background: var(--brand-blue-soft);
      transform: translateY(-1px);
    }
    .today-call-link.whatsapp {
      color: #16814d;
      border-color: #a7d7bc;
    }
    .today-call-link.whatsapp:hover {
      border-color: #34a66d;
      background: var(--green-soft);
    }
    .today-call-link.disabled {
      opacity: 0.45;
      pointer-events: none;
      box-shadow: none;
    }
    .today-call-link svg {
      width: 17px;
      height: 17px;
      stroke: currentColor;
      stroke-width: 2.5;
      fill: none;
    }
    .today-call-row .lead { font-size: 13px; }
    .today-call-row .muted { margin-top: 1px; }
    .today-call-date, .today-call-count {
      font-size: 12px;
      font-weight: 850;
      color: #40505b;
      text-align: center;
      font-variant-numeric: tabular-nums;
    }
    .today-call-actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 10px;
    }
    .today-call-done {
      min-height: 30px;
      padding: 0 12px;
      border-color: #8ec7a4;
      color: #1f7445;
      background: var(--green-soft);
    }
    .today-call-done:hover {
      border-color: #36a965;
      background: #dff3e8;
    }
    .today-call-empty {
      padding: 10px 12px;
      border: 1px dashed var(--line-strong);
      border-radius: 8px;
      color: var(--muted);
      background: #fff;
      font-size: 12px;
    }
    .toolbar {
      padding: 12px 20px;
      display: grid;
      gap: 10px;
      background: #fff;
      border-bottom: 1px solid var(--line);
    }
    .filter-panel-body {
      display: grid;
      grid-template-columns: minmax(280px, 1fr) auto;
      grid-template-areas:
        "status actions"
        "search actions";
      align-items: center;
      gap: 8px 16px;
    }
    .filter-search { grid-area: search; }
    .filter-status-field { grid-area: status; }
    .toolbar-actions {
      grid-area: actions;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      white-space: nowrap;
    }
    .toolbar-actions #listSummary {
      color: var(--muted);
      font-size: 13px;
      font-weight: 500;
    }
    .filter-panel-head {
      display: none;
    }
    .filter-panel-toggle {
      width: 32px;
      height: 32px;
      flex: 0 0 32px;
      border: 1px solid var(--line-strong);
      border-radius: 10px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #40505b;
      background: #fff;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .filter-panel-toggle svg {
      width: 17px;
      height: 17px;
      stroke: currentColor;
      stroke-width: 2.5;
      fill: none;
      transform: rotate(180deg);
      transition: transform 0.2s ease;
    }
    .filter-panel.collapsed .filter-panel-toggle svg {
      transform: rotate(0deg);
    }
    .accounting-toolbar {
      grid-template-columns: 1fr;
      align-items: center;
      padding: 12px 20px;
    }
    .accounting-controls {
      width: 100%;
      display: grid;
      grid-template-columns: minmax(78px, .55fr) minmax(118px, 1fr) minmax(142px, auto);
      gap: 8px;
      align-items: center;
    }
    .accounting-controls select,
    .accounting-controls button {
      width: 100%;
      min-height: 36px;
      border-radius: 8px;
      border: 1px solid var(--line-strong);
      font-weight: 800;
      font-size: 12px;
      white-space: nowrap;
    }
    .accounting-controls select {
      padding: 6px 10px;
      color: var(--ink);
      background: #fff;
    }
    #toggleYearlySummaryBtn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 6px 10px;
      cursor: pointer;
      transition: all 0.2s;
      letter-spacing: 0.3px;
    }
    .field { display: grid; gap: 6px; }
    .filter-panel .field label { display: none; }
    .filter-search input {
      min-height: 34px;
      border-radius: 8px;
      padding: 7px 10px;
      font-size: 13px;
      background: #fbfdff;
    }
    label { color: var(--brand-gray); font-size: 13px; font-weight: 600; }
    input, select, textarea {
      width: 100%;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      padding: 10px 14px;
      background: #fff;
      color: var(--ink);
      outline: none;
      transition: all 0.2s ease;
      font-size: 14px;
    }
    input:focus, select:focus, textarea:focus {
      border-color: var(--brand-blue);
      box-shadow: 0 0 0 4px var(--brand-blue-soft);
    }
    input[type="number"]::-webkit-outer-spin-button,
    input[type="number"]::-webkit-inner-spin-button {
      margin: 0;
      -webkit-appearance: none;
    }
    input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
    textarea { min-height: 76px; resize: vertical; line-height: 1.35; }
    .control-card {
      min-height: 36px;
      display: flex;
      align-items: center;
      padding: 0 2px;
    }
    .table-wrap { overflow: hidden; }
    .table-scroll { overflow: auto; max-height: calc(100vh - 236px); min-height: 320px; }
    table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
    th, td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: left; vertical-align: middle; }
    th {
      position: sticky;
      top: 0;
      z-index: 2;
      background: #F9FAFB;
      color: var(--muted);
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      white-space: nowrap;
      border-bottom: 2px solid var(--line);
    }
    th:nth-child(1), td:nth-child(1) { width: 58px; text-align: center; }
    th:nth-child(2), td:nth-child(2) { width: 68px; text-align: center; }
    th:nth-child(3), td:nth-child(3) { width: 220px; }
    th:nth-child(4), td:nth-child(4) { width: 528px; }
    th:nth-child(5), td:nth-child(5) { width: 132px; text-align: center; }
    th:nth-child(6), td:nth-child(6) { width: 214px; text-align: center; }
    th:nth-child(7), td:nth-child(7) { width: 110px; text-align: center; }
    th:nth-child(8), td:nth-child(8) { width: 178px; text-align: right; }
    th:nth-child(9), td:nth-child(9) { width: 146px; text-align: center; }
    .date-sort-toggle {
      width: 100%;
      min-height: 28px;
      padding: 0;
      border: 0;
      background: transparent;
      color: inherit;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      font: inherit;
      text-transform: inherit;
      letter-spacing: inherit;
      cursor: pointer;
    }
    .date-sort-toggle svg {
      width: 13px;
      height: 13px;
      stroke: currentColor;
      stroke-width: 2.7;
      fill: none;
      transition: transform 0.18s ease;
    }
    .date-sort-toggle.asc svg { transform: rotate(180deg); }
    .date-sort-toggle:hover { color: var(--brand-blue); }
    tbody tr { background: #fff; transition: background-color 0.15s ease; }
    tbody tr:hover { background: var(--brand-blue-soft); }
    tbody tr.success-row { background: #F0FDF4; color: #14532d; }
    tbody tr.success-row:hover { background: #DCFCE7; }
    tbody tr.passive-row { background: #F9FAFB; color: var(--muted); opacity: 0.8; }
    tbody tr.passive-row:hover { background: #F3F4F6; }
    .status-divider td {
      padding: 8px 10px;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    .status-divider span {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .status-divider small {
      font-size: 10px;
      font-weight: 800;
      color: inherit;
      opacity: 0.7;
    }
    .continue-divider td {
      background: #fff7ed;
      color: #c2410c;
      border-bottom-color: #fed7aa;
    }
    .success-divider td {
      padding: 8px 10px;
      background: #dcfce7;
      color: #166534;
      border-bottom-color: #86efac;
    }
    .passive-divider td {
      padding: 8px 10px;
      background: #eef3f7;
      color: #53616b;
      border-bottom-color: var(--line-strong);
    }
    .lead { font-weight: 700; color: var(--ink); font-size: 14.5px; line-height: 1.25; }
    .customer-cell {
      display: grid;
      gap: 6px;
      justify-items: start;
      text-align: left;
    }
    .customer-no {
      color: #40505b;
      font-size: 12px;
      font-weight: 850;
      font-variant-numeric: tabular-nums;
    }
    .id-lead-cell {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    .created-date-mini {
      display: grid;
      gap: 1px;
      color: #596773;
      font-size: 11px;
      font-weight: 850;
      text-align: center;
      font-variant-numeric: tabular-nums;
    }
    .created-date-mini small {
      color: var(--muted);
      font-size: 9px;
      font-weight: 800;
    }
    .muted { color: var(--muted); font-size: 12px; margin-top: 2px; }
    .nowrap { white-space: nowrap; }
    .desc {
      max-width: 100%;
      color: #34424d;
      line-height: 1.4;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .inline-note {
      width: 100%;
      min-height: 46px;
      padding: 6px 7px;
      resize: none;
      overflow: hidden;
      font-size: 12px;
      line-height: 1.35;
      color: #2f3b44;
      background: #fff;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .note-pair {
      display: grid;
      grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr);
      gap: 8px;
      align-items: stretch;
    }
    .note-pair .inline-note { min-width: 0; }
    .message-template-btn {
      width: 38px;
      min-height: 46px;
      border: 1.5px solid #a7d7bc;
      border-radius: 9px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #16814d;
      background: var(--green-soft);
      cursor: pointer;
      box-shadow: 0 6px 14px rgba(16, 129, 77, 0.08);
      transition: all 0.2s ease;
    }
    .message-template-btn:hover {
      border-color: #34a66d;
      background: #dcfce7;
      transform: translateY(-1px);
    }
    .message-template-btn svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      stroke-width: 2.4;
      fill: none;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 3px 8px;
      border-radius: 999px;
      font-weight: 800;
      font-size: 12px;
      white-space: nowrap;
    }
    .badge.new { background: var(--blue-soft); color: var(--blue); }
    .badge.contacted { background: var(--amber-soft); color: var(--amber); }
    .badge.proposal { background: var(--violet-soft); color: var(--violet); }
    .badge.won { background: var(--green-soft); color: var(--green); }
    .badge.lost { background: var(--red-soft); color: var(--red); }
    .badge.continue { background: var(--amber-soft); color: var(--amber); }
    .badge.cancel { background: var(--red-soft); color: var(--red); }
    .source-logo {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 20px;
      height: 20px;
      margin-left: 0;
      border-radius: 999px;
      background: transparent;
      white-space: nowrap;
    }
    .source-logo::before {
      content: "";
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #36b24a;
      box-shadow: inset -2px -2px 0 rgba(0,0,0,.08);
    }
    .source-logo.blue::before { background: var(--brand-blue); }
    .source-picker {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 34px;
    }
    .source-btn {
      width: 34px;
      height: 34px;
      border: 1px solid var(--line-strong);
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      box-shadow: inset 0 0 0 0 transparent;
    }
    .source-btn::before {
      content: "";
      width: 14px;
      height: 14px;
      border-radius: 50%;
      background: #36b24a;
      box-shadow: inset -2px -2px 0 rgba(0,0,0,.08);
    }
    .source-btn.blue::before { background: var(--brand-blue); }
    .source-btn.active {
      border-color: var(--brand-blue);
      background: var(--brand-blue-soft);
      box-shadow: inset 0 0 0 1px rgba(22,129,196,.28);
    }
    .source-btn.green.active {
      border-color: #36b24a;
      background: var(--green-soft);
      box-shadow: inset 0 0 0 1px rgba(54,178,74,.28);
    }
    .table-date,
    .table-money {
      color: #25313a;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0;
    }
    .table-money { font-weight: 800; }
    .offer-cell {
      display: grid;
      gap: 3px;
      justify-items: end;
      line-height: 1.2;
    }
    .offer-no {
      color: #596773;
      font-size: 11px;
      font-weight: 850;
      font-variant-numeric: tabular-nums;
    }
    .offer-amount {
      color: #25313a;
      font-size: 12px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }
    .offer-budget {
      display: inline-grid;
      gap: 5px;
      align-items: center;
      justify-content: end;
      width: 100%;
    }
    .offer-budget-view,
    .offer-budget-edit {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 5px;
    }
    .offer-budget.editing .offer-budget-view,
    .offer-budget:not(.editing) .offer-budget-edit {
      display: none;
    }
    .offer-budget-text {
      color: #25313a;
      font-size: 13px;
      font-weight: 900;
      font-variant-numeric: tabular-nums;
    }
    .offer-inline-input {
      width: 78px;
      min-height: 26px;
      padding: 4px 6px;
      text-align: right;
      font-size: 12px;
      font-weight: 850;
      font-variant-numeric: tabular-nums;
    }
    .offer-icon-btn {
      width: 24px;
      height: 24px;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      color: var(--brand-blue);
    }
    .offer-icon-btn.save {
      color: #1f7445;
      border-color: #8ec7a4;
      background: var(--green-soft);
    }
    .offer-icon-btn svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
      stroke-width: 2.4;
      fill: none;
    }
    .table-budget { padding-left: 6px; padding-right: 6px; }
    .offer-fee {
      color: #b26b18;
      font-size: 11px;
      font-weight: 850;
      font-variant-numeric: tabular-nums;
    }
    .phone-cell {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
    }
    .phone-text { font-size: 13px; font-weight: 500; text-align: left; color: var(--muted); }
    .phone-actions {
      display: flex;
      justify-content: flex-start;
      gap: 6px;
      width: 100%;
    }
    .phone-action {
      width: 32px;
      height: 32px;
      flex: 0 0 auto;
      border: 1.5px solid #b7c8dc;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--brand-blue);
      background: #fff;
      text-decoration: none;
      box-shadow: 0 6px 14px rgba(28, 68, 110, 0.08);
      transition: all 0.2s ease;
    }
    .phone-action:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); transform: translateY(-1px); }
    .phone-action.whatsapp { color: #059669; }
    .phone-action.whatsapp:hover { border-color: #34D399; background: var(--green-soft); transform: translateY(-1px); }
    .phone-action svg {
      width: 17px;
      height: 17px;
      stroke: currentColor;
      stroke-width: 2.4;
      fill: none;
    }
    .follow-control {
      display: grid;
      grid-template-columns: 132px 82px 34px;
      gap: 6px;
      align-items: center;
      justify-content: center;
    }
    .table-date-input,
    .table-time-select {
      width: 100%;
      min-height: 30px;
      padding: 5px 6px;
      font-size: 12px;
      text-align: center;
    }
    .reminder-btn {
      width: 34px;
      min-height: 30px;
      border: 1.5px solid #bfdbfe;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--brand-blue);
      background: var(--brand-blue-soft);
      cursor: pointer;
      box-shadow: 0 5px 12px rgba(37, 99, 235, 0.08);
      transition: all 0.2s ease;
    }
    .reminder-btn:hover {
      border-color: var(--brand-blue);
      background: #dbeafe;
      transform: translateY(-1px);
    }
    .reminder-btn svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2.4;
      fill: none;
    }
    .time-select {
      width: 100%;
      min-height: 38px;
      padding-right: 30px;
      color: #25313a;
      font-weight: 750;
      font-variant-numeric: tabular-nums;
      background-color: #fff;
    }
    .counter-stack {
      display: grid;
      gap: 6px;
      justify-content: center;
      min-width: 98px;
    }
    .counter-row {
      display: grid;
      grid-template-columns: 22px 72px;
      gap: 6px;
      align-items: center;
    }
    .counter-label {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--muted);
    }
    .counter-label svg {
      width: 15px;
      height: 15px;
      stroke: currentColor;
      stroke-width: 2.2;
      fill: none;
    }
    .counter-control {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      min-width: 0;
    }
    .counter-value {
      min-width: 22px;
      font-weight: 850;
      font-variant-numeric: tabular-nums;
    }
    .mini-btn {
      width: 26px;
      height: 26px;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      background: #fff;
      color: var(--brand-blue);
      font-weight: 900;
      line-height: 1;
    }
    .mini-btn:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
    .mini-btn.decrease { color: #8a5151; }
    .mini-btn.decrease:hover { border-color: #d59b9b; background: #fff7f7; }
    .status-actions {
      display: inline-flex;
      gap: 6px;
      justify-content: center;
      align-items: center;
    }
    .table-status-actions {
      display: inline-grid;
      gap: 4px;
      min-width: 68px;
    }
    .table-status-actions .status-btn {
      width: 100%;
      min-height: 28px;
    }
    .notes-stack {
      display: grid;
      gap: 6px;
    }
    .cancel-reason {
      display: block;
      width: 100%;
      min-height: 30px;
      padding: 6px 8px;
      border: 1px solid #df8f89;
      border-radius: 8px;
      color: var(--red);
      background: #fff7f7;
      font-size: 11.5px;
      font-weight: 800;
      line-height: 1.3;
      text-align: left;
      white-space: normal;
      overflow: visible;
      overflow-wrap: break-word;
    }
    .status-btn {
      min-height: 24px;
      border-radius: 999px;
      border: 1px solid transparent;
      padding: 0 9px;
      font-size: 11.5px;
      font-weight: 850;
      background: #fff;
      color: var(--muted);
    }
    .status-btn.continue {
      border-color: #efd38b;
      color: var(--amber);
      background: #fffaf0;
    }
    .status-btn.cancel {
      border-color: #e1aaa7;
      color: var(--red);
      background: #fff7f7;
    }
    .status-btn.success {
      border-color: #8ec7a4;
      color: var(--green);
      background: var(--green-soft);
    }
    .status-btn.continue.active { background: var(--amber-soft); }
    .status-btn.cancel.active { background: var(--red-soft); }
    .status-btn.success.active { background: var(--green-soft); }
    .filter-status {
      min-height: 26px;
      justify-content: flex-start;
      gap: 5px;
    }
    .filter-status .status-btn { min-width: 0; }
    .status-btn.all {
      border-color: var(--line-strong);
      color: #40505b;
      background: #fff;
    }
    .status-btn.all.active { background: var(--brand-blue-soft); }
    .row-actions {
      display: grid;
      grid-template-columns: repeat(4, 30px);
      justify-content: center;
      gap: 5px;
    }
    .info-btn { width: 30px; min-height: 30px; padding: 0; color: var(--brand-blue); border-color: #9fc8e1; background: #f7fbfe; font-weight: 900; font-style: italic; }
    .row-actions .btn {
      width: 30px;
      min-height: 30px;
      padding: 0;
      border-color: #b8c9d6;
      box-shadow: 0 1px 0 rgba(18, 35, 48, .04);
    }
    .edit-btn svg {
      width: 15px;
      height: 15px;
      stroke: currentColor;
      stroke-width: 2.2;
      fill: none;
    }
    .success-btn {
      color: var(--green);
      border-color: #8ec7a4 !important;
      background: var(--green-soft);
    }
    .success-btn.active {
      color: #fff;
      border-color: var(--green) !important;
      background: var(--green);
    }
    .delete-row-btn {
      color: var(--red);
      border-color: #e1aaa7 !important;
      background: var(--red-soft);
    }
    .success-btn svg,
    .delete-row-btn svg {
      width: 16px;
      height: 16px;
      stroke: currentColor;
      stroke-width: 2.5;
      fill: none;
    }
    .empty { padding: 28px; text-align: center; color: var(--muted); }

    .login {
      min-height: 100%;
      display: grid;
      place-items: center;
      padding: 24px;
      background:
        radial-gradient(circle at 24% 16%, rgba(22,129,196,.18), transparent 34%),
        linear-gradient(rgba(244,248,251,.88), rgba(244,248,251,.92)),
        linear-gradient(135deg, #25272a, #1681c4);
    }
    .login-card {
      width: min(468px, 100%);
      background: var(--panel);
      border: 1px solid var(--line);
      border-top: 4px solid var(--brand-blue);
      border-radius: 8px;
      box-shadow: var(--shadow);
      padding: 28px;
    }
    .login-card h2 { margin: 18px 0 18px; font-size: 24px; }
    .login-card .brand { margin-bottom: 22px; }
    .login-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.45; }
    .login-card form { display: grid; gap: 13px; }
    .security-list { margin-top: 18px; display: grid; gap: 8px; color: #52616c; font-size: 12px; }
    .security-list div { display: flex; gap: 8px; align-items: center; }
    .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--green); flex: 0 0 auto; }
    input[readonly] { background: #f5f8fa; color: #41505a; }
    .modal {
      position: fixed;
      inset: 0;
      display: none;
      place-items: center;
      padding: 20px;
      background: rgba(10, 24, 31, .58);
      z-index: 50;
    }
    .modal.open { display: grid; }
    #confirmModal, #cancelReasonModal { z-index: 70; }
    .dialog {
      width: min(960px, 100%);
      max-height: min(820px, 92vh);
      overflow: auto;
      background: var(--panel);
      border-radius: 8px;
      box-shadow: var(--shadow);
      border: 1px solid var(--line);
    }
    .dialog-head, .dialog-foot {
      padding: 14px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      border-bottom: 1px solid var(--line);
    }
    .dialog-foot { border-top: 1px solid var(--line); border-bottom: 0; justify-content: flex-end; }
    .dialog h2 { margin: 0; font-size: 18px; }
    .confirm-dialog {
      width: min(420px, 100%);
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }
    .confirm-body {
      padding: 18px 18px 14px;
    }
    .confirm-body h3 {
      margin: 0;
      font-size: 18px;
      color: #17212b;
    }
    .confirm-body p {
      margin: 8px 0 0;
      color: #53616b;
      line-height: 1.45;
    }
    .confirm-body textarea {
      width: 100%;
      min-height: 92px;
      margin-top: 12px;
      resize: vertical;
    }
    .confirm-actions {
      display: flex;
      justify-content: flex-end;
      gap: 8px;
      padding: 12px 18px 16px;
      background: #fbfcfd;
      border-top: 1px solid var(--line);
    }
    .message-dialog {
      width: min(780px, 100%);
    }
    .message-template-toolbar {
      padding: 12px 16px;
      display: flex;
      justify-content: flex-end;
      border-bottom: 1px solid var(--line);
      background: #fbfcfd;
    }
    .message-template-grid {
      display: grid;
      grid-template-columns: minmax(180px, 0.65fr) minmax(260px, 1fr);
      gap: 10px;
      padding: 14px 16px;
      background: #fbfcfd;
      border-bottom: 1px solid var(--line);
    }
    .message-template-grid.hidden {
      display: none;
    }
    .message-template-grid .field {
      min-width: 0;
    }
    .message-template-grid textarea {
      min-height: 104px;
      resize: vertical;
    }
    .message-template-list {
      display: grid;
      gap: 8px;
      padding: 14px 16px 16px;
      max-height: 42vh;
      overflow: auto;
    }
    .message-template-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: var(--shadow-sm);
    }
    .message-template-card strong {
      display: block;
      color: var(--ink);
      font-size: 13px;
      margin-bottom: 4px;
    }
    .message-template-card p {
      margin: 0;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.35;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .message-template-actions {
      display: inline-flex;
      gap: 6px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
    .message-template-actions .btn {
      min-height: 32px;
      padding: 0 10px;
      border-radius: 8px;
      font-size: 12px;
    }
    .message-template-empty {
      padding: 14px;
      border: 1px dashed var(--line-strong);
      border-radius: 8px;
      color: var(--muted);
      background: #fff;
      text-align: center;
      font-size: 12px;
    }
    .info-list {
      display: grid;
      gap: 10px;
      margin-top: 14px;
    }
    .info-item {
      display: grid;
      gap: 4px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fbfcfd;
    }
    .info-item span {
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .info-item strong {
      color: var(--ink);
      font-size: 14px;
    }
    .form-grid {
      padding: 16px;
      display: grid;
      grid-template-columns: 120px 140px repeat(4, minmax(0, 1fr));
      gap: 12px 10px;
      align-items: start;
      background: #fbfcfd;
    }
    .form-grid .field { min-width: 0; }
    .span-2 { grid-column: span 2; }
    .span-3 { grid-column: span 3; }
    .span-6 { grid-column: span 6; }
    .form-grid textarea { min-height: 82px; background: #fff; }
    .form-grid input, .form-grid textarea { box-shadow: 0 1px 0 rgba(18,35,48,.03); }
    .form-grid input[readonly] { font-weight: 850; text-align: center; }
    .toast {
      position: fixed;
      right: 18px;
      bottom: 18px;
      background: var(--brand-black);
      color: #fff;
      padding: 12px 14px;
      border-radius: 8px;
      box-shadow: var(--shadow);
      display: none;
      z-index: 80;
    }
    .toast.show { display: block; }
    .notifications-panel {
      position: fixed;
      right: 18px;
      top: 18px;
      z-index: 90;
      width: min(420px, calc(100vw - 24px));
      max-height: calc(100vh - 36px);
      border: 1px solid #dbe4ee;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
      overflow: hidden;
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
    }
    .notifications-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 13px 14px;
      border-bottom: 1px solid #e5e7eb;
      background: #f8fafc;
    }
    .notifications-head strong {
      color: #0f172a;
      font-size: 14px;
      font-weight: 950;
    }
    .notifications-head button {
      width: 30px;
      height: 30px;
      border: 1px solid #dbe4ee;
      border-radius: 8px;
      background: #fff;
      color: #475569;
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
    }
    .notifications-list {
      overflow: auto;
      max-height: calc(100vh - 120px);
      padding: 8px;
      display: grid;
      gap: 8px;
      background: #fff;
    }
    .notification-item {
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      background: #fff;
      padding: 10px 11px;
      display: grid;
      gap: 6px;
    }
    .notification-item.unread {
      border-color: #93c5fd;
      background: #eff6ff;
      box-shadow: inset 3px 0 0 #2563eb;
    }
    .notification-item-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .notification-item-head strong {
      color: #0f172a;
      font-size: 13px;
      font-weight: 950;
    }
    .notification-item-head time {
      color: #64748b;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
    }
    .notification-item p {
      margin: 0;
      color: #334155;
      font-size: 12px;
      line-height: 1.4;
      word-break: break-word;
    }
    .notification-item > span {
      color: #64748b;
      font-size: 11px;
      font-weight: 900;
    }
    .notifications-empty {
      padding: 22px;
      color: #64748b;
      font-size: 13px;
      font-weight: 800;
      text-align: center;
      background: #fff;
    }
    .lead-notice {
      position: fixed;
      right: 18px;
      bottom: 76px;
      width: min(360px, calc(100vw - 36px));
      padding: 12px;
      border: 1px solid #f4bf7a;
      border-radius: 8px;
      background: #fff8ec;
      box-shadow: var(--shadow);
      display: none;
      align-items: center;
      gap: 12px;
      z-index: 82;
    }
    .lead-notice.show { display: flex; }
    .lead-notice-text {
      min-width: 0;
      display: grid;
      gap: 2px;
      flex: 1;
    }
    .lead-notice-title {
      color: #7c3f08;
      font-size: 13px;
      font-weight: 900;
    }
    .lead-notice-detail {
      color: #7c4a17;
      font-size: 12px;
      line-height: 1.35;
    }
    .lead-notice-actions {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex: 0 0 auto;
    }
    .lead-notice-button,
    .lead-notice-close {
      min-height: 32px;
      border: 1px solid #e79033;
      border-radius: 8px;
      background: #fff;
      color: #8a4b0f;
      font-size: 12px;
      font-weight: 850;
      cursor: pointer;
    }
    .lead-notice-button { padding: 0 10px; }
    .lead-notice-close {
      width: 32px;
      padding: 0;
      font-size: 18px;
      line-height: 1;
    }
    .lead-notice-button:hover,
    .lead-notice-close:hover {
      background: #ffe9c7;
    }
    .hidden { display: none !important; }

    @media (max-width: 1050px) {
      .shell { grid-template-columns: 1fr; }
      .sidebar { position: sticky; display: flex; padding: 7px 14px 6px; }
      .brand { margin-bottom: 0; }
      .side-note { display: none; }
      .toolbar { grid-template-columns: 1fr 1fr; }
      .accounting-toolbar { grid-template-columns: 1fr; }
      .toolbar-actions { grid-column: 1 / -1; justify-content: space-between; }
      .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 680px) {
      body { background: #f5f8fa; }
      input,
      select,
      textarea {
        font-size: 16px;
      }
      label,
      .field label {
        font-size: 13px;
      }
      .btn,
      .status-btn,
      .mini-btn,
      .phone-action,
      .today-call-link,
      .today-calls-toggle,
      .filter-panel-toggle,
      .message-template-btn,
      .reminder-btn {
        touch-action: manipulation;
      }
      .sidebar {
        padding: 4px 8px 4px;
        gap: 3px;
        align-items: stretch;
      }
      .sidebar .brand {
        width: 100%;
        justify-content: flex-start;
        gap: 8px;
      }
      .sidebar .mark { width: 104px; height: 34px; }
      .header-date {
        min-height: 28px;
        padding: 4px 8px;
        font-size: 10.5px;
      }
      .nav {
        width: 100%;
        display: grid;
        grid-template-columns: 36px repeat(4, minmax(0, 1fr));
        gap: 5px;
        overflow: visible;
        padding: 0;
      }
      .nav button {
        min-width: 0;
        min-height: 36px;
        padding: 3px;
        flex-direction: column;
        gap: 2px;
        font-size: 9.5px;
        line-height: 1.1;
      }
      .nav button svg { width: 15px; height: 15px; }
      .topbar {
        height: auto;
        padding: 14px 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
      }
      h1 { font-size: 20px; }
      .content { padding: 8px 10px 10px; gap: 8px; }
      .stats, .toolbar, .form-grid { grid-template-columns: 1fr; }
      .span-2, .span-3, .span-6 { grid-column: auto; }
      .top-actions { width: 100%; justify-content: stretch; }
      .top-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0 9px;
        font-size: 12px;
      }
      .stat { padding: 10px 12px; }
      .stat strong { font-size: 23px; }
      .filter-panel-body {
        grid-template-columns: 1fr;
        grid-template-areas:
          "status"
          "search"
          "actions";
        gap: 8px;
      }
      .filter-search input { min-height: 36px; }
      .filter-status {
        justify-content: center;
        flex-wrap: wrap;
      }
      .toolbar-actions {
        align-items: center;
        justify-content: space-between;
        gap: 8px;
      }
      .toolbar-actions .btn { min-height: 34px; padding: 0 10px; }
      .accounting-toolbar { padding: 8px; }
      .accounting-controls {
        grid-template-columns: minmax(62px, .6fr) minmax(88px, 1fr) minmax(108px, 1fr);
        gap: 6px;
      }
      .accounting-controls select,
      .accounting-controls button {
        min-height: 34px;
        padding-left: 7px;
        padding-right: 7px;
        font-size: 10.5px;
      }
      #toggleYearlySummaryBtn {
        gap: 5px;
        letter-spacing: 0;
      }
      #toggleYearlySummaryBtn svg {
        width: 14px;
        height: 14px;
      }
      .today-calls {
        gap: 7px;
        padding: 9px 10px;
      }
      .today-calls-head {
        align-items: center;
        gap: 6px;
      }
      .today-calls-title {
        gap: 8px;
      }
      .today-calls-head strong {
        max-width: 230px;
        font-size: 13px;
        line-height: 1.2;
      }
      .today-calls-summary {
        flex: 0 0 auto;
        padding-top: 1px;
      }
      .today-call-list {
        grid-template-columns: 1fr;
        max-height: 212px;
        overflow: auto;
        padding-right: 1px;
      }
      .today-call-group-title {
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 2px 0;
        background: #f7fafc;
      }
      .today-call-row {
        grid-template-columns: 30px minmax(0, 1fr) minmax(146px, auto);
        grid-template-areas:
          "id person action"
          "id date action"
          "id count action";
        align-items: center;
        gap: 3px 8px;
        padding: 8px;
      }
      .today-call-id {
        grid-area: id;
        align-self: center;
      }
      .today-call-person {
        grid-area: person;
      }
      .today-call-main .lead,
      .today-call-person .muted {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .today-call-date {
        grid-area: date;
        justify-self: start;
        text-align: left;
        font-size: 11.5px;
      }
      .today-call-count {
        grid-area: count;
        justify-self: start;
        text-align: left;
        font-size: 11.5px;
      }
      .today-call-actions {
        grid-area: action;
        justify-self: end;
        align-self: center;
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .today-call-links {
        gap: 5px;
      }
      .today-call-link {
        width: 34px;
        height: 34px;
        border-radius: 11px;
      }
      .today-call-link svg {
        width: 18px;
        height: 18px;
      }
      .today-call-done {
        min-height: 38px;
        padding: 0 12px;
        font-size: 12.5px;
      }
      .note-pair {
        grid-template-columns: 40px 1fr;
        grid-template-areas:
          "message request"
          "message notes";
      }
      .note-pair .message-template-btn { grid-area: message; width: 40px; min-height: 100%; }
      .note-pair .inline-note:first-of-type { grid-area: request; }
      .note-pair .inline-note:last-child { grid-area: notes; }
      .message-template-grid {
        grid-template-columns: 1fr;
      }
      .message-template-card {
        grid-template-columns: 1fr;
      }
      .message-template-actions {
        justify-content: stretch;
      }
      .message-template-actions .btn {
        flex: 1 1 0;
      }
      .toolbar { padding: 10px; }
      .filter-panel {
        padding: 0;
        overflow: hidden;
      }
      .filter-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 9px 10px;
        background: #f7fafc;
        border-bottom: 1px solid var(--line);
      }
      .filter-panel-head strong {
        color: #40505b;
        font-size: 13px;
      }
      .filter-panel.collapsed .filter-panel-body {
        display: none;
      }
      .filter-panel .filter-panel-body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
      }
      .table-scroll { max-height: calc(100vh - 360px); min-height: 280px; }
      .login { padding: 16px; }
      .login-card {
        width: 100%;
        padding: 22px;
      }
      .login-card .mark { width: 170px; height: 58px; }

      /* === Yillik ozet kartlari: tasmasin === */
      #yearlySummaryCards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
      }
      #yearlySummaryCards > div { padding: 12px !important; gap: 10px !important; }
      #yearlySummaryCards > div > div:first-child { width: 38px !important; height: 38px !important; }
      #yearlySummaryCards > div > div:first-child svg { width: 19px !important; height: 19px !important; }
      #yearlySummaryCards span[id^="yearSummary"] { font-size: 17px !important; }
      #yearSummaryProfitCard { grid-column: 1 / -1; }

      /* === Musteri takip tablosu: mobilde kusursuz (sutun duzeni korunur) === */
      .table-scroll { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
      /* Daha kompakt sutun genislikleri — yatay kaydirma mesafesi azalir */
      .main table th:nth-child(1), .main table td:nth-child(1) { width: 44px; }
      .main table th:nth-child(2), .main table td:nth-child(2) { width: 54px; }
      .main table th:nth-child(3), .main table td:nth-child(3) { width: 142px; }
      .main table th:nth-child(4), .main table td:nth-child(4) { width: 280px; }
      .main table th:nth-child(5), .main table td:nth-child(5) { width: 96px; }
      .main table th:nth-child(6), .main table td:nth-child(6) { width: 150px; }
      .main table th:nth-child(7), .main table td:nth-child(7) { width: 90px; }
      .main table th:nth-child(8), .main table td:nth-child(8) { width: 124px; }
      .main table th:nth-child(9), .main table td:nth-child(9) { width: 92px; }
      .main table th, .main table td { padding: 9px 6px; }
      /* ID/secim sutunu kayarken sabit kalsin — yon kaybolmasin */
      .main table th:nth-child(1), .main table td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 3;
        background: #fff;
        box-shadow: 2px 0 4px -2px rgba(0,0,0,0.12);
      }
      .main table thead th:nth-child(1) { z-index: 4; background: #F9FAFB; }
      tbody tr.success-row td:nth-child(1) { background: #F0FDF4; }
      tbody tr.passive-row td:nth-child(1) { background: #F9FAFB; }
      .status-divider td { position: static !important; box-shadow: none !important; }
      /* Talep/Gorusme: iki not kutusu okunakli yukseklikte */
      .note-pair .inline-note { min-height: 64px; font-size: 13px; }
      /* Telefon hucresi dikey, butonlar erisilebilir */
      .phone-actions { gap: 6px; }
      .phone-action { width: 32px; height: 32px; }
      /* Durum/islem butonlari dokunma boyutu */
      .table-status-actions .status-btn { padding: 5px 7px; font-size: 11px; }
      .row-actions { gap: 5px; flex-wrap: wrap; justify-content: center; }
      .row-actions .btn { width: 34px; height: 34px; }
    }

    .website-workspace { gap: 14px; min-width: 0; overflow: hidden; }
    .website-toolbar {
      grid-template-columns: minmax(0, 1fr);
      align-items: center;
      gap: 12px;
      padding: 8px 10px;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    }
    .website-toolbar .toolbar-actions {
      flex-wrap: wrap;
      justify-content: flex-end;
      white-space: normal;
      gap: 8px;
    }
    .website-toolbar #websiteSummary {
      min-height: 36px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid #dbe4ee;
      border-radius: 999px;
      background: #f8fafc;
      color: #334155;
      padding: 0 12px;
      font-size: 12.5px;
      font-weight: 900;
      text-align: center;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }
    .website-toolbar .btn {
      min-height: 38px;
      border-radius: 10px;
      padding: 0 16px;
      font-size: 12.5px;
      font-weight: 900;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    }
    .website-toolbar .btn.primary {
      box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    }
    .website-board {
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    }
    .website-group-tabs {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      overflow: visible;
      padding: 2px 1px 0;
    }
    .website-group-tab {
      flex: 0 1 auto;
      max-width: min(260px, 100%);
      min-width: 0;
      min-height: 34px;
      border: 1px solid #dbe4ee;
      border-radius: 999px;
      background: #fff;
      color: #334155;
      padding: 0 12px;
      font: inherit;
      font-size: 12.5px;
      font-weight: 800;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .website-group-tab span {
      min-width: 22px;
      border-radius: 999px;
      background: #f1f5f9;
      color: #64748b;
      padding: 2px 7px;
      font-size: 11px;
      font-weight: 900;
      text-align: center;
    }
    .website-group-tab:hover,
    .website-group-tab:focus {
      border-color: #38bdf8;
      outline: none;
    }
    .website-group-tab.active {
      border-color: #0284c7;
      background: #0284c7;
      color: #fff;
    }
    .website-group-tab.active span {
      background: rgba(255, 255, 255, 0.2);
      color: #fff;
    }
    .website-finance-summary {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 10px;
      min-width: 0;
    }
    .website-finance-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-width: 0;
      border: 1px solid #dbe4ee;
      border-radius: 8px;
      background: #fff;
      padding: 10px 12px;
      box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
      overflow: hidden;
    }
    .website-finance-card span {
      color: #64748b;
      font-size: 12px;
      font-weight: 900;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .website-finance-card strong {
      color: #0f172a;
      font-size: 15px;
      font-weight: 950;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }
    .website-finance-card.danger {
      border-color: #fecaca;
      background: #fef2f2;
    }
    .website-finance-card.danger strong {
      color: #991b1b;
    }
    .website-alert {
      display: grid;
      gap: 8px;
      border: 1px solid #fed7aa;
      border-left: 4px solid #f97316;
      border-radius: 10px;
      background: #fff7ed;
      color: #7c2d12;
      padding: 10px 12px;
      box-shadow: 0 8px 20px rgba(249, 115, 22, 0.08);
      overflow: hidden;
    }
    .website-alert-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      min-width: 0;
    }
    .website-alert-head strong {
      color: #9a3412;
      font-size: 13px;
      font-weight: 900;
      white-space: nowrap;
    }
    .website-alert-head span {
      color: #9a3412;
      font-size: 12px;
      font-weight: 800;
      text-align: right;
    }
    .website-alert-list {
      display: flex;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 6px;
      overflow: visible;
      padding-bottom: 0;
    }
    .website-alert-pill,
    .website-alert-more {
      flex: 1 1 220px;
      min-width: 0;
      max-width: 100%;
      border: 1px solid #fdba74;
      border-radius: 999px;
      background: #ffedd5;
      color: #9a3412;
      padding: 5px 9px;
      font-size: 11.5px;
      font-weight: 900;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .website-alert-pill.expired {
      border-color: #fecaca;
      background: #fee2e2;
      color: #991b1b;
    }
    .website-alert-more {
      border-color: #e2e8f0;
      background: #fff;
      color: #475569;
    }
    .website-table-scroll {
      overflow: auto;
      max-height: calc(100vh - 210px);
      min-height: 360px;
      max-width: 100%;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior-x: contain;
      background: #f8fafc;
    }
    .website-table {
      min-width: 2340px;
      width: 100%;
      table-layout: fixed;
      border-collapse: separate;
      border-spacing: 0;
    }
    .website-table th {
      position: sticky;
      top: 0;
      z-index: 2;
      background: #111827;
      color: #f9fafb;
      border-bottom: 1px solid #0f172a;
      border-right: 1px solid rgba(255, 255, 255, 0.12);
      padding: 8px 7px;
      font-size: 10px;
      letter-spacing: 0.04em;
      text-align: center;
      text-transform: uppercase;
      white-space: nowrap;
    }
    .website-table th:nth-child(1), .website-table td:nth-child(1) { width: 165px; }
    .website-table th:nth-child(2), .website-table td:nth-child(2) { width: 205px; }
    .website-table th:nth-child(3), .website-table td:nth-child(3) { width: 280px; }
    .website-table th:nth-child(4), .website-table td:nth-child(4) { width: 110px; }
    .website-table th:nth-child(5), .website-table td:nth-child(5) { width: 125px; }
    .website-table th:nth-child(6), .website-table td:nth-child(6),
    .website-table th:nth-child(8), .website-table td:nth-child(8) { width: 138px; }
    .website-table th:nth-child(7), .website-table td:nth-child(7),
    .website-table th:nth-child(9), .website-table td:nth-child(9) { width: 105px; }
    .website-table th:nth-child(10), .website-table td:nth-child(10),
    .website-table th:nth-child(11), .website-table td:nth-child(11) { width: 235px; }
    .website-table th:nth-child(12), .website-table td:nth-child(12) { width: 120px; }
    .website-table th:nth-child(13), .website-table td:nth-child(13) { width: 115px; }
    .website-table th:nth-child(14), .website-table td:nth-child(14) { width: 220px; }
    .website-table th:nth-child(15), .website-table td:nth-child(15) { width: 54px; }
    .website-table td {
      border-bottom: 1px solid #e5e7eb;
      border-right: 1px solid #edf2f7;
      padding: 3px;
      background: #fff;
      position: relative;
      vertical-align: middle;
    }
    .website-data-row.website-row-odd td { background: #fff; }
    .website-data-row.website-row-even td { background: #fff8e8; }
    .website-data-row:hover td { background: #eef6ff; }
    .website-alert-record td { border-bottom-color: #fed7aa; }
    .website-alert-record td:first-child {
      box-shadow: inset 3px 0 0 #f97316;
    }
    .website-draft-record td {
      background: #eff6ff !important;
      border-bottom-color: #bfdbfe;
    }
    .website-draft-record td:first-child {
      box-shadow: inset 3px 0 0 #0284c7;
    }
    .website-group-row td,
    .website-table tr.website-group-row:nth-child(even) td,
    .website-table tr.website-group-row:hover td {
      background: #e0f2fe;
      border-top: 1px solid #bae6fd;
      border-bottom: 1px solid #bae6fd;
      padding: 6px 10px;
    }
    .website-group-head {
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }
    .website-group-input {
      width: min(360px, 100%);
      min-width: 130px;
      border: 1px solid transparent;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.74);
      color: #0f172a;
      padding: 7px 9px;
      font: inherit;
      font-size: 13px;
      font-weight: 900;
      outline: none;
    }
    .website-group-input:focus {
      background: #fff;
      border-color: #0284c7;
      box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.14);
    }
    .website-group-head span {
      color: #0369a1;
      font-size: 12px;
      font-weight: 800;
      white-space: nowrap;
    }
    .website-group-price {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 32px;
      border: 1px solid #bae6fd;
      border-radius: 8px;
      background: rgba(255, 255, 255, 0.78);
      padding: 0 7px;
      white-space: nowrap;
    }
    .website-group-price span {
      color: #0369a1;
      font-size: 11px;
      font-weight: 900;
      text-transform: uppercase;
    }
    .website-group-price input {
      width: 92px;
      min-height: 24px;
      border: 1px solid transparent;
      border-radius: 6px;
      background: transparent;
      color: #0f766e;
      font: inherit;
      font-size: 12px;
      font-weight: 900;
      text-align: right;
      outline: none;
      font-variant-numeric: tabular-nums;
    }
    .website-group-price input:focus {
      background: #fff;
      border-color: #0284c7;
      box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.14);
    }
    .website-group-money {
      border-radius: 999px;
      background: #ecfdf5;
      color: #047857 !important;
      padding: 5px 9px;
      font-size: 11px !important;
      font-weight: 900 !important;
      white-space: nowrap;
    }
    .website-group-add {
      margin-left: auto;
      border: 1px solid #0284c7;
      border-radius: 8px;
      background: #0284c7;
      color: #fff;
      min-height: 32px;
      padding: 0 11px;
      font: inherit;
      font-size: 12px;
      font-weight: 800;
      cursor: pointer;
    }
    .website-group-add:hover,
    .website-group-add:focus {
      background: #0369a1;
      outline: none;
    }
    .website-canceled-section td,
    .website-table tr.website-canceled-section:nth-child(even) td,
    .website-table tr.website-canceled-section:hover td {
      background: #f1f5f9;
      border-top: 2px solid #cbd5e1;
      border-bottom: 1px solid #cbd5e1;
      padding: 8px 10px;
    }
    .website-canceled-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: #475569;
    }
    .website-canceled-head strong {
      font-size: 13px;
      font-weight: 900;
    }
    .website-canceled-head span {
      font-size: 12px;
      font-weight: 800;
    }
    .website-canceled-record td {
      background: #f8fafc !important;
      opacity: 0.78;
    }
    .website-canceled-record .website-input,
    .website-canceled-record .website-date-edit {
      color: #64748b;
    }
    .website-input {
      width: 100%;
      min-width: 0;
      min-height: 30px;
      border: 1px solid transparent;
      border-radius: 6px;
      background: transparent;
      padding: 5px 6px;
      color: var(--ink);
      font: inherit;
      font-size: 11.5px;
      outline: none;
      text-overflow: ellipsis;
    }
    .website-input:focus {
      background: #fff;
      border-color: #38bdf8;
      box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.16);
    }
    .website-input.owner:focus,
    .website-input.provider:focus,
    .website-input.notes:focus,
    .website-input.domain:focus {
      position: absolute;
      left: 3px;
      top: 3px;
      z-index: 20;
      width: min(560px, calc(100vw - 48px));
      background: #fff;
      border-color: #0284c7;
      box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    }
    .website-input.domain:focus {
      text-align: left;
    }
    .website-input.domain {
      color: var(--brand-blue);
      font-weight: 800;
      text-decoration: underline;
      text-underline-offset: 3px;
      text-align: center;
    }
    .website-domain-cell {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 28px;
      align-items: center;
      gap: 3px;
    }
    .website-domain-cell .website-input.domain:focus {
      width: min(520px, calc(100vw - 84px));
    }
    .website-site-btn {
      width: 28px;
      height: 28px;
      border: 1px solid #dbe4ee;
      border-radius: 7px;
      display: grid;
      place-items: center;
      color: #0284c7;
      background: #fff;
      text-decoration: none;
    }
    .website-site-btn:hover,
    .website-site-btn:focus {
      border-color: currentColor;
      background: #f8fafc;
      outline: none;
    }
    .website-site-btn.disabled {
      opacity: 0.35;
      pointer-events: none;
    }
    .website-site-btn svg {
      width: 14px;
      height: 14px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .website-phone-cell {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 28px 28px;
      align-items: center;
      gap: 3px;
    }
    .website-phone-cell .website-input {
      min-height: 30px;
    }
    .website-phone-btn {
      width: 28px;
      height: 28px;
      border: 1px solid #dbe4ee;
      border-radius: 7px;
      display: grid;
      place-items: center;
      color: #0284c7;
      background: #fff;
      text-decoration: none;
    }
    .website-phone-btn.whatsapp {
      color: #16a34a;
    }
    .website-phone-btn:hover,
    .website-phone-btn:focus {
      border-color: currentColor;
      background: #f8fafc;
      outline: none;
    }
    .website-phone-btn.disabled {
      opacity: 0.35;
      pointer-events: none;
    }
    .website-phone-btn svg {
      width: 14px;
      height: 14px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .website-input.compact,
    .website-input.date,
    .website-input.price {
      text-align: center;
      font-variant-numeric: tabular-nums;
      font-weight: 700;
    }
    .website-input.price {
      color: #0f766e;
      font-weight: 900;
    }
    .website-health {
      display: flex;
      min-height: 28px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      padding: 0 8px;
      font-size: 11px;
      font-weight: 900;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      font-variant-numeric: tabular-nums;
    }
    .website-health.up {
      background: #dcfce7;
      color: #166534;
    }
    .website-health.down {
      background: #fee2e2;
      color: #991b1b;
    }
    .website-health.unknown {
      background: #f1f5f9;
      color: #64748b;
    }
    .website-date-cell {
      position: relative;
      padding: 0;
      text-align: center;
    }
    .website-date-edit {
      width: 28px;
      min-width: 28px;
      height: 28px;
      min-height: 28px;
      margin: 0 auto;
      border: 1px solid transparent;
      border-radius: 6px;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      font: inherit;
      font-size: 12.5px;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }
    .website-date-edit svg {
      width: 15px;
      height: 15px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
      color: var(--brand-blue);
    }
    .website-date-edit:hover,
    .website-date-edit:focus {
      background: #fff;
      border-color: #38bdf8;
      box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.16);
      outline: none;
    }
    .website-date-hidden {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 16px;
      height: 16px;
      transform: translate(-50%, -50%);
      opacity: 0.01;
      pointer-events: none;
    }
    .website-days {
      display: flex;
      min-height: 30px;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      font-weight: 900;
      font-size: 11.5px;
      font-variant-numeric: tabular-nums;
      color: #111827;
      margin: 0 3px;
    }
    .website-days.ok { background: #dcfce7; color: #166534; }
    .website-days.soon { background: #ffedd5; color: #9a3412; }
    .website-days.urgent,
    .website-days.expired { background: #fee2e2; color: #991b1b; }
    .website-days.empty { background: #f3f4f6; color: #6b7280; }
    .website-delete-btn,
    .website-restore-btn {
      width: 34px;
      min-height: 34px;
      margin: 0 auto;
      border: 1px solid transparent;
      border-radius: 8px;
      background: transparent;
      color: var(--brand-red);
      cursor: pointer;
      display: grid;
      place-items: center;
    }
    .website-delete-btn svg,
    .website-restore-btn svg {
      width: 16px;
      height: 16px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .website-delete-btn:hover,
    .website-delete-btn:focus {
      background: #fef2f2;
      border-color: #fecaca;
      outline: none;
    }
    .website-restore-btn {
      color: #047857;
    }
    .website-restore-btn:hover,
    .website-restore-btn:focus {
      background: #ecfdf5;
      border-color: #a7f3d0;
      outline: none;
    }
    @media (max-width: 1100px) {
      .website-table-scroll { max-height: calc(100vh - 230px); min-height: 330px; }
    }
    @media (max-width: 680px) {
      .website-workspace { gap: 10px; }
      .website-toolbar { grid-template-columns: 1fr; }
      .website-toolbar .toolbar-actions {
        justify-content: stretch;
        gap: 8px;
      }
      .website-toolbar #websiteSummary {
        flex: 1 1 100%;
        justify-content: center;
        text-align: center;
      }
      .website-toolbar .btn {
        flex: 1 1 calc(50% - 4px);
        padding: 0 10px;
      }
      .website-input { font-size: 12px; }
      .website-finance-summary {
        grid-template-columns: 1fr;
      }
      .website-finance-card {
        min-height: 42px;
      }
      .website-alert-head {
        align-items: flex-start;
        flex-direction: column;
      }
      .website-alert-head span { text-align: left; }
      .website-group-tabs {
        gap: 6px;
        padding-bottom: 0;
      }
      .website-group-tab {
        flex: 1 1 calc(50% - 3px);
        justify-content: space-between;
        max-width: none;
        padding: 0 10px;
        font-size: 12px;
      }
      .website-alert-list {
        gap: 5px;
      }
      .website-alert-pill,
      .website-alert-more {
        flex-basis: 100%;
        font-size: 11px;
      }
      .website-group-head {
        flex-wrap: wrap;
      }
      .website-group-input {
        flex: 1 1 100%;
      }
      .website-group-price input {
        width: 120px;
      }
      .website-group-add {
        margin-left: 0;
      }
    }
    
    /* Premium Accounting Styles */
    .acc-table { table-layout: auto !important; border-collapse: separate; border-spacing: 0; min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
    .acc-table th { background: #f8fafc; color: #475569; text-align: center; font-size: 10.5px; padding: 10px 5px; border-bottom: 2px solid var(--line-strong); border-right: 1px solid var(--line); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
    .acc-table td { text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 5px; font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--ink); white-space: normal; word-break: break-word; transition: background 0.15s; }
    .acc-table .month-columns th:nth-child(2),
    .acc-table .month-content > tr:not(.summary-row) > td:nth-child(2) {
      width: 150px;
      min-width: 150px;
    }
    .acc-table .month-columns th:nth-child(3),
    .acc-table .month-content > tr:not(.summary-row) > td:nth-child(3) {
      width: 170px;
      min-width: 170px;
    }
    .acc-table tbody tr:hover td { background: #f1f5f9; }
    .acc-table .month-header { background: #e0f2fe; font-size: 14px; font-weight: 800; color: #0284c7; text-align: center; padding: 16px; border-bottom: 2px solid #bae6fd; letter-spacing: 0.05em; }
    
    /* Summary Row Premium Styling */
    .acc-table .month-columns th { background: #f8fafc; color: #475569; font-size: 11px; padding: 12px 10px; border-bottom: 2px solid var(--line-strong); text-transform: uppercase; font-weight: 700; }
    .acc-table .month-header-row:hover .month-header { background: #bae6fd; }
    
    .acc-table .summary-row { background: #f8fafc; border-top: 2px solid var(--line-strong); }
    .acc-table .summary-row td { padding: 16px; border-right: none !important; border-bottom: 2px solid var(--line-strong); }
    .acc-table tr.project-completed-row td:not(.expense-col) { background: #f0fdf4; }
    .acc-table tr.project-completed-row:hover td:not(.expense-col) { background: #dcfce7; }
    .acc-table tr.project-completed-row input,
    .acc-table tr.project-completed-row textarea {
      border-color: #bbf7d0;
      background: #f7fef9;
      color: #14532d;
    }
    .sum-kpi-container { display: flex; justify-content: flex-end; align-items: stretch; gap: 12px; flex-wrap: wrap; padding: 4px 8px; }
    .sum-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; min-width: 180px; box-shadow: 0 2px 6px rgba(0,0,0,0.02); }
    .sum-icon-wrap { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .sum-label { font-size: 10px; text-transform: uppercase; color: #64748b; font-weight: 700; margin-bottom: 2px; letter-spacing: 0.5px; }
    .sum-val { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1; color: #0f172a; }
    .sum-ciro { color: #0f172a; }
    .sum-freelance { color: #0f172a; }
    .sum-kar { color: #fff; }

    .acc-table .expense-col { padding: 0; background: #fffafb; vertical-align: top; border-right: none !important; }
    .expense-list { display: flex; flex-direction: column; width: 100%; }
    .expense-item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 12px; align-items: center; }
    .expense-item:last-child { border-bottom: none; }
    .expense-name { color: #64748b; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .expense-amount { font-weight: 700; color: #e11d48; font-variant-numeric: tabular-nums; }
    .expense-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; flex: 0 0 auto; }
    .expense-action-btn {
      width: 22px;
      height: 22px;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      color: var(--brand-blue);
      cursor: pointer;
      transition: all 0.15s;
    }
    .expense-action-btn:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
    .expense-action-btn.danger { color: var(--red); border-color: #e1aaa7; background: var(--red-soft); }
    .expense-action-btn.danger:hover { background: #fee2e2; border-color: #ef4444; }
    .expense-action-btn svg {
      width: 13px;
      height: 13px;
      stroke: currentColor;
      stroke-width: 2.3;
      fill: none;
    }
    .expense-item.paid { background: #f0fdf4; }
    .expense-item.paid .expense-name { color: #94a3b8; }
    .expense-item.paid .expense-amount { color: #94a3b8; }
    .paid-badge { font-size: 9px; font-weight: 800; color: #16a34a; background: #dcfce7; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.03em; }
    .expense-tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #d1d5db; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; transition: all 0.15s; }
    .expense-tick:hover { border-color: #16a34a; background: #f0fdf4; }
    .expense-tick.checked { border-color: #16a34a; background: #16a34a; color: #fff; }
    .acc-table .profit-col { font-weight: 800; color: #10b981; }
    .project-profit-cell {
      min-width: 118px;
      vertical-align: middle;
    }
    .project-profit-inner {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      width: 100%;
    }
    .project-row-actions {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      flex: 0 0 auto;
    }
    .project-complete-btn {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 2px solid #86efac;
      background: #fff;
      color: #16a34a;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 900;
      line-height: 1;
      transition: all 0.15s;
    }
    .project-complete-btn:hover,
    .project-complete-btn.checked {
      border-color: #16a34a;
      background: #16a34a;
      color: #fff;
    }
    .project-docs-cell {
      min-width: 170px;
      max-width: 210px;
      text-align: left;
      vertical-align: top;
      white-space: normal !important;
    }
    .project-docs {
      display: grid;
      gap: 6px;
      align-content: start;
    }
    .doc-add-btn {
      min-height: 30px;
      border: 1px dashed #93c5fd;
      border-radius: 7px;
      background: #eff6ff;
      color: #1d4ed8;
      cursor: pointer;
      font-size: 11px;
      font-weight: 850;
      letter-spacing: 0.02em;
      padding: 0 9px;
      width: 100%;
      transition: all 0.15s;
    }
    .doc-add-btn:hover {
      border-color: #2563eb;
      background: #dbeafe;
    }
    .project-doc-list {
      display: grid;
      gap: 4px;
      min-width: 0;
    }
    .project-doc-chip {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 20px;
      align-items: center;
      gap: 4px;
      min-height: 25px;
      padding: 2px 3px 2px 7px;
      border: 1px solid #dbeafe;
      border-radius: 7px;
      background: #fff;
    }
    .project-doc-chip a {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      color: #1e40af;
      text-decoration: none;
      font-size: 11px;
      font-weight: 750;
    }
    .project-doc-chip a:hover { text-decoration: underline; }
    .doc-remove-btn {
      width: 20px;
      height: 20px;
      border: 0;
      border-radius: 50%;
      background: #fee2e2;
      color: #dc2626;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      line-height: 1;
      font-weight: 900;
    }
    .doc-remove-btn:hover { background: #fecaca; }
    .project-doc-empty {
      color: #94a3b8;
      font-size: 11px;
      text-align: center;
    }
    .acc-table td.clickable { cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; color: var(--brand-blue); }
    .acc-table td.clickable:hover { color: #000; background: #e2e8f0; }
    .acc-table input { width: 100%; min-width: 0; border: 1px solid transparent; background: transparent; padding: 4px 2px; font-size: 12.5px; outline: none; transition: all 0.2s; border-radius: 4px; font-family: inherit; }
    .acc-table input:hover { border-color: #cbd5e1; }
    .acc-table input:focus { border-color: #0284c7; background: #fff; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.1); }
    .acc-table .accounting-phone-cell {
      width: 170px;
      min-width: 170px;
      max-width: 170px;
      padding-left: 7px;
      padding-right: 7px;
    }
    .accounting-phone-control {
      display: grid;
      grid-template-columns: 1fr;
      gap: 5px;
      align-items: start;
    }
    .accounting-phone-control input {
      min-width: 0;
      height: 30px;
      padding: 4px 7px;
      text-align: left;
    }
    .accounting-phone-actions {
      display: inline-flex;
      gap: 4px;
      align-items: center;
      justify-content: center;
    }
    .accounting-phone-actions .phone-action {
      width: 26px;
      height: 26px;
      border-radius: 7px;
      box-shadow: none;
    }
    .accounting-phone-actions .phone-action svg {
      width: 14px;
      height: 14px;
    }
    .accounting-phone-actions .phone-action.disabled {
      opacity: 0.4;
      pointer-events: none;
    }
    .acc-table .project-description-cell {
      min-width: 330px;
      max-width: 520px;
      white-space: normal;
      vertical-align: top;
    }
    .acc-table .project-description-input {
      width: 100%;
      min-height: 34px;
      height: 34px;
      border: 1px solid transparent;
      background: transparent;
      padding: 7px 8px;
      font-size: 13px;
      line-height: 1.35;
      outline: none;
      resize: none;
      overflow: hidden;
      border-radius: 4px;
      font-family: inherit;
      white-space: pre-wrap;
      word-break: break-word;
      transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    }
    .acc-table .project-description-input:hover { border-color: #cbd5e1; }
    .acc-table .project-description-input:focus { border-color: #0284c7; background: #fff; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.1); }
    .del-proj-btn { background: #fee2e2; color: #ef4444; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 10px; cursor: pointer; opacity: 0; transition: opacity 0.2s; display: inline-flex; align-items: center; justify-content: center; font-weight: bold; }
    .acc-table tr:hover .del-proj-btn,
    .project-completed-row .del-proj-btn { opacity: 1; }
    .del-proj-btn:hover { background: #fca5a5; color: #b91c1c; }
    .acc-table .profit-col { font-weight: 800; color: #059669; }
    .acc-table .expense-col { padding: 0; text-align: left; background: #fafafa; border-right: none; vertical-align: top; }
    .acc-table tbody tr:hover td.expense-col,
    .acc-table tr.project-completed-row td.expense-col,
    .acc-table tr.project-completed-row:hover td.expense-col {
      background: #fafafa;
    }
    .expense-list { display: flex; flex-direction: column; width: 100%; height: 100%; }
    .expense-item { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: center; }
    .expense-name { color: var(--muted); font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .expense-amount { font-weight: 700; color: var(--brand-red); font-variant-numeric: tabular-nums; }
    .expense-summary { background: #FF0000; }
    .expense-summary .expense-name { color: #fff; font-weight: 800; }
    .expense-summary .expense-amount { color: #fff; font-weight: 800; }
    .iban-workspace {
      display: grid;
      gap: 12px;
    }
    .iban-panel {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
    }
    .iban-toolbar {
      grid-template-columns: minmax(280px, 1fr) auto;
      align-items: center;
    }
    .iban-form {
      display: grid;
      grid-template-columns: minmax(160px, 220px) minmax(180px, 260px) minmax(280px, 1fr) auto;
      gap: 10px;
      align-items: end;
      padding: 14px;
      background: #fbfcfd;
      border-bottom: 1px solid var(--line);
    }
    .iban-list {
      display: grid;
      gap: 0;
    }
    .iban-row {
      display: grid;
      grid-template-columns: minmax(160px, 220px) minmax(180px, 260px) minmax(280px, 1fr) auto;
      gap: 10px;
      align-items: center;
      padding: 10px 14px;
      border-bottom: 1px solid var(--line);
    }
    .iban-row:last-child { border-bottom: 0; }
    .iban-readonly {
      width: 100%;
      min-height: 38px;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      background: #fff;
      padding: 0 10px;
      color: var(--ink);
      font-weight: 650;
      font-size: 13px;
    }
    .iban-readonly.iban-number {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      letter-spacing: 0.02em;
    }
    .iban-readonly.iban-title {
      background: #f8fafc;
      color: #334155;
      font-weight: 850;
    }
    .iban-actions {
      display: grid;
      grid-template-columns: minmax(118px, 1fr) minmax(126px, 1fr) 42px 42px;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
    }
    .copy-mini-btn {
      min-height: 42px;
      min-width: 0;
      border: 1px solid #bfdbfe;
      border-radius: 7px;
      background: #eff6ff;
      color: #1d4ed8;
      cursor: pointer;
      font-size: 12.5px;
      font-weight: 850;
      padding: 0 16px;
    }
    .copy-mini-btn:hover { background: #dbeafe; border-color: #60a5fa; }
    .iban-icon-btn {
      width: 42px;
      height: 42px;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--brand-blue);
      background: #fff;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      transition: all 0.2s ease;
    }
    .iban-icon-btn:hover {
      border-color: var(--brand-blue);
      background: var(--brand-blue-soft);
      transform: translateY(-1px);
    }
    .iban-icon-btn.danger {
      color: var(--red);
      border-color: #fecaca;
      background: #fff7f7;
    }
    .iban-icon-btn.danger:hover {
      border-color: var(--red);
      background: var(--red-soft);
    }
    .iban-icon-btn svg {
      width: 17px;
      height: 17px;
      stroke: currentColor;
      stroke-width: 2.4;
      fill: none;
    }
    .iban-empty {
      padding: 24px;
      text-align: center;
      color: var(--muted);
      font-size: 13px;
    }
    @media (max-width: 760px) {
      .iban-toolbar,
      .iban-form,
      .iban-row {
        grid-template-columns: 1fr;
      }
      .iban-actions {
        grid-template-columns: minmax(104px, 1fr) minmax(118px, 1fr) 42px 42px;
        justify-content: stretch;
      }
    }
    @media (max-width: 760px) {
      input,
      select,
      textarea,
      .acc-table input,
      .acc-table textarea,
      .acc-table select,
      .offer-inline-input,
      .table-date-input,
      .table-time-select,
      .inline-note,
      .project-description-input {
        font-size: 16px !important;
      }
    }
  

/* Cop kutusu ve toplu secim */
.bulk-check { width: 15px; height: 15px; accent-color: #dc2626; cursor: pointer; flex-shrink: 0; }
.id-lead-cell .bulk-check { margin-right: 4px; }
.trash-row td { padding: 10px 14px; }
.trash-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trash-name { font-weight: 600; min-width: 140px; }
.trash-phone { color: #6d7081; }
.trash-date { color: #6d7081; font-size: 12px; margin-left: auto; }


/* Muhasebe tablosu ekrana sigdirma */
.acc-table input[type="date"] { font-size: 11.5px; padding: 2px 0; }
.acc-table .expense-col { min-width: 150px; }
.expense-item { padding: 5px 8px; font-size: 11.5px; }
.sum-box { min-width: 148px; padding: 10px 12px; }
.sum-val { font-size: 16px; }

/* ============================================================
   PROFESYONEL REDESIGN — Websitesi & Bildirimler (2026-06-13)
   Yalnizca gorsel; markup/JS degismez. Sonradan tanimlandigi
   icin ayni secicilerde onceki kurallari gecersiz kilar.
   ============================================================ */

/* --- Finans kartlari --- */
.website-finance-summary { gap: 12px; }
.website-finance-card {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: box-shadow .18s, transform .18s;
}
.website-finance-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: #2563eb;
}
.website-finance-card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); transform: translateY(-1px); }
.website-finance-card span {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.website-finance-card strong {
  color: #0f172a;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.website-finance-card.danger { border-color: #fecaca; background: #fef2f2; }
.website-finance-card.danger::before { background: #dc2626; }
.website-finance-card.danger strong { color: #991b1b; }

/* --- Grup sekmeleri --- */
.website-group-tab {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-weight: 700;
  transition: all .15s;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.website-group-tab span {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 800;
}
.website-group-tab:hover { border-color: #cbd5e1; background: #f8fafc; }
.website-group-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15,23,42,.18);
}
.website-group-tab.active span { background: rgba(255,255,255,.18); color: #fff; }

/* --- Uyari paneli --- */
.website-alert {
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  border-radius: 0 14px 14px 0;
  background: #fff7ed;
  padding: 12px 16px;
  box-shadow: 0 4px 14px rgba(249,115,22,.07);
}
.website-alert-head strong { color: #9a3412; font-weight: 800; }
.website-alert-pill {
  border-radius: 999px;
  padding: 5px 11px;
  font-weight: 700;
  font-size: 11px;
  border: 1px solid #fdba74;
  background: #ffedd5;
  color: #9a3412;
}
.website-alert-pill.expired { border-color: #fecaca; background: #fee2e2; color: #991b1b; }

/* --- Tablo: rafine koyu slate baslik --- */
.website-table-scroll { background: #fff; border-radius: 12px; }
.website-table th {
  background: #1e293b;
  background: linear-gradient(180deg, #243244 0%, #0f172a 100%);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  border-right: 1px solid rgba(255,255,255,.07);
  border-bottom: none;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.06);
  padding: 11px 8px;
}
.website-table td { border-right: 1px solid #f1f5f9; border-bottom: 1px solid #eef2f7; }
.website-data-row.website-row-even td { background: #fcfdff; }
.website-data-row.website-row-odd td { background: #fff; }
.website-data-row:hover td { background: #eff6ff; }
.website-data-row { transition: background .12s; }

/* Alarm/taslak satir vurgu seritleri biraz daha belirgin */
.website-alert-record td:first-child { box-shadow: inset 4px 0 0 #f97316; }
.website-draft-record td:first-child { box-shadow: inset 4px 0 0 #2563eb; }

/* --- Saglik rozetleri: noktali, kenarlikli --- */
.website-health {
  gap: 5px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .01em;
}
.website-health::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}
.website-health.up { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.website-health.down { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.website-health.unknown { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

/* --- Kalan gun cipleri: kompakt, renk kodlu --- */
.website-days {
  min-height: 26px;
  border-radius: 8px;
  padding: 0 9px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid transparent;
}
.website-days.ok { background: #f1f5f9; color: #475569; }
.website-days.soon { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.website-days.urgent,
.website-days.expired { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.website-days.empty { background: #f8fafc; color: #94a3b8; }

/* --- Domain hucresi linki --- */
.website-input.domain { font-weight: 700; text-decoration: none; }
.website-input.domain:not(:focus):hover { text-decoration: underline; }
.website-site-btn, .website-phone-btn { border-radius: 8px; transition: all .14s; }
.website-site-btn:hover, .website-phone-btn:hover { transform: translateY(-1px); }

/* --- Grup satiri --- */
.website-group-row td,
.website-table tr.website-group-row:hover td {
  background: #f0f9ff;
  border-top: 1px solid #bae6fd;
  border-bottom: 1px solid #bae6fd;
}
.website-group-add {
  border-radius: 9px;
  background: #0284c7;
  border-color: #0284c7;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2,132,199,.22);
}
.website-group-add:hover { background: #0369a1; }

/* --- Araç çubuğu butonlari --- */
.website-toolbar { border-radius: 14px; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.website-toolbar #websiteSummary {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  font-weight: 700;
}

/* ============================================================
   BILDIRIMLER — profesyonel panel
   ============================================================ */
.notifications-panel {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15,23,42,.22), 0 2px 6px rgba(15,23,42,.06);
}
.notifications-head {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 14px 16px;
}
.notifications-head strong {
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.notifications-head strong::before {
  content: "";
  width: 18px; height: 18px;
  background: #2563eb;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>') center/contain no-repeat;
  flex: 0 0 auto;
}
.notifications-head button { border-radius: 9px; transition: all .14s; }
.notifications-head button:hover { background: #f1f5f9; border-color: #cbd5e1; }
.notification-item {
  border: 1px solid #eef2f7;
  border-radius: 11px;
  padding: 11px 13px;
  transition: all .14s;
}
.notification-item-head strong { font-weight: 800; }
.notification-item.unread {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: none;
  border-left: 3px solid #2563eb;
  border-radius: 0 11px 11px 0;
}
.notification-item.read { opacity: .72; }
/* Tipe gore sol serit + hafif zemin */
.notification-item.notification-type-danger {
  border-left: 3px solid #dc2626;
  border-radius: 0 11px 11px 0;
  background: #fef2f2;
  border-color: #fecaca;
}
.notification-item.notification-type-danger .notification-item-head strong { color: #991b1b; }
.notification-item.notification-type-warning {
  border-left: 3px solid #f97316;
  border-radius: 0 11px 11px 0;
  background: #fff7ed;
  border-color: #fed7aa;
}
.notification-item.notification-type-warning .notification-item-head strong { color: #9a3412; }
.notification-item > span {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
}

/* --- Lead bildirimi: premium koyu toast --- */
.lead-notice {
  border: none;
  border-radius: 14px;
  background: #0f172a;
  box-shadow: 0 16px 36px rgba(15,23,42,.28);
  padding: 14px 16px;
}
.lead-notice-title { color: #fff; font-weight: 800; }
.lead-notice-detail { color: #94a3b8; }
.lead-notice-button {
  border: none;
  background: #2563eb;
  color: #fff;
  border-radius: 9px;
  font-weight: 700;
  padding: 0 14px;
  min-height: 34px;
}
.lead-notice-button:hover { background: #1d4ed8; }
.lead-notice-close {
  border: none;
  background: rgba(255,255,255,.1);
  color: #e2e8f0;
  border-radius: 9px;
  min-height: 34px;
}
.lead-notice-close:hover { background: rgba(255,255,255,.18); }

/* --- Nav bildirim rozeti: hafif nabiz --- */
.notification-badge { box-shadow: 0 0 0 2px var(--nav, #1F2937); }

/* Kalem (tarih düzenleme) sütunları: kalem boyutu kadar dar */
.website-table { min-width: 2186px; }
.website-table th:nth-child(6), .website-table td:nth-child(6),
.website-table th:nth-child(8), .website-table td:nth-child(8) { width: 50px; }
.website-table th:nth-child(6), .website-table th:nth-child(8) {
  font-size: 9px;
  letter-spacing: 0;
  padding-left: 3px;
  padding-right: 3px;
}
.website-date-cell { padding: 2px !important; }

/* Yenileme uyarıları: "daha göster" tıklanabilir buton */
.website-alert-more {
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  transition: all .14s;
}
.website-alert-more:hover { background: #0f172a; border-color: #0f172a; color: #fff; }

/* Yenileme uyarı etiketleri: yapışık değil, içerik kadar + boşluklu */
.website-alert-list { gap: 8px; align-items: center; }
.website-alert-pill,
.website-alert-more {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.website-alert-more { flex: 0 0 auto; }

/* Uyarı etiketleri: ASLA kesme, tam bilgiyi göster */
.website-alert-pill,
.website-alert-more {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

/* ============================================================
   YENİLEME BİLDİRİMLERİ — profesyonel panel (2026-06-13)
   ============================================================ */
.website-alert {
  display: block;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #f59e0b;
  border-radius: 0 14px 14px 0;
  background: #fff;
  padding: 0;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  overflow: hidden;
}
.website-alert-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #fffbeb;
  border-bottom: 1px solid #fef3c7;
}
.wa-head-title { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.wa-head-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: #fef3c7; color: #d97706; flex: 0 0 auto;
}
.wa-head-icon svg { width: 16px; height: 16px; }
.website-alert-head strong {
  color: #1e293b; font-size: 14px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
}
.wa-head-total {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: #1e293b; color: #fff;
  font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.wa-head-counts { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wa-head-count {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.wa-head-count::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.wa-head-count.critical { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.wa-head-count.soon { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

/* Etiketler */
.website-alert-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 16px;
  align-items: center;
}
.website-alert-pill {
  display: inline-flex; align-items: center; gap: 8px;
  flex: 0 0 auto; width: auto; max-width: none;
  padding: 6px 12px 6px 11px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  white-space: nowrap; overflow: visible;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: box-shadow .14s, transform .14s, border-color .14s;
}
.website-alert-pill:hover { box-shadow: 0 6px 16px rgba(15,23,42,.09); transform: translateY(-1px); }
.wa-pill-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 auto; }
.wa-pill-domain { color: #0f172a; font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; }
.wa-pill-type {
  color: #64748b; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 5px; background: #f1f5f9;
}
.wa-pill-days {
  font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 3px 9px; border-radius: 999px;
}
.website-alert-pill.soon { border-color: #fde68a; }
.website-alert-pill.soon .wa-pill-dot { background: #f59e0b; }
.website-alert-pill.soon .wa-pill-days { background: #fffbeb; color: #b45309; }
.website-alert-pill.expired { border-color: #fecaca; }
.website-alert-pill.expired .wa-pill-dot { background: #dc2626; }
.website-alert-pill.expired .wa-pill-days { background: #fef2f2; color: #b91c1c; }

/* Daha göster / az göster */
.website-alert-more {
  flex: 0 0 auto;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font: inherit; font-size: 11.5px; font-weight: 800;
  transition: all .14s;
}
.website-alert-more:hover { background: #1e293b; border-color: #1e293b; color: #fff; }

/* ============================================================
   ÜST ALAN — araç çubuğu başlığı + ikonlu finans kartları (2026-06-14)
   ============================================================ */
.website-toolbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
}
.website-toolbar-title { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.website-toolbar-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: #eff6ff; color: #2563eb; flex: 0 0 auto;
}
.website-toolbar-icon svg { width: 21px; height: 21px; }
.website-toolbar-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.website-toolbar-text strong { font-size: 15.5px; font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
.website-toolbar-text span { font-size: 11.5px; color: #94a3b8; font-weight: 600; }
.website-toolbar .toolbar-actions { flex: 0 1 auto; }

/* Finans kartları: ikon + gövde */
.website-finance-card {
  flex-direction: row !important;
  align-items: center !important;
  gap: 13px !important;
  padding: 15px 17px !important;
  border-radius: 14px !important;
}
.website-finance-card::before { display: none !important; }
.wf-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 auto;
}
.wf-icon svg { width: 22px; height: 22px; }
.wf-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wf-label {
  color: #64748b !important; font-size: 11px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: .04em !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wf-value {
  color: #0f172a !important; font-size: 24px !important; font-weight: 800 !important;
  letter-spacing: -.02em !important; line-height: 1; white-space: nowrap;
}
.wf-blue .wf-icon { background: #eff6ff; color: #2563eb; }
.wf-green .wf-icon { background: #ecfdf5; color: #059669; }
.wf-amber .wf-icon { background: #fffbeb; color: #d97706; }
.website-finance-card.danger { border-color: #fecaca !important; background: #fef2f2 !important; }
.website-finance-card.danger .wf-icon { background: #fee2e2; color: #dc2626; }
.website-finance-card.danger .wf-value { color: #991b1b !important; }
.website-finance-card.danger .wf-label { color: #b91c1c !important; }

@media (max-width: 680px) {
  .website-toolbar { flex-wrap: wrap; }
  .website-toolbar-title { order: -1; }
  .website-finance-summary { grid-template-columns: 1fr !important; }
}

/* Grup satırı: Satış · Maliyet · Kâr istatistikleri */
.website-group-money {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  padding: 0 !important;
  white-space: nowrap;
}
.wg-stat {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  padding: 4px 11px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.wg-stat-label {
  font-size: 9px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #94a3b8 !important;
}
.wg-stat-value {
  font-size: 13px !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  font-variant-numeric: tabular-nums;
}
.wg-profit.pos { background: #ecfdf5; border-color: #a7f3d0; }
.wg-profit.pos .wg-stat-value { color: #047857 !important; }
.wg-profit.pos .wg-stat-label { color: #059669 !important; }
.wg-profit.neg { background: #fef2f2; border-color: #fecaca; }
.wg-profit.neg .wg-stat-value { color: #b91c1c !important; }
.wg-profit.neg .wg-stat-label { color: #dc2626 !important; }

/* ============================================================
   Arama çubuğu + komple sil + sütun genişliği (2026-06-14)
   ============================================================ */
.website-searchbar {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0 14px;
  height: 44px;
  box-shadow: 0 1px 3px rgba(15,23,42,.05);
  transition: border-color .15s, box-shadow .15s;
}
.website-searchbar:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.website-search-icon { display: inline-flex; color: #94a3b8; flex: 0 0 auto; }
.website-search-icon svg { width: 18px; height: 18px; }
.website-searchbar input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 13.5px; color: #0f172a;
  height: 100%;
}
.website-searchbar input::placeholder { color: #94a3b8; }

/* İki butonlu aksiyon hücresi */
.website-actions { display: flex; align-items: center; justify-content: center; gap: 4px; }
.website-table th:nth-child(15), .website-table td:nth-child(15) { width: 80px; }
.website-delete-btn, .website-restore-btn, .website-purge-btn {
  width: 30px; min-height: 30px; margin: 0;
  border: 1px solid transparent; border-radius: 8px;
  background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.website-delete-btn svg, .website-restore-btn svg, .website-purge-btn svg {
  width: 15px; height: 15px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.website-delete-btn { color: #f59e0b; }
.website-delete-btn:hover { background: #fffbeb; border-color: #fde68a; }
.website-purge-btn { color: #dc2626; }
.website-purge-btn:hover { background: #fef2f2; border-color: #fecaca; }
.website-restore-btn { color: #047857; }
.website-restore-btn:hover { background: #ecfdf5; border-color: #a7f3d0; }

/* Finans kartları: her biri kendi renginde zemin */
.website-finance-card.wf-green { background: #f0fdf4 !important; border-color: #bbf7d0 !important; }
.website-finance-card.wf-amber { background: #fffbeb !important; border-color: #fde68a !important; }
.website-finance-card.wf-blue { background: #eff6ff !important; border-color: #bfdbfe !important; }
.wf-green .wf-icon { background: #dcfce7; color: #16a34a; }
.wf-amber .wf-icon { background: #fef3c7; color: #d97706; }
.wf-blue .wf-icon { background: #dbeafe; color: #2563eb; }
.wf-green .wf-value { color: #047857 !important; }
.wf-amber .wf-value { color: #b45309 !important; }
.wf-blue .wf-value { color: #1d4ed8 !important; }
.wf-green .wf-label { color: #15803d !important; }
.wf-amber .wf-label { color: #b45309 !important; }
.wf-blue .wf-label { color: #1d4ed8 !important; }

/* ============================================================
   Rozet okunurluğu + Çalışmayan siteler + Bildirim silme (2026-06-14)
   ============================================================ */
/* "11" sayaç rozeti net okunsun */
.wa-head-total {
  background: #dc2626 !important;
  color: #fff !important;
  min-width: 24px !important;
  height: 24px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  padding: 0 8px !important;
}

/* Çalışmayan siteler bölümü */
.website-down-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  background: #fef2f2;
  border-top: 1px solid #fee2e2;
  border-bottom: 1px solid #fee2e2;
}
.wd-head-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: #fee2e2; color: #dc2626; flex: 0 0 auto;
}
.wd-head-icon svg { width: 15px; height: 15px; }
.website-down-head strong { color: #991b1b; font-size: 13.5px; font-weight: 800; }
.wd-head-total {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 8px;
  border-radius: 999px; background: #dc2626; color: #fff;
  font-size: 13px; font-weight: 900; font-variant-numeric: tabular-nums;
}
.website-down-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 16px;
}
.website-down-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 6px 5px 11px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.wd-dot { width: 8px; height: 8px; border-radius: 999px; background: #dc2626; flex: 0 0 auto; }
.wd-domain { color: #0f172a; font-size: 12.5px; font-weight: 800; }
.wd-status {
  font-size: 10.5px; font-weight: 800; color: #b91c1c;
  background: #fef2f2; border: 1px solid #fecaca;
  padding: 2px 8px; border-radius: 999px;
}
.wd-del {
  width: 24px; height: 24px; flex: 0 0 auto;
  border: none; border-radius: 7px; background: #fef2f2; color: #dc2626;
  cursor: pointer; display: grid; place-items: center;
}
.wd-del svg { width: 13px; height: 13px; }
.wd-del:hover { background: #dc2626; color: #fff; }

/* Bildirim silme (×) + tümünü temizle */
.notifications-head-actions { display: inline-flex; align-items: center; gap: 8px; }
.notifications-clear {
  border: 1px solid #e2e8f0; border-radius: 8px; background: #fff;
  color: #475569; font: inherit; font-size: 11.5px; font-weight: 700;
  padding: 5px 10px; cursor: pointer;
}
.notifications-clear:hover { background: #f1f5f9; }
.ni-head-right { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.notification-del {
  width: 22px; height: 22px; flex: 0 0 auto;
  border: none; border-radius: 6px; background: transparent; color: #94a3b8;
  cursor: pointer; display: grid; place-items: center;
}
.notification-del svg { width: 13px; height: 13px; }
.notification-del:hover { background: #fef2f2; color: #dc2626; }

/* Bildirim başlığı: "Tümünü temizle" taşmasın */
.notifications-head { flex-wrap: nowrap; gap: 10px; }
.notifications-head > strong { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notifications-head-actions { flex: 0 0 auto; gap: 6px; }
.notifications-clear { white-space: nowrap; padding: 5px 9px; font-size: 11px; }
.notifications-head button#notificationsCloseBtn { flex: 0 0 auto; width: 28px; height: 28px; }


/* ====================================================================== */
/* YENİ MUHASEBE EKRANI — responsive (masaüstü ızgara / mobil kart)        */
/* 2026-06 yeniden tasarım. Eski .acc-table/.month-*/.sum-box/.expense-*  */
/* kuralları artık kullanılmıyor; bunlar onların yerini alır.             */
/* ====================================================================== */

.acc-root { display: flex; flex-direction: column; gap: 16px; padding: 4px 2px 40px; }

/* ---- Ay kartı ---- */
.acc-month { background: #fff; border: 1px solid #e3ebf3; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04); }
.acc-month.is-empty { opacity: 0.92; }
.acc-mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; background: #eff8ff; border-bottom: 1px solid #d6ebfb; cursor: pointer; user-select: none; transition: background 0.15s; }
.acc-mhead:hover { background: #e3f2fe; }
.acc-month.is-empty .acc-mhead { background: #f1f5f9; border-bottom-color: #e2e8f0; }
.acc-mhead-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-mname { font-size: 14px; font-weight: 800; color: #075985; letter-spacing: 0.4px; }
.acc-month.is-empty .acc-mname { color: #64748b; }
.acc-novdata { font-size: 10px; font-weight: 800; background: #e2e8f0; color: #475569; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.3px; }
.acc-mhead-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.acc-add-proj, .acc-add-exp { border: none; color: #fff; font-size: 11px; font-weight: 800; padding: 6px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: filter 0.15s; }
.acc-add-proj { background: #0284c7; }
.acc-add-exp { background: #e11d48; }
.acc-add-proj:hover, .acc-add-exp:hover { filter: brightness(1.08); }
.acc-mhead .chevron { width: 20px; height: 20px; color: #0284c7; transition: transform 0.2s; flex-shrink: 0; }
.acc-month.is-empty .chevron { color: #94a3b8; }
.acc-month.collapsed .chevron { transform: rotate(-90deg); }
.acc-month.collapsed .acc-mbody { display: none; }

.acc-mbody { padding: 14px 16px 18px; }
.acc-section-label { font-size: 11px; font-weight: 800; color: #94a3b8; letter-spacing: 0.5px; margin: 2px 2px 10px; }

/* ---- Projeler ızgarası (masaüstü) ---- */
.acc-table2-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e8eef5; border-radius: 12px; }
.acc-table2 { display: grid; grid-template-columns: 108px 132px 150px minmax(180px, 1.3fr) 100px 100px 96px 110px 100px 100px 96px 110px 128px; min-width: 1380px; }
.acc-thead { display: contents; }
.acc-thead > div { position: sticky; top: 0; z-index: 1; background: #f8fafc; color: #475569; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 8px; text-align: center; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.acc-prow { display: contents; }
.acc-cell { padding: 7px 8px; border-bottom: 1px solid #eef2f7; display: flex; align-items: center; justify-content: center; min-width: 0; }
.acc-prow.is-completed > .acc-cell { background: #f0fdf4; }
.acc-cell input, .acc-cell textarea { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 7px 8px; font-size: 12.5px; color: #0f172a; text-align: center; font-family: inherit; transition: border-color 0.15s, background 0.15s; min-width: 0; }
.acc-cell input::placeholder, .acc-cell textarea::placeholder { color: #cbd5e1; }
.acc-cell input:hover, .acc-cell textarea:hover { border-color: #e2e8f0; background: #fff; }
.acc-cell input:focus, .acc-cell textarea:focus { border-color: #0284c7; background: #fff; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12); outline: none; }
.acc-cell input[type="number"] { text-align: right; font-variant-numeric: tabular-nums; }
.acc-cell input[type="date"] { font-size: 11.5px; }
.acc-desc { align-items: stretch; }
.acc-desc textarea { text-align: left; resize: none; line-height: 1.35; overflow: hidden; }
.acc-calc { font-size: 12.5px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.acc-calc .v-warn { color: #d97706; }
.acc-calc .v-ok { color: #16a34a; }
.acc-phone { gap: 4px; }
.acc-phone input { text-align: left; }
.acc-pa { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: #f0f9ff; color: #0284c7; flex-shrink: 0; }
.acc-pa.wa { background: #f0fdf4; color: #16a34a; }
.acc-pa.disabled { opacity: 0.35; pointer-events: none; }
.acc-pa svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.acc-profit { gap: 8px; font-weight: 800; }
.acc-profit-val { color: #059669; font-variant-numeric: tabular-nums; font-size: 13px; }
.acc-profit-val.neg { color: #dc2626; }
.acc-prow-actions { display: inline-flex; gap: 5px; }
.acc-complete, .acc-del { width: 26px; height: 26px; border-radius: 7px; border: none; cursor: pointer; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.acc-complete { background: #f1f5f9; color: #94a3b8; }
.acc-complete.checked { background: #16a34a; color: #fff; }
.acc-del { background: #fef2f2; color: #e11d48; }
.acc-docs { font-size: 11px; }
.acc-empty-projects, .acc-empty-all { grid-column: 1 / -1; padding: 18px; text-align: center; color: #94a3b8; font-size: 12.5px; }
.acc-empty-all { background: #fff; border: 1px dashed #e2e8f0; border-radius: 14px; }

/* ---- Masraflar paneli ---- */
.acc-exp-panel { margin-top: 14px; border: 1px solid #fadfe5; border-radius: 13px; overflow: hidden; }
.acc-exp-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff1f4; border-bottom: 1px solid #fadfe5; }
.acc-exp-title { font-size: 12.5px; font-weight: 800; color: #be123c; letter-spacing: 0.5px; }
.acc-exp-total { font-size: 12px; font-weight: 800; color: #be123c; margin-left: auto; }
.acc-exp-head .acc-add-exp.small { margin-left: 0; padding: 5px 10px; }
.acc-exp-list { display: flex; flex-direction: column; }
.acc-exp-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid #f4eef0; }
.acc-exp-item:last-child { border-bottom: none; }
.acc-exp-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #334155; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-exp-amount { font-size: 13px; font-weight: 800; color: #e11d48; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-paid-badge { font-size: 9.5px; font-weight: 800; color: #15803d; background: #dcfce7; padding: 2px 7px; border-radius: 5px; letter-spacing: 0.3px; flex-shrink: 0; }
.acc-exp-item.paid { background: #f6fdf9; }
.acc-exp-item.paid .acc-exp-name { color: #94a3b8; text-decoration: line-through; }
.acc-exp-item.paid .acc-exp-amount { color: #94a3b8; }
.acc-exp-actions { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.acc-ibtn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #0284c7; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.acc-ibtn:hover { border-color: #0284c7; background: #f0f9ff; }
.acc-ibtn.danger { color: #e11d48; }
.acc-ibtn.danger:hover { border-color: #e11d48; background: #fef2f2; }
.acc-ibtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.acc-tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d1d5db; background: #fff; color: transparent; cursor: pointer; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
.acc-tick:hover { border-color: #16a34a; background: #f0fdf4; }
.acc-tick.checked { border-color: #16a34a; background: #16a34a; color: #fff; }
.acc-exp-empty { padding: 16px; text-align: center; color: #94a3b8; font-size: 12px; }

/* ---- Ay özeti (kartlar) ---- */
.acc-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.acc-chip { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 11px; padding: 11px 13px; display: flex; flex-direction: column; gap: 3px; }
.acc-chip-l { font-size: 10.5px; font-weight: 800; color: #64748b; letter-spacing: 0.3px; }
.acc-chip-v { font-size: 17px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.acc-chip-v.v-warn { color: #d97706; }
.acc-chip-v.v-ok { color: #16a34a; }
.acc-chip-v.v-exp { color: #dc2626; }
.acc-chip.acc-chip-kar { border: none; }
.acc-chip.acc-chip-kar.pos { background: #059669; }
.acc-chip.acc-chip-kar.neg { background: #dc2626; }
.acc-chip.acc-chip-kar .acc-chip-l { color: rgba(255,255,255,0.85); }
.acc-chip.acc-chip-kar .acc-chip-v { color: #fff; }

/* ====================================================================== */
/* MOBİL — proje satırları karta dönüşür                                  */
/* ====================================================================== */
@media (max-width: 860px) {
  .acc-mbody { padding: 12px; }
  .acc-mhead { padding: 12px 13px; }
  .acc-add-proj, .acc-add-exp { padding: 6px 9px; font-size: 10.5px; }

  .acc-table2-scroll { overflow: visible; border: none; border-radius: 0; }
  .acc-table2 { display: block; min-width: 0; }
  .acc-thead { display: none; }

  .acc-prow { display: block; background: #fff; border: 1px solid #e6edf4; border-radius: 13px; padding: 11px 12px; margin-bottom: 10px; }
  .acc-prow.is-completed { background: #f6fefa; border-color: #bbf7d0; }
  .acc-prow.is-completed > .acc-cell { background: transparent; }

  .acc-cell { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #eef2f7; }
  .acc-cell:last-child { border-bottom: none; }
  .acc-cell::before { content: attr(data-label); font-size: 10.5px; font-weight: 800; letter-spacing: 0.3px; color: #94a3b8; flex: 0 0 auto; }
  .acc-cell input, .acc-cell textarea { width: auto; flex: 1 1 auto; max-width: 62%; text-align: right; border: 1px solid #e8eef5; background: #fff; }
  .acc-cell input[type="number"] { text-align: right; }

  .acc-desc, .acc-phone { flex-direction: column; align-items: stretch; gap: 6px; }
  .acc-desc::before, .acc-phone::before { flex: none; }
  .acc-desc textarea, .acc-phone input { max-width: 100%; width: 100%; text-align: left; }
  .acc-phone { position: relative; }
  .acc-phone input { padding-right: 66px; }
  .acc-phone .acc-pa { position: absolute; bottom: 7px; width: 28px; height: 28px; }
  .acc-phone .acc-pa:not(.wa) { right: 38px; }
  .acc-phone .acc-pa.wa { right: 6px; }

  .acc-calc { justify-content: space-between; }
  .acc-calc::after { }
  .acc-cell.acc-calc span { font-size: 13px; }

  .acc-docs { flex-direction: column; align-items: stretch; gap: 6px; }
  .acc-docs::before { flex: none; }

  .acc-profit { margin-top: 8px; padding: 10px 12px; background: #ecfdf5; border-radius: 10px; border-bottom: none; }
  .acc-prow.is-completed .acc-profit { background: #dcfce7; }
  .acc-profit::before { color: #047857; }
  .acc-profit-val { font-size: 15px; }
  .acc-prow-actions { margin-left: auto; }
  .acc-complete, .acc-del { width: 30px; height: 30px; }

  .acc-exp-item { padding: 10px 12px; gap: 8px; }
  .acc-exp-name { font-size: 13px; }
  .acc-ibtn { width: 30px; height: 30px; }
  .acc-tick { width: 28px; height: 28px; }

  .acc-sum { grid-template-columns: 1fr 1fr; gap: 8px; }
  .acc-chip-v { font-size: 15px; }
}

@media (max-width: 420px) {
  .acc-mname { font-size: 13px; }
  .acc-add-proj, .acc-add-exp { padding: 6px 8px; }
  .acc-cell input, .acc-cell textarea { max-width: 56%; }
}
