
  :root {
    --red: #cc0000;
    --red-dark: #990000;
    --red-light: #ff2222;
    --cream: #fdf8f5;
    --white: #ffffff;
    --gray-50: #f9f9f9;
    --gray-100: #f0f0f0;
    --gray-200: #e0e0e0;
    --gray-400: #999;
    --gray-600: #555;
    --gray-800: #222;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
    --radius: 12px;
    --radius-sm: 8px;
  }

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

  body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--gray-800);
    min-height: 100vh;
  }

  /* ─── LOGIN SCREEN ─── */
  #login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--bar-1) 0%, var(--bar-2) 40%, #700000 100%);
    position: relative;
    overflow: hidden;
  }

  #login-screen::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204,0,0,0.15) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: pulse 4s ease-in-out infinite;
  }

  #login-screen::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(204,0,0,0.1) 0%, transparent 70%);
    bottom: -50px; left: -50px;
    animation: pulse 4s ease-in-out infinite 2s;
  }

  @keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
  }

  .login-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 50px 60px;
    width: 460px;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
    animation: fadeUp 0.6s ease both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }




  .login-title {
    text-align: center;
    margin-bottom: 35px;
  }

  .login-title .main-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .login-title .sub-title {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .divider {
    width: 60px; height: 2px;
    background: var(--red);
    margin: 15px auto;
    border-radius: 2px;
  }

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

  .form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
  }

  .form-group input:focus {
    border-color: var(--red);
    background: rgba(204,0,0,0.08);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.15);
  }

  .form-group input::placeholder { color: rgba(255,255,255,0.25); }

  .login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
    text-transform: uppercase;
  }

  .login-btn:hover {
    background: linear-gradient(135deg, var(--red-light), var(--red));
    box-shadow: 0 6px 25px rgba(204,0,0,0.4);
    transform: translateY(-1px);
  }

  .login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
  }

  /* ─── MAIN APP ─── */
  #app { display: none; min-height: 100vh; }

  /* ─── TOP BAR ─── */
  .topbar {
    background: linear-gradient(135deg, var(--bar-1), var(--bar-2));
    color: white;
    padding: 0 30px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
  }

  .topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .topbar-logo {
    width: 36px; height: 36px;
    background: var(--red);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
  }

  .topbar-name {
    font-size: 15px;
    font-weight: 600;
    color: white;
  }

  .topbar-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 1px;
  }

  .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .topbar-datetime {
    text-align: right;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
  }

  .topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
  }

  .topbar-user:hover { background: rgba(255,255,255,0.14); }

  .user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    font-weight: 700;
  }

  .user-name { font-size: 13px; color: white; font-weight: 500; }



  /* ─── LAYOUT ─── */
  .layout {
    display: flex;
    margin-top: 64px;
    min-height: calc(100vh - 64px);
  }

  /* ─── SIDEBAR ─── */
  .sidebar {
    width: 270px;
    background: white;
    border-right: 1px solid var(--gray-200);
    flex-shrink: 0;
    overflow-y: auto;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    box-shadow: 2px 0 12px rgba(0,0,0,0.05);
  }

  .sidebar-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
  }

  .sidebar-section:last-child { border-bottom: none; }

  .sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-400);
    padding: 12px 20px 6px;
  }

  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
  }

  .sidebar-item:hover {
    background: #fff5f5;
    color: var(--red);
    border-left-color: rgba(204,0,0,0.3);
  }

  .sidebar-item.active {
    background: linear-gradient(90deg, #fff0f0, #fff8f8);
    color: var(--red);
    border-left-color: var(--red);
    font-weight: 600;
  }

  .sidebar-icon {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    background: var(--gray-100);
    flex-shrink: 0;
    transition: all 0.2s;
  }

  .sidebar-item.active .sidebar-icon,
  .sidebar-item:hover .sidebar-icon {
    background: rgba(204,0,0,0.1);
  }

  /* ─── MAIN CONTENT ─── */
  .main {
    flex: 1;
    padding: 30px;
    overflow-x: hidden;
  }

  /* ─── PAGE HEADER ─── */
  .page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-100);
  }

  .page-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    color: var(--gray-800);
  }


  .btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(204,0,0,0.3);
  }

  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(204,0,0,0.4);
  }

  .btn-outline {
    background: white;
    color: var(--red);
    border: 1.5px solid var(--red);
  }

  .btn-outline:hover {
    background: rgba(204,0,0,0.05);
  }

  .btn-ghost {
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
  }

  .btn-ghost:hover { background: var(--gray-200); }

  /* ─── CARDS ─── */
  .card {
    background: white;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
  }

  .card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .card-title-icon {
    width: 32px; height: 32px;
    background: rgba(204,0,0,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
  }

  /* ─── STAT CARDS ─── */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
  }

  .stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
  }

  .stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
  }

  .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1;
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 500;
  }

  .stat-icon {
    position: absolute;
    bottom: 16px; right: 16px;
    font-size: 36px;
    opacity: 0.08;
  }

  /* ─── FORM INPUTS ─── */
  .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
  }

  .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  .field input, .field select, .field textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--gray-800);
    background: white;
    transition: all 0.2s;
    outline: none;
  }

  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.08);
  }

  .field textarea { resize: vertical; min-height: 80px; }

  /* ─── TABLE ─── */
  .table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
  }

  thead {
    background: linear-gradient(135deg, var(--bar-1), var(--bar-2));
    color: white;
  }

  thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.15s;
  }

  tbody tr:hover { background: #fff5f5; }
  tbody tr:last-child { border-bottom: none; }

  tbody td {
    padding: 12px 16px;
    color: var(--gray-600);
  }

  tbody td:first-child { color: var(--gray-800); font-weight: 500; }

  .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
  }

  .badge-green { background: var(--ok-bg); color: var(--ok); }
  .badge-red { background: #ffe6e6; color: var(--red-dark); }
  .badge-blue { background: var(--info-bg); color: var(--info); }
  .badge-yellow { background: var(--warn-bg); color: var(--warn); }






  /* ─── PANELS ─── */
  .page { display: none; }
  .page.active { display: block; animation: pageIn 0.3s ease; }

  @keyframes pageIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
  }

  /* ─── DASHBOARD GRID ─── */
  .dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-top: 4px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .quick-action-card {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
  }

  .quick-action-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 20px rgba(204,0,0,0.12);
    transform: translateY(-2px);
  }

  .qa-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(204,0,0,0.1), rgba(204,0,0,0.05));
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
  }

  .qa-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
  }


  /* ─── PHOTO UPLOAD ─── */
  .photo-upload {
    width: 120px; height: 140px;
    border: 2px dashed var(--gray-200);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--gray-50);
    font-size: 12px;
    color: var(--gray-400);
    text-align: center;
    gap: 8px;
  }

  .photo-upload:hover {
    border-color: var(--red);
    background: rgba(204,0,0,0.03);
    color: var(--red);
  }

  /* ─── NOTICE ─── */
  .notice {
    background: linear-gradient(90deg, rgba(204,0,0,0.05), transparent);
    border-left: 4px solid var(--red);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 16px;
  }

  .notice strong { color: var(--red-dark); }

  /* ─── FATURA ─── */
  .fatura-box {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 30px;
  }

  .fatura-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-100);
    margin-bottom: 24px;
  }

  .fatura-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--red-dark);
  }

  .fatura-no {
    text-align: right;
    font-size: 14px;
    color: var(--gray-600);
  }

  /* ─── CHECKBOX ENGEL ─── */
  .engel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .engel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
  }

  .engel-item input[type=checkbox] { accent-color: var(--red); width: 16px; height: 16px; }
  .engel-item:hover { border-color: var(--red); background: rgba(204,0,0,0.03); }

  /* ─── MODAL ─── */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
  }

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

  .modal {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0,0,0,0.3);
    animation: modalIn 0.25s ease;
  }

  @keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }

  .modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .modal-title span { color: var(--red); }

  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
  }

  /* ─── TOAST ─── */
  .toast {
    position: fixed;
    bottom: 30px; right: 30px;
    background: var(--bar-1);
    color: white;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
  }

  .toast.show { transform: translateX(0); }
  .toast .t-icon { font-size: 18px; }










  /* ─── HARÇLIK ─── */
  .balance-display {
    background: linear-gradient(135deg, var(--bar-1), var(--bar-2));
    color: white;
    border-radius: var(--radius);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .balance-amount {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-head);
  }

  .balance-label { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 4px; }

  /* ─── Scrollbar ─── */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--gray-100); }
  ::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 10px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--red); }

  @media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
  }

  @media (max-width: 768px) {
    .sidebar { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .quick-actions { grid-template-columns: 1fr; }
  }

/* ═══ MARKA KANONU (BRAND.md) — yazı tipleri yerelden, renkler tek yerden ═══ */
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/noto-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/noto-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/fonts/playfair-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700 800; font-display: swap; src: url(/fonts/playfair-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --font-body: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --red: #cc0000; --red-dark: #990000; --bar-1: #1a0000; --bar-2: #3d0000;
  --red-bg: #fff3f3; --red-line: #f3caca;
  --ok: #1a7a4a; --ok-bg: #eef8f2; --ok-line: #cfe9db;
  --warn: #996600; --warn-strong: #cc8a00; --warn-bg: #fff8e6;
  --info: #1a4a99; --info-bg: #e6f0ff;
  --cream: #fdf8f5; --readonly-bg: #faf7f5;
}
body { font-family: var(--font-body); }
button, input, select, textarea, optgroup { font-family: inherit; }

/* ─── Faz 1 eklemeleri ─── */
.login-error { font-size: 13px; color: #ffb3b3; margin: 0 0 10px; }
.login-error:empty { display: none; }
.login-error.dark { color: var(--red-dark); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
.role-chip { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 2px 8px; border-radius: 50px; background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.8); }
.empty { text-align: center; color: var(--gray-400); font-size: 13px; padding: 14px; }
td.empty, .empty { font-weight: 400 !important; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.seg { display: inline-flex; border: 1.5px solid var(--gray-200); border-radius: 50px; overflow: hidden; }
.seg button { background: white; border: none; padding: 6px 14px; font: 600 12px var(--font-body); color: var(--gray-600); cursor: pointer; }
.seg button.active { background: var(--red); color: white; }
.mini-input { padding: 8px 14px; border: 1.5px solid var(--gray-200); border-radius: 50px; font: 13px var(--font-body); outline: none; min-width: 190px; }
.mini-input:focus { border-color: var(--red); }
.sub-title2 { font-size: 13px; font-weight: 700; color: var(--gray-600); margin: 22px 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
tbody tr.clickable { cursor: pointer; }
tbody tr.selected { background: var(--red-bg); }
.photo-upload { overflow: hidden; padding: 0; }
.photo-upload img { width: 100%; height: 100%; object-fit: cover; }
[data-role].role-hidden, .role-hidden { display: none !important; }
.field input[readonly] { background: var(--gray-50); color: var(--gray-600); }
#print-area { display: none; }
.print-sheet { font-family: var(--font-body); color: #000; padding: 20px; }
.print-sheet h1 { font-size: 20px; margin-bottom: 4px; }
.print-sheet h2 { font-size: 13px; margin: 18px 0 6px; border-bottom: 1px solid #000; padding-bottom: 3px; text-transform: uppercase; }
.print-sheet table { width: 100%; border-collapse: collapse; font-size: 12px; }
.print-sheet td, .print-sheet th { border: 1px solid var(--gray-400); padding: 6px 8px; text-align: left; }
.print-sheet .kv td:first-child { width: 32%; font-weight: 700; background: var(--gray-100); }
.print-sheet .sign { display: flex; gap: 30px; margin-top: 50px; font-size: 12px; text-align: center; }
.print-sheet .sign div { flex: 1; border-top: 1px solid #000; padding-top: 4px; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
}
@media (max-width: 768px) {
  .main { padding: 16px; }
  .login-card { width: 92vw; padding: 36px 24px; }
}
/* mobil: menü ☰ ile açılan yan çekmece */
.nav-toggle, .nav-backdrop { display: none; }
@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 0 9px; margin-right: 2px; border: 0; border-radius: 10px; background: rgba(255,255,255,0.08); cursor: pointer; flex-shrink: 0; }
  .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .sidebar { display: block !important; position: fixed; top: 64px; left: 0; bottom: 0; width: min(290px, 84vw); height: auto; z-index: 900; transform: translateX(-102%); transition: transform .25s ease; box-shadow: 8px 0 30px rgba(0,0,0,0.2); overflow-y: auto; -webkit-overflow-scrolling: touch; }
  body.nav-open .sidebar { transform: none; }
  .nav-backdrop { display: block; position: fixed; inset: 64px 0 0 0; z-index: 899; background: rgba(20,0,0,0.45); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .sidebar-item { padding: 13px 20px; font-size: 15px; }
  .topbar { padding: 0 12px; }
  .topbar-left { gap: 10px; min-width: 0; }
  .topbar-datetime, .topbar-subtitle { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Hasta kabul v2 ─── */
.req { color: var(--red); }
.hint { font-size: 11px; color: var(--gray-400); min-height: 14px; }
.hint.ok { color: var(--ok); } .hint.bad { color: var(--red); }
.field input.valid { border-color: var(--ok); }
.field input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,0.08); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.seg { flex-wrap: wrap; }
.seg button b { font-weight: 700; opacity: .7; margin-left: 4px; }
.seg button b:empty { display: none; }
table.sortable th[data-sort] { cursor: pointer; user-select: none; }
table.sortable th[data-sort]::after { content: ' ↕'; opacity: .35; }
table.sortable th.asc::after { content: ' ↑'; opacity: 1; }
table.sortable th.desc::after { content: ' ↓'; opacity: 1; }
tbody tr.clickable:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--gray-600); }
.form-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.status-pill { display: inline-block; padding: 6px 16px; border-radius: 50px; font-size: 14px; font-weight: 700; }
.patient-top { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.photo-col { display: flex; flex-direction: column; gap: 6px; }
.photo-upload { position: relative; }
.photo-change { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 4px; text-align: center; opacity: 0; transition: opacity .2s; }
.photo-upload:hover .photo-change { opacity: 1; }
.com-line { font-size: 14px; color: var(--gray-600); margin-bottom: 12px; }
.com-line a { color: var(--red); font-weight: 600; margin-left: 6px; }
.com-line .warn { color: var(--warn); font-weight: 600; }
.decision-hint { background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.decision-hint[hidden] { display: none; }
.decision-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.decision-row .sep { width: 1px; height: 28px; background: var(--gray-200); margin: 0 6px; }
.durum-label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.btn.current { background: var(--red); color: #fff; border-color: var(--red); opacity: 1 !important; }
.timeline { list-style: none; border-left: 2px solid var(--gray-200); margin-left: 6px; padding-left: 18px; }
.timeline li { position: relative; padding: 6px 0 10px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: -25px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--gray-400); border: 2px solid #fff; }
.timeline li.tl-kabul::before, .timeline li.tl-aktif::before { background: var(--ok); }
.timeline li.tl-red::before { background: var(--red); }
.timeline li.tl-izinli::before { background: var(--info); }
.timeline li.empty { color: var(--gray-400); }
.timeline li.empty::before { display: none; }
.tl-when { color: var(--gray-400); min-width: 120px; }
.tl-what { font-weight: 600; color: var(--gray-800); }
.tl-who { color: var(--gray-600); }
.tl-com { flex-basis: 100%; font-size: 12px; color: var(--gray-400); }
.save-bar { position: sticky; bottom: 0; z-index: 50; margin: 20px -30px -30px; padding: 14px 30px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; align-items: center; gap: 10px; box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
.dirty-note { margin-right: auto; font-size: 13px; font-weight: 600; color: var(--warn); opacity: 0; transition: opacity .2s; }
.dirty-note.show { opacity: 1; }
.dirty-note::before { content: '● '; }
@media (max-width: 768px) {
  .save-bar { margin: 16px -12px -24px; padding: 12px; }
  .save-bar .btn { flex: 1; justify-content: center; }
  .dirty-note { flex-basis: 100%; }
  .decision-row .sep { display: none; }
  .list-toolbar .mini-input { width: 100%; }
  .photo-col { margin: 0 auto; }
  .pager { justify-content: center; }
  .page-header { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 768px) {
  .topbar-right { gap: 8px; }
  .topbar-user { padding: 4px; }
  .topbar-user .user-name, .topbar-user .role-chip { display: none; }
  .topbar-name { font-size: 13px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .seg { border-radius: 12px; }
}
.decided-com { background: var(--ok-bg); border: 1px solid var(--ok-line); border-left: 4px solid var(--ok); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 10px; color: var(--gray-800); }
.decided-com .dc-head { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ok); margin-bottom: 4px; }
.cur-com.muted { font-size: 12px; color: var(--gray-400); }
.decided-com.red { background: var(--red-bg); border-color: var(--red-line); border-left-color: var(--red); }
.decided-com.red .dc-head { color: var(--red-dark); }

/* ─── Rapor PDF ─── */
.pdf-drop { display: flex; align-items: center; gap: 18px; padding: 22px 26px; border: 2px dashed var(--red-line); border-radius: var(--radius); background: linear-gradient(90deg, var(--red-bg), #fff); cursor: pointer; transition: all .2s; }
.pdf-drop:hover, .pdf-drop.over { border-color: var(--red); background: var(--red-bg); }
.pdf-drop-icon { font-size: 36px; }
.pdf-drop-title { font-weight: 700; color: var(--gray-800); font-size: 15px; }
.pdf-drop-sub { font-size: 12px; color: var(--gray-400); margin-top: 3px; }
.pdf-result { margin-top: 14px; background: #fff; border: 1px solid var(--gray-200); border-left: 4px solid var(--ok); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 13px; }
.pdf-result.warn { border-left-color: var(--warn-strong); background: var(--warn-bg); }
.pdf-result[hidden] { display: none; }
.pr-head { font-size: 14px; margin-bottom: 10px; }
.pr-grid { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 14px; margin-bottom: 10px; }
.pr-grid span { color: var(--gray-400); }
.pr-ok { color: var(--ok); margin: 6px 0; }
.pr-warn { color: var(--warn); margin: 6px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pr-warn[hidden] { display: none; }
.pr-notes { margin: 8px 0 0 18px; color: var(--gray-600); font-size: 12px; }
.engel-item.suggested { border-color: var(--warn-strong); background: var(--warn-bg); }
.engel-item.suggested::after { content: 'öneri'; margin-left: auto; font-size: 10px; font-weight: 700; color: var(--warn-strong); text-transform: uppercase; }
@media (max-width: 768px) { .pr-grid { grid-template-columns: auto 1fr; } .engel-grid { grid-template-columns: 1fr 1fr; } }

/* ─── Rapor kayıt v2 ─── */
td .sub { font-size: 11px; color: var(--gray-400); }
.rp-patient-top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.rp-photo { width: 90px; height: 110px; border-radius: var(--radius-sm); background: var(--gray-50); border: 1.5px solid var(--gray-200); display: flex; align-items: center; justify-content: center; font-size: 34px; overflow: hidden; flex-shrink: 0; }
.rp-photo img { width: 100%; height: 100%; object-fit: cover; }
.validity { margin-top: 6px; font-size: 13px; color: var(--gray-600); }
.pr-flex { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.pr-photo { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 150px; font-size: 12px; cursor: pointer; text-align: center; }
.pr-photo img { width: 120px; height: auto; border-radius: 6px; border: 1px solid var(--gray-200); }
.pr-photo small { color: var(--gray-400); display: block; }
#rp-doc-actions { display: inline-flex; gap: 8px; }
td.row-actions { text-align: right; width: 1%; white-space: nowrap; }
.del-btn:hover { background: var(--red-bg); color: var(--red-dark); border-color: var(--red-line); }
.crop-frame { position: relative; width: 240px; height: 320px; margin: 0 auto; overflow: hidden; border-radius: 10px; background: var(--gray-800); cursor: grab; touch-action: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.crop-frame:active { cursor: grabbing; }
.crop-frame img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.photo-col .btn-sm { justify-content: center; }
.photo-upload { height: 160px !important; }
.rp-photo { height: 120px; }

/* düzenlenebilir rapor tabloları */
.edit-hint { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--gray-400); margin-left: 6px; }
.edit-table td { padding: 4px 6px; vertical-align: top; }
.edit-table .cell-in { width: 100%; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px; color: inherit; resize: vertical; }
.edit-table textarea.cell-in { font-size: 12px; line-height: 1.45; min-height: 38px; }
.edit-table .cell-in:hover { border-color: var(--gray-200); background: #fff; }
.edit-table .cell-in:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(204,0,0,.10); }
.edit-table .cell-del { border: 0; background: transparent; color: var(--gray-400); cursor: pointer; font-size: 14px; padding: 6px 8px; border-radius: 6px; }
.edit-table .cell-del:hover { color: var(--red); background: var(--red-bg); }
.edit-table .cell-empty { color: var(--gray-400); font-size: 13px; padding: 12px; text-align: center; }
.edit-add { margin-top: 8px; }

/* Rapor Kayıt: e-Rapor sırası */
.rp-order-note { margin: 16px 0 4px; font-size: 12px; color: var(--gray-600); }
.rp-sec { margin-top: 16px; }
.rp-sec .card-title-icon { font-weight: 700; font-size: 14px; }
.rp-internal { border-style: dashed; background: var(--gray-50); }
.sec-hint { font-weight: 400; color: var(--gray-400); font-size: 11px; margin-left: 4px; }
.ro-note { font-size: 12px; color: var(--gray-400); margin: -4px 0 10px; }
.field input.ro-mismatch { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#rp-engel { grid-template-columns: 1fr 1fr; }
.pr-bad { color: var(--red-dark); background: var(--red-bg); border: 1px solid var(--red-line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pdf-result.dup { border-color: var(--red-line); }

/* Sağ üst kullanıcı menüsü */
.user-menu-wrap { position: relative; }
button.topbar-user { border: 0; font: inherit; color: inherit; }
.topbar-user:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.user-caret { color: rgba(255,255,255,.7); font-size: 11px; }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; color: var(--gray-800); border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 6px; z-index: 1000; }
.user-menu[hidden] { display: none; }
.um-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--gray-200); margin-bottom: 4px; display: flex; flex-direction: column; gap: 2px; }
.um-head span { font-size: 12px; color: var(--gray-400); }
.user-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; border-radius: 8px; font: inherit; font-size: 13px; color: var(--gray-800); cursor: pointer; }
.user-menu button:hover, .user-menu button:focus-visible { background: var(--gray-100); outline: none; }
.user-menu .um-danger { color: var(--red); }
.um-sep { height: 1px; background: var(--gray-200); margin: 4px 0; }
.acc-info { display: grid; gap: 8px; background: var(--gray-50); border-radius: 10px; padding: 12px 14px; }
.acc-info div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.acc-info span { color: var(--gray-400); }
.si-long { display: grid; gap: 14px; }
.si-long textarea { min-height: 70px; resize: vertical; line-height: 1.5; }
.muted-sm { font-size: 12px; color: var(--gray-400); }

/* kurum logosu */
.topbar-logo.has-logo { background: #fff; border-radius: 8px; width: auto; min-width: 36px; max-width: 120px; height: 40px; padding: 3px; }
.topbar-logo.has-logo img { display: block; height: 100%; width: auto; max-width: 114px; object-fit: contain; }
.logo-field { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 140px; height: 80px; border: 1px dashed var(--gray-200); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--gray-400); font-size: 12px; flex-shrink: 0; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 200px; }
.logo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.logo-hint { font-size: 12px; color: var(--gray-600); line-height: 1.4; }

/* personel = salt okunur */
.ro-notice { margin: 0 0 16px; }
body.readonly .page input:not([type=search]), body.readonly .page select, body.readonly .page textarea { background: var(--readonly-bg); }
body.readonly .page input:not([type=search]):focus, body.readonly .page textarea:focus { box-shadow: none; border-color: var(--gray-200); }
body.readonly .page select:disabled, body.readonly .page input:disabled { opacity: 1; color: inherit; -webkit-text-fill-color: currentColor; }
.page textarea, .page .edit-table textarea.cell-in { overflow-y: hidden; resize: none; }
body.readonly .page input[type=checkbox], body.readonly .page input[type=radio] { opacity: .75; }
body.readonly #p-foto-box { pointer-events: none; }
body.readonly .cell-del { display: none; }

/* mobil: tablolar kart görünümünde (etiketler data-label ile JS'ten) */
.dashboard-grid > *, .grid-2 > * { min-width: 0; }
@media (max-width: 768px) {
  .main { padding: 14px 12px 24px; }
  .card { padding: 18px 14px; }
  .page-title { font-size: 24px; }
  .page .table-wrapper { overflow: visible; border: 0; box-shadow: none; background: transparent; }
  .page table.m-cards, .page table.m-cards tbody, .page table.m-cards tr, .page table.m-cards td { display: block; width: 100% !important; }
  .page table.m-cards thead { display: none; }
  .page table.m-cards tr { background: #fff; border: 1px solid var(--gray-200); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
  .page table.m-cards tr:hover { background: #fff; }
  .page table.m-cards td { border: 0 !important; padding: 5px 0 !important; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: right !important; min-height: 28px; font-size: 14px; }
  .page table.m-cards td::before { content: attr(data-label); flex-shrink: 0; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-400); }
  .page table.m-cards td[data-label=""]::before { display: none; }
  .page table.m-cards td[data-label=""] { justify-content: flex-end; }
  .page table.m-cards td:first-child { justify-content: flex-start; text-align: left !important; font-size: 16px; font-weight: 700; padding-bottom: 8px !important; border-bottom: 1px solid var(--gray-100) !important; margin-bottom: 4px; }
  .page table.m-cards td:first-child::before { display: none; }
  .page table.m-cards td[colspan] { justify-content: center; text-align: center !important; }
  .page table.m-cards td[colspan]::before { display: none; }
  /* düzenlenebilir tablolar: alan tam genişlik, etiket üstte */
  .page table.edit-table.m-cards tr { position: relative; padding: 8px 12px 10px; }
  .page table.edit-table.m-cards td { flex-direction: column; align-items: stretch; gap: 3px; text-align: left !important; padding: 4px 0 !important; min-height: 0; }
  .page table.edit-table.m-cards td:first-child { font-size: 14px; font-weight: 400; border-bottom: 0 !important; margin-bottom: 0; padding-right: 36px !important; }
  .page table.edit-table.m-cards td:first-child::before { display: block; }
  .page table.edit-table.m-cards td::before { font-size: 10px; }
  .page table.edit-table.m-cards .cell-in { width: 100% !important; border-color: var(--gray-200); background: #fff; font-size: 16px; padding: 7px 10px; }
  .page table.edit-table.m-cards textarea.cell-in { min-height: 44px; font-size: 15px; }
  .page table.edit-table.m-cards td[data-label=""] { position: absolute; top: 4px; right: 4px; width: auto !important; padding: 0 !important; }
  .page table.edit-table.m-cards td[data-label=""]:first-child { position: static; }
  .form-row { grid-template-columns: 1fr !important; gap: 12px; }
  .form-row .field { width: 100%; min-width: 0; }
  .field input, .field select, .field textarea { font-size: 16px; } /* iOS'ta odakta yakınlaştırmayı önler */
  .pdf-drop { padding: 16px; gap: 12px; }
  .quick-actions { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .page [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .page .card, .page [style*="display:grid"] > *, .page [style*="display: grid"] > * { min-width: 0; max-width: 100%; }
  .page [style*="display:flex"], .page [style*="display: flex"] { flex-wrap: wrap; }
}

/* ─── Sol menü (reklamdaki sade düzen): düz ikon, büyük yazı, seçili = kırmızı + sol çizgi ─── */
.sidebar { width: 240px; box-shadow: none; }
.sidebar-section { padding: 6px 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-section-title { font-size: 10px; letter-spacing: .14em; padding: 12px 22px 4px; color: var(--gray-400); }
.sidebar-item { gap: 12px; padding: 11px 20px; font-size: 15px; font-weight: 500; color: #444; border-left: 4px solid transparent; }
.sidebar-item:hover { background: var(--red-bg); color: var(--red); border-left-color: transparent; }
.sidebar-item.active { background: rgba(204,0,0,0.07); color: var(--red); font-weight: 700; border-left-color: var(--red); }
.sidebar-icon, .sidebar-item.active .sidebar-icon, .sidebar-item:hover .sidebar-icon { width: 22px; height: auto; background: none; font-size: 18px; border-radius: 0; }
.sidebar-item { white-space: nowrap; }

/* ─── Gezinme düğmesi (tek bileşen): Listeye dön / … aç ─── */
.nav-btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1.5px solid var(--gray-200); border-radius: 50px; background: #fff;
  color: var(--gray-800); font: 600 13px/1 var(--font-body); cursor: pointer; white-space: nowrap; vertical-align: middle; transition: border-color .15s, color .15s, background .15s, box-shadow .15s; }
.nav-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-bg); }
.nav-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(204,0,0,.18); border-color: var(--red); }
.nav-btn::before, .nav-btn::after { content: ''; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; flex-shrink: 0; }
.nav-btn.nav-back::before { transform: rotate(135deg); margin-left: 3px; }
.nav-btn.nav-back::after { display: none; }
.nav-btn.nav-go::before { display: none; }
.nav-btn.nav-go::after { transform: rotate(-45deg); margin-right: 3px; }
.nav-btn[hidden] { display: none; }
.hint .nav-btn, .pr-bad .nav-btn, .ro-note .nav-btn { height: 28px; padding: 0 12px; font-size: 12px; margin-left: 4px; }
/* Sayı kutuları her zaman sola yaslı (BRAND.md) */
input[type=number], input[inputmode=numeric], input[inputmode=decimal] { text-align: left !important; }

/* ─── Giriş ekranı ─── */
#login-screen { padding: 24px 16px; overflow-y: auto; }
.login-card { width: 440px; max-width: 100%; padding: 44px 44px 32px; }
.login-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.login-mark { width: 76px; height: 76px; border-radius: 20px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; }
.login-mark.has-logo { background: #fff; width: auto; min-width: 76px; max-width: 220px; padding: 8px 12px; }
.login-mark.has-logo img { height: 100%; width: auto; max-width: 196px; object-fit: contain; }
.login-title { margin-bottom: 28px; }
.login-title .main-title { font-size: 24px; }
.login-title .sub-title { letter-spacing: .14em; color: rgba(255,255,255,0.65); }
.form-group label { color: rgba(255,255,255,0.78); }
.form-group input::placeholder { color: rgba(255,255,255,0.38); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); font: 600 12px var(--font-body); cursor: pointer; }
.pw-toggle:hover { background: rgba(255,255,255,0.18); }
.caps-hint { margin-top: 6px; font-size: 12px; color: #ffd27a; }
.caps-hint[hidden] { display: none; }
.login-btn { text-transform: none; letter-spacing: .02em; font-size: 16px; font-weight: 700; margin-top: 4px; }
.login-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.login-footer { margin-top: 22px; line-height: 1.6; color: rgba(255,255,255,0.45); }
@media (max-width: 480px) { .login-card { padding: 32px 22px 24px; } .login-title .main-title { font-size: 21px; } }

/* ─── Aşama 1: ana sayfa sıkı düzen, ayarlar tek sayfa, imza ─── */
#page-dashboard .stats-grid { gap: 14px; margin-bottom: 14px; }
#page-dashboard .stat-card { padding: 14px 18px; }
#page-dashboard .stat-value { font-size: 26px; }
#page-dashboard .stat-icon { font-size: 26px; }
.quick-actions.qa-compact { grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.qa-compact .quick-action-card { padding: 10px 14px; gap: 10px; align-items: center; }
.qa-compact .qa-icon { width: 34px; height: 34px; font-size: 17px; }
.qa-compact .qa-label { font-size: 14px; }
.card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.settings-grid > .card { margin-top: 0 !important; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 12px; cursor: pointer; }
.audit-modal { width: min(1000px, 94vw); max-height: 88vh; display: flex; flex-direction: column; }
.audit-scroll { overflow: auto; max-height: 58vh; }
.print-sign { margin-top: 36px; display: flex; justify-content: flex-end; }
.print-sign div { text-align: center; min-width: 220px; }
.print-sign .ps-date { margin-bottom: 40px; }
.print-sign .ps-name { font-weight: 700; }
@media (max-width: 1000px) { .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .quick-actions.qa-compact { grid-template-columns: 1fr; } }
.audit-foot { text-align: center; font-size: 13px; color: var(--gray-400); padding: 12px; }
.audit-foot[hidden] { display: none; }

/* Aşama 2: personel / kurucu müdür / noter belgesi */
.doc-box { display: flex; flex-direction: column; gap: 10px; }
.doc-state { font-size: 14px; }
.doc-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-btns label.btn { cursor: pointer; }
.doc-print-frame { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }
#page-kurucu .notice { margin-bottom: 16px; }
/* Kaydet çubuğu ekranın altına yapışsın: .main'deki overflow-x:hidden onu kaydırma kabı yapıp sticky'yi bozuyordu; clip kap oluşturmaz */
.main { overflow-x: clip; min-width: 0; }
/* Kaydet çubuklu her form/sayfa: içerik kısa olsa da çubuk ekranın en altında (tek kalıp: .bar-page > .save-bar) */
.bar-page:not(.page):not([hidden]), .page.bar-page.active { display: flex; flex-direction: column; min-height: calc(100dvh - 64px - 30px); }
.bar-page > * { flex-shrink: 0; }
.bar-page > .save-bar { margin-top: auto; }
@media (max-width: 768px) { .bar-page:not(.page):not([hidden]), .page.bar-page.active { min-height: calc(100dvh - 60px - 14px); } }
/* Sistem Ayarları: Kurum Bilgileri kartı yanındaki Kabul Komisyonu kartıyla aynı boyda; Kaydet kartın dibinde */
#page-ayarlar > .settings-grid { align-items: stretch; }
/* ? bilgi düğmesi + yetkiler penceresi */
.help-btn { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gray-200); background: #fff; color: var(--gray-600); font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.help-btn:hover, .help-btn:focus-visible { border-color: var(--red); color: var(--red); background: var(--red-bg); outline: none; }
.roles-modal { max-width: 760px; width: 94vw; }
.roles-table td:not(:first-child), .roles-table th:not(:first-child) { text-align: center; white-space: nowrap; width: 84px; }
.roles-table td:first-child { font-size: 13px; }
/* ── Yoklama çizelgesi (ekran) ── */
.yk-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.yk-controls .mini-input { min-width: 0; width: auto; padding: 6px 10px; }
.yk-lock { border-left-color: var(--warn) !important; }
.yk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.yk-title { font-size: 13px; font-weight: 700; color: var(--gray-600); letter-spacing: .3px; }
.yk-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.yk-tools[hidden] { display: none; }
.yk-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: 10px; }
.yk-grid { border-collapse: collapse; width: 100%; min-width: max-content; font-size: 12px; }
.yk-grid th { background: var(--gray-50); color: var(--gray-600); font-weight: 700; padding: 6px 0; text-align: center; border-bottom: 1px solid var(--gray-200); min-width: 26px; }
.yk-grid td { border-bottom: 1px solid var(--gray-100); border-left: 1px solid var(--gray-100); text-align: center; height: 30px; padding: 0; }
.yk-grid .yk-sno { width: 38px; color: var(--gray-400); border-left: 0; }
.yk-grid .yk-ad { text-align: left; padding: 0 10px; white-space: nowrap; font-weight: 600; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 170px; }
.yk-grid th.yk-ad { background: var(--gray-50); }
.yk-grid .yk-we { background: #faf6f3; }
.yk-cell { font-weight: 700; cursor: default; user-select: none; }
.yk-cell[role="button"] { cursor: pointer; }
.yk-cell[role="button"]:hover { box-shadow: inset 0 0 0 2px var(--gray-200); }
.yk-cell:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.yk-X, .yk-c.yk-X { background: var(--ok-bg) !important; color: var(--ok); }
.yk-İ, .yk-c.yk-İ { background: var(--info-bg) !important; color: var(--info); }
.yk-H, .yk-c.yk-H { background: var(--warn-bg) !important; color: var(--warn); }
.yk-Y, .yk-c.yk-Y { background: #efe3f7 !important; color: #6b2d8b; }
.yk-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.yk-legend { font-size: 13px; color: var(--gray-600); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.yk-c { display: inline-flex; width: 24px; height: 24px; border-radius: 6px; align-items: center; justify-content: center; font-weight: 700; margin-left: 8px; }
.yk-sign { text-align: center; font-size: 13px; color: var(--gray-600); min-width: 220px; }
.yk-sign-ad { font-weight: 700; color: var(--gray-800); margin-top: 6px; }
.yk-onay { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 8px; font-size: 13px; }
.yk-onay input { width: auto; padding: 6px 10px; }
/* ── Yoklama çıktısı (A4 yatay, resmi şablon düzeni) ── */
.ykp-page { page-break-after: always; break-after: page; font-family: 'Times New Roman', Times, serif; color: #000; }
.ykp-page:last-child { page-break-after: auto; break-after: auto; }
.print-sheet .ykp-head { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.print-sheet .ykp-head td { border: 1px solid #000; vertical-align: middle; text-align: center; padding: 4px; }
.ykp-logo { width: 90px; height: 70px; }
.ykp-logo img { max-width: 80px; max-height: 64px; object-fit: contain; }
.ykp-docname { font-size: 9px; text-align: left; font-weight: 700; }
.ykp-title { font-size: 15px; font-weight: 700; margin-top: 2px; }
.ykp-kurum { font-size: 11px; margin-top: 2px; }
.ykp-meta { display: flex; justify-content: space-between; font-size: 11px; margin: 4px 0; }
.ykp-band { border: 1px solid #000; border-bottom: 0; text-align: center; font-size: 11px; font-weight: 700; padding: 2px; }
.ykp-sub { font-weight: 400; }
.print-sheet .ykp-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 9.5px; }
.print-sheet .ykp-grid th, .print-sheet .ykp-grid td { border: 1px solid #000; padding: 0; text-align: center; height: 17px; }
.ykp-grid .ykp-sno { width: 26px; }
.ykp-grid .ykp-ad { width: 150px; text-align: left !important; padding-left: 3px !important; white-space: nowrap; overflow: hidden; }
.ykp-grid .ykp-off { background: #ddd; }
.ykp-bottom { display: flex; justify-content: space-between; align-items: flex-start; margin-top: 6px; font-size: 11px; }
.ykp-sign { text-align: center; min-width: 200px; line-height: 1.5; }
.ykp-sign-ad { font-weight: 700; margin-top: 18px; }
.ykp-footer { font-size: 9px; font-style: italic; margin-top: 6px; border-top: 1px solid #000; padding-top: 2px; }
@media print { .print-sheet .ykp-grid td, .print-sheet .ykp-grid th { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.print-sheet .ykp-grid th { background: #fff !important; color: #000 !important; font-weight: 700; padding: 0 !important; font-size: 9.5px; letter-spacing: 0; text-transform: none; }
.print-sheet .ykp-grid td { color: #000; background: #fff; }
.print-sheet .ykp-grid td.ykp-off { background: #ddd; }
@media print { html, body { background: #fff !important; } }
.print-sheet .ykp-page, .print-sheet .ykp-page * { color: #000; }
.yk-period { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 14px; }
.yk-period .mini-input { width: auto; min-width: 0; padding: 7px 12px; font-weight: 700; font-size: 15px; }
.yk-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gray-200); background: #fff; font-size: 22px; line-height: 1; color: var(--gray-600); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding-bottom: 3px; }
.yk-arrow:hover, .yk-arrow:focus-visible { border-color: var(--red); color: var(--red); background: var(--red-bg); outline: none; }
.btn[hidden], .yk-tools[hidden] { display: none !important; }
.yk-grid td.yk-off { background: repeating-linear-gradient(45deg, var(--gray-50), var(--gray-50) 4px, var(--gray-100) 4px, var(--gray-100) 8px); }
.yk-tur { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ─── Formlar (Aşama 4) ─── */
.fm-new { display: flex; gap: 10px; flex-wrap: wrap; }
.fm-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-checks .engel-item { margin: 0; }
#fm-etki, #fm-arsiv { margin-bottom: 16px; }
.yk-cell.yk-form, .yk-c.yk-form { position: relative; cursor: help; }
.yk-cell.yk-form::after, .yk-c.yk-form::after { content: ''; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
/* çıktı: A4 dikey, resmi form düzeni */
.fp-page { font-family: 'Times New Roman', Times, serif; color: #000; font-size: 11.5px; }
.print-sheet .fp-page, .print-sheet .fp-page * { color: #000; }
.print-sheet .fp-head { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.print-sheet .fp-head td { border: 1px solid #000; vertical-align: middle; text-align: center; padding: 4px; }
.fp-logo { width: 95px; height: 78px; }
.fp-logo img { max-width: 86px; max-height: 70px; object-fit: contain; }
.fp-docname { font-size: 9px; text-align: left; font-weight: 700; }
.fp-title { font-size: 15px; font-weight: 700; margin-top: 4px; }
.fp-kurum { font-size: 11px; margin-top: 3px; }
.print-sheet .fp-t { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 0; }
.print-sheet .fp-t th, .print-sheet .fp-t td { border: 1px solid #000; padding: 4px 6px; vertical-align: top; text-align: left; font-size: 11.5px; background: #fff !important; color: #000 !important; text-transform: none; letter-spacing: 0; }
.print-sheet .fp-t th { width: 24%; font-weight: 700; }
.print-sheet .fp-t td.fp-band, .print-sheet .fp-band { text-align: center; font-weight: 700; background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-sheet .fp-t tr { height: 28px; }
.print-sheet .fp-t tr.fp-tall { height: 64px; }
.print-sheet .fp-t tr.fp-mid { height: 40px; }
.fp-opt { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; white-space: nowrap; }
.fp-box { display: inline-block; width: 11px; height: 11px; border: 1px solid #000; position: relative; flex-shrink: 0; }
.fp-box.on::after { content: '✕'; position: absolute; inset: -3px 0 0 1px; font-size: 11px; line-height: 14px; font-weight: 700; }
.print-sheet .fp-t tr.fp-sign td { height: 78px; text-align: center; }
.fp-sad { font-weight: 700; margin-top: 10px; min-height: 16px; }
.fp-gap { height: 10px; }
.print-sheet .fp-t td.fp-barkod { height: 90px; }
.print-sheet .fp-t td.fp-note { font-style: italic; text-align: center; }
.print-sheet .fp-t tr.fp-sign3 td > div { display: inline-block; width: 32.5%; text-align: center; vertical-align: top; min-height: 70px; }
.fp-small { font-size: 9.5px; margin-top: 6px; line-height: 1.4; }
.fp-footer { display: flex; justify-content: space-between; font-size: 9px; font-style: italic; margin-top: 8px; border-top: 1px solid #000; padding-top: 2px; }
.fp-letter { font-size: 12.5px; line-height: 1.55; }
.fp-letter p { text-indent: 36px; margin: 0 0 8px; text-align: justify; }
.fp-ldate { text-align: right; margin: 6px 0; }
.fp-lmeta span { display: inline-block; width: 44px; }
.fp-lto { text-align: center; font-weight: 700; margin: 14px 0 12px; }
.fp-lsign { margin: 6px 0 14px auto; width: 230px; text-align: center; }
.fp-lsign .fp-sad { margin-top: 24px; }
.fp-hbox { border: 1px solid #000; border-bottom: 0; padding: 3px; }
.print-sheet .fp-hosp td { width: 50%; height: 110px; }
.fp-hon { text-align: center; margin-top: 46px; }
.fp-contact { margin-top: 14px; font-size: 11px; line-height: 1.5; border-top: 1px solid #000; padding-top: 4px; }
.fp-hosp .fp-opt { white-space: normal; align-items: flex-start; margin-right: 0; }
.fp-hosp .fp-box { margin-top: 2px; }
.mz-karar { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.mz-karar .btn { justify-content: flex-start; }
.mzp-top { display: flex; justify-content: space-between; margin: 10px 0; font-size: 12.5px; }
.mzp-opts { margin: 8px 0 10px; font-size: 12.5px; }
.mzp-p { font-size: 12.5px; line-height: 1.5; text-indent: 36px; margin: 0 0 12px; }
.mzp-sign { width: 240px; margin: 14px 0 14px auto; text-align: center; font-size: 12px; }
.mzp-sign .fp-sad { margin-top: 26px; }
.mzp-karar { font-size: 12.5px; line-height: 2.1; margin-top: 18px; }

/* ─── Hasta kabul çıktısı: tek sayfa ─── */
.print-sheet .hkp { font-size: 11px; }
.print-sheet .hkp h1 { font-size: 17px; margin: 0 0 2px; }
.print-sheet .hkp h2 { font-size: 11.5px; margin: 10px 0 4px; }
.print-sheet .hkp table { font-size: 11px; }
.print-sheet .hkp .kv td { padding: 3px 6px; }
.print-sheet .hkp .kv td:first-child { width: 30%; }
.hkp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hkp-foto { width: 26mm; height: 34mm; object-fit: cover; border: 1px solid #000; }
.hkp-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.print-sheet .hkp .sign { margin-top: 26px; }

/* ─── Engelli İlk Kabul ─── */
.sidebar-item.sidebar-logout:hover { background: var(--red-bg); color: var(--red); }
.sidebar-item.sidebar-logout { margin-top: 8px; border-top: 1px solid var(--gray-200, #d9d9d9); } /* Çıkış'ın üstünde bölme çizgisi */
.ik-card { margin-bottom: 18px; }
.ik-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.ik-grid .field { margin: 0; }
.ik-wide { grid-column: 1 / -1; }
.ik-diagram { display: flex; justify-content: center; gap: 40px; margin: 4px 0 16px; }
.ik-diagram figure { margin: 0; text-align: center; }
.ik-diagram img { height: 200px; width: auto; }
.ik-diagram figcaption { font-weight: 700; font-size: 12px; }
#ik-scan-note { margin-bottom: 16px; }
tr.row-active td { background: var(--red-bg) !important; }
/* çıktı */
.print-sheet .ikp-t { margin-bottom: 6px; }
.print-sheet .ikp-foto { width: 30mm; text-align: center; vertical-align: middle; font-size: 9px; }
.print-sheet .ikp-foto img { width: 26mm; height: 33mm; object-fit: cover; }
.print-sheet .fp-t td.ikp-mid { height: 90px; }
.print-sheet .fp-t td.ikp-big { height: 520px; }
.ikp-sign { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12px; text-align: center; }
.ikp-sign > div { min-width: 200px; }
.ikp-sign3 > div { flex: 1; min-width: 0; }
.ikp-sign1 { margin-top: 16px; font-size: 12px; }
.ikp-page { page-break-after: always; break-after: page; }
.ikp-page:last-child { page-break-after: auto; break-after: auto; }
.ikp-body { display: flex; justify-content: space-around; margin: 10px 0; }
.ikp-body figure { margin: 0; text-align: center; }
.ikp-body figcaption { font-weight: 700; margin-bottom: 4px; }
.ikp-body img { height: 62mm; width: auto; }
.ikp-konu { margin: 8px 0; font-size: 12.5px; }
.ikp-metin { min-height: 150mm; font-size: 12.5px; line-height: 1.6; border-top: 1px solid #000; padding-top: 8px; text-indent: 36px; }
#page-ilk-kabul .table-wrapper th { white-space: normal; line-height: 1.25; padding: 10px 10px; font-size: 11px; vertical-align: middle; }
#page-ilk-kabul .table-wrapper td { padding: 10px 10px; }
#ik-list td:first-child strong { white-space: nowrap; }

/* ─── Harçlıklar ─── */
.hr-tabs2 { margin: 0 0 16px; display: inline-flex; }
#page-hacliklar .card[data-hr] { margin-bottom: 18px; }
.hr-birim { max-width: 120px; }
.hr-sub { margin: 18px 0 8px; font-size: 13px; color: var(--gray-600); }
table.hr-edit input, table.hr-edit select { width: 100%; min-width: 90px; padding: 6px 8px; border: 1.5px solid var(--gray-200); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }
table.hr-edit td { padding: 6px 6px; }
.hr-foot td { font-weight: 700; background: var(--gray-50); }
.hr-preview { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: 10px; padding: 12px; background: #fff; }
.hr-preview .print-sheet { padding: 0; min-width: 1000px; }
.print-sheet .hrp-ad { font-size: 12px; margin: 6px 0; }
.print-sheet .hrp-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 10.5px; color: #000; }
.print-sheet .hrp-t th, .print-sheet .hrp-t td { border: 1px solid #000; padding: 3px 4px; height: 22px; background: #fff !important; color: #000 !important; text-transform: none; letter-spacing: 0; vertical-align: middle; }
.print-sheet .hrp-t th { font-weight: 700; text-align: center; }
.hrp-tar { width: 70px; } .hrp-tut { width: 95px; } .hrp-bak { width: 130px; } .hrp-imza { width: 70px; }
.print-sheet .hrp-t td.hrp-sum { text-align: right; font-weight: 700; }

/* ─── Sistem Ayarları sekmeleri ─── */
#page-ayarlar .page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.ay-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ay-tabs button { border: 1.5px solid var(--gray-200); background: #fff; color: var(--gray-600); border-radius: 10px; padding: 10px 16px; font: 600 14px var(--font-body); cursor: pointer; }
.ay-tabs button:hover { border-color: var(--red); color: var(--red); }
.ay-tabs button.active { background: var(--red); border-color: var(--red); color: #fff; }
.ay-body > .card, #page-ayarlar > .card[data-ay-sec] { max-width: none; margin-bottom: 18px; }
#page-ayarlar .card[hidden] { display: none !important; }

/* ─── Kontrast: gün ışığında okunabilirlik (Abdullah 2026-11-19) ─── */
:root {
  --cream: #efe6e0; --readonly-bg: #ede6e1;
  --gray-50: #f1f1f1; --gray-100: #e4e4e4; --gray-200: #c9c9c9;
  --gray-400: #6b6b6b; --gray-600: #3a3a3a; --gray-800: #111;
  --red-bg: #fbe6e6; --ok-bg: #e0f2e7; --warn-bg: #fdf0cc; --info-bg: #dbe7fb;
}
.card { box-shadow: 0 2px 10px rgba(0,0,0,0.10); border: 1px solid #ddd3cd; }
.field input, .field select, .field textarea { border-color: var(--gray-200); color: var(--gray-800); }
.field label { color: var(--gray-600); }
::placeholder { color: #8a8a8a; opacity: 1; }

/* ─── Finans / fatura ─── */
.fn-card { max-width: 760px; }
.fn-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--gray-200); padding-bottom: 14px; margin-bottom: 16px; }
.fn-h1 { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--red-dark); }
.fn-h2 { font-size: 13px; color: var(--gray-400); }
.fn-no { text-align: right; font-size: 12px; color: var(--gray-400); }
.fn-no b { display: block; font-size: 20px; color: var(--gray-800); }
.fn-sum { margin-top: 6px; padding: 12px 14px; background: var(--gray-50); border-radius: 10px; font-size: 14px; }
.print-sheet .fnp { font-size: 12px; color: #000; }
.fnp-top { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #000; padding-bottom: 10px; }
.fnp-sat { display: flex; gap: 10px; line-height: 1.5; max-width: 55%; }
.fnp-logo img { max-width: 70px; max-height: 60px; }
.fnp-title { text-align: right; }
.fnp-h1 { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.fnp-h2 { font-size: 11px; margin-bottom: 6px; }
.print-sheet table.fnp-meta { width: auto; margin-left: auto; font-size: 12px; }
.print-sheet .fnp-meta th, .print-sheet .fnp-meta td { border: 1px solid #000; padding: 3px 8px; text-align: left; background: #fff !important; color: #000 !important; text-transform: none; letter-spacing: 0; }
.fnp-alici { margin: 14px 0; padding: 10px 12px; border: 1px solid #000; width: 60%; line-height: 1.5; }
.fnp-lbl { font-size: 10px; font-weight: 700; }
.print-sheet table.fnp-t { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.print-sheet .fnp-t th, .print-sheet .fnp-t td { border: 1px solid #000; padding: 5px 6px; background: #fff !important; color: #000 !important; text-transform: none; letter-spacing: 0; }
.print-sheet .fnp-t th { font-weight: 700; text-align: center; }
.fnp-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 10px; }
.fnp-yazi { flex: 1; padding-top: 4px; }
.fnp-iban { margin-top: 8px; }
.print-sheet table.fnp-tot { width: 300px; border-collapse: collapse; }
.print-sheet .fnp-tot th, .print-sheet .fnp-tot td { border: 1px solid #000; padding: 5px 8px; text-align: right; background: #fff !important; color: #000 !important; text-transform: none; letter-spacing: 0; }
.print-sheet .fnp-tot th { text-align: left; font-weight: 600; }
.print-sheet .fnp-g th, .print-sheet .fnp-g td { font-weight: 800; font-size: 13px; }
.fnp-sign { display: flex; justify-content: space-between; margin-top: 50px; text-align: center; }
.fnp-sign > div { width: 220px; border-top: 1px solid #000; padding-top: 4px; font-weight: 700; }
.fnp-sign span { font-weight: 400; font-size: 11px; }

/* ─── Personel özlük dosyası ─── */
/* Personel sayfası: kişinin dosyası sekmeli (Genel · Özlük Belgeleri · Kurumsal · Mazeret İzinleri) */
#oz-body .card, #oz-body .settings-grid { max-width: 1100px; margin-bottom: 14px; }
#oz-body .settings-grid > .card { margin-bottom: 0; }
#oz-body .settings-grid { margin-bottom: 14px; gap: 14px; }
#oz-body [data-st-sec][hidden] { display: none !important; }
.st-tabs { margin: 0 0 14px; }
.st-tabs button { padding: 8px 14px; }
.st-yok { display: none !important; }
.st-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#oz-body .oz-kml-drop { margin-bottom: 12px; padding: 8px 14px; }
#oz-body .oz-kml-thumb { width: 96px; height: 60px; flex-basis: 96px; }
.oz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 16px; }
.oz-grid .field { margin: 0; }
.oz-wide { grid-column: 1 / -1; }
.oz-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 12px; margin-top: 14px; }
.oz-doc-list { width: 100%; }
.oz-doc-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 4px 0; border-bottom: 1px solid var(--gray-100); }
.oz-doc-item:last-child { border-bottom: 0; }
.oz-doc-sira { font-weight: 700; min-width: 62px; }
.oz-doc-item a { flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oz-doc-item .btn-sm { padding: 3px 8px; }
.oz-doc-add { display: flex; gap: 8px; align-items: center; }
.oz-doc-add .mini-input { width: 150px; min-width: 0; }
.oz-doc { border: 1.5px dashed var(--gray-200); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.oz-doc-list { font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
.oz-doc-item a { color: var(--red-dark); font-weight: 600; text-decoration: none; }
.oz-iban { display: flex; gap: 8px; align-items: center; }
.oz-iban input { flex: 1; }
.hint.ok { color: var(--ok); } .hint.bad { color: var(--red); }
.topbar-user { position: relative; }
.um-count { background: var(--red); color: #fff; border-radius: 50px; padding: 0 7px; font-size: 11px; margin-left: 6px; }

/* personel kimlik fotokopisi: bırakma alanı + küçük resim (fotoğraf kutusu gibi) */
.oz-kml-drop { margin-bottom: 18px; padding: 14px 18px; }
.oz-kml-thumb { width: 132px; height: 84px; flex: 0 0 132px; border: 1px solid var(--gray-200); border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.oz-kml-thumb img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.oz-kml-drop.busy { opacity: .6; pointer-events: none; }
.oz-kml-print { max-width: 100%; max-height: 120mm; margin-top: 14px; border: 1px solid #999; }
.oz-foto-btns { display: flex; gap: 6px; justify-content: center; }
.oz-kml-btns { display: flex; flex-direction: column; gap: 6px; }
.oz-kml-btns[hidden] { display: none; }
/* sol menü: alçak ekranlarda (dizüstü + tarayıcı çubukları) kaydırmadan sığsın — yazı boyutu aynı, yalnız boşluklar azalır */
@media (min-width: 769px) and (max-height: 860px) {
  .sidebar-section { padding: 2px 0; }
  .sidebar-section-title { padding: 7px 22px 1px; line-height: 1.2; }
  .sidebar-item { padding: 6px 20px; line-height: 1.3; }
  .sidebar-icon { line-height: 1; }
}
@media (min-width: 769px) and (max-height: 620px) {
  .sidebar-section-title { padding: 8px 22px 2px; }
  .sidebar-item { padding: 5px 20px; }
}

/* sol menü, çok alçak ekran (İbrahim abi, 2026-11-23): Admin menüsü ~530 px yükseklikte de kaydırmadan sığsın; yazı aynı, boşluk ve simge biraz küçük */
@media (min-width: 769px) and (max-height: 680px) {
  .sidebar-section { padding: 1px 0; }
  .sidebar-section-title { padding: 3px 22px 0; line-height: 1.1; }
  .sidebar-item { padding: 2px 20px; line-height: 1.2; }
  .sidebar-item .sidebar-icon, .sidebar-item:hover .sidebar-icon, .sidebar-item.active .sidebar-icon { font-size: 18px; }
}

/* ana sayfa, ~1200 px genişlik (İbrahim abi, 2026-11-23): sol kart (Son Kayıtlı Hastalar) ile sağ kutular alt alta değil yan yana kalsın; sayfa kısalsın */
@media (min-width: 900px) and (max-width: 1200px) {
  #page-dashboard .dashboard-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

/* sayfa boyu (2026-11-23): .layout'un 64px üst boşluğu body'ye taşıp her sayfada 64px gereksiz kaydırma yaratıyordu; body içinde tutulur */
body { display: flow-root; }
#app { min-height: calc(100vh - 64px); }

/* ana sayfa, alçak ekran (İbrahim abi, 2026-11-23): ~530 px yükseklikte kaydırmadan sığsın; yalnız boşluk/dolgu küçülür, yazılar aynı */
@media (min-width: 900px) and (max-height: 600px) {
  #page-dashboard .stat-card { padding: 4px 12px; }
  #page-dashboard .stat-label { font-size: 12px; line-height: 1.15; padding-right: 26px; }
  #page-dashboard .stat-value { font-size: 22px; line-height: 1.1; }
  #page-dashboard .stat-icon { font-size: 20px; }
  #page-dashboard .qa-compact .quick-action-card { padding: 4px 12px; }
  #page-dashboard .qa-compact .qa-icon { width: 30px; height: 30px; font-size: 16px; }
  #page-dashboard .qa-compact .qa-label { font-size: 13px; line-height: 1.2; }
  #page-dashboard .card { padding: 8px 14px; }
  #page-dashboard .card-title { margin-bottom: 4px; }
  #page-dashboard .table-wrapper th { padding-top: 5px; padding-bottom: 5px; }
  #page-dashboard #recent-body td { padding-top: 3px; padding-bottom: 3px; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  #page-dashboard #recent-body td:nth-child(4) { max-width: 110px; }
  #page-dashboard #recent-body td:last-child { max-width: none; overflow: visible; }
  #page-dashboard .table-wrapper th, #page-dashboard #recent-body td { padding-left: 8px; padding-right: 8px; }
  #page-dashboard .recent-actions { margin-top: 4px; }
  #page-dashboard .today-date { font-size: 19px; }
  #page-dashboard .today-staff { margin-top: 4px; padding-top: 4px; }
  #page-dashboard #engel-dist .empty { padding: 4px 0; }
  #page-dashboard .dy-mini a { padding: 4px 30px 4px 10px; }
  #page-dashboard .dash-help { margin-top: 4px; flex-wrap: nowrap; gap: 4px; }
  #page-dashboard .dash-help .btn { padding: 4px 8px; font-size: 12px; white-space: nowrap; }
  #page-dashboard .today-card { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 0; }
  #page-dashboard .today-card .card-title { margin-bottom: 0; }
  #page-dashboard .today-card .today-date { margin-bottom: 0; }
  #page-dashboard .today-card #today-sub { flex: 1 1 100%; }
  #page-dashboard .today-card .today-staff { flex: 1 1 100%; }
  .layout > .main { padding-top: 10px; padding-bottom: 6px; }
}

/* sol menü başlıkları (ANA MENÜ, HASTA KAYDI …) menü maddesiyle (Ana Sayfa) aynı büyüklükte (İbrahim abi, 2026-11-23) */
.sidebar-section-title { font-size: 15px; letter-spacing: .08em; }

/* Personel seçimi yanında Sil + silinen personel arşivi (2026-11-19) */
.btn-danger-ghost { background: transparent; border: 1px solid var(--red-line); color: var(--red-dark); }
.btn-danger-ghost:hover { background: var(--red-bg); border-color: var(--red); }
.arsiv-body { max-height: 62vh; overflow: auto; }
.arsiv-body table { width: 100%; }
.arsiv-kv { display: grid; grid-template-columns: 180px 1fr; gap: 4px 12px; font-size: 13px; margin: 6px 0 12px; }
.arsiv-kv span { color: #555; }
.arsiv-files a { margin-right: 10px; display: inline-block; margin-bottom: 4px; }
.ik-att-cell { white-space: nowrap; }
.ik-att-cell .btn { margin-right: 4px; }
/* Kırpma penceresi alçak ekranda da sığsın; Kırp ve Kaydet hep görünür (2026-11-19) */
.crop-modal .modal-footer { position: sticky; bottom: -32px; background: white; padding-bottom: 4px; }
@media (max-height: 640px) {
  .crop-modal { padding: 16px 20px; max-height: 96vh; }
  .crop-modal .modal-title { margin-bottom: 8px; font-size: 17px; }
  .crop-modal .crop-help { margin-bottom: 6px !important; }
  .crop-modal .field { margin-top: 8px !important; }
  .crop-modal .modal-footer { bottom: -16px; margin-top: 10px; }
}
/* Son Kayıtlı Hastalar: seçip yazdırma (2026-11-19) */
.chk-col { width: 32px; text-align: center; }
.chk-col input { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; }
.audit-modal .chk-col { width: 70px; }
.au-all { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; cursor: pointer; }
.audit-modal .modal-footer { justify-content: space-between; }
.recent-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Düzenlemeler3 (2026-11-19) */
.ik-not { margin: 12px 0 0; }
.print-sheet .fp-t td.ikp-not { font-style: italic; text-align: left; }
#page-ilk-kabul .page-title { font-size: 24px; }
@media (max-width: 768px) { #page-ilk-kabul .page-title { font-size: 22px; } }
#ik-drop { padding: 10px 16px; gap: 12px; }
#ik-drop .pdf-drop-icon { font-size: 24px; }
#ik-drop .pdf-drop-title { font-size: 14px; }
/* İlk Hasta Kabul listesi: sekme değişince (ör. Tutanak) sütunlar kaymasın; sayfa ekrana sığsın */
html { scrollbar-gutter: stable; }
table.ik-list-t { table-layout: fixed; min-width: 860px; }
table.ik-list-t td, table.ik-list-t th { overflow-wrap: anywhere; }
table.ik-list-t .ik-att-cell { white-space: normal; }
table.ik-list-t .ik-att-cell .btn { margin: 2px 4px 2px 0; }
/* Yoklama: gün sayısı sütunu + ayrılan hasta uyarısı (yalnız ekranda) */
.yk-grid .yk-gun { min-width: 40px; font-weight: 700; color: var(--gray-800); border-left: 1px solid var(--gray-200); border-right: 2px solid var(--gray-200); background: var(--gray-50); }
.yk-ayrilan { margin: 12px 0 0; color: var(--red-dark); background: var(--red-bg); border-color: var(--red-line); }
.yk-ayrilan div + div { margin-top: 4px; }
@media print { .no-print { display: none !important; } }
.fn-gun { margin: -4px 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--info-bg); color: var(--info); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fn-gun .warn { color: var(--warn); }

/* ─── Kurum içi sohbet ─── */

/* İlk kabul listesi: durum işaretleri */
.ik-ico { font-size: 18px; line-height: 1; cursor: default; }
.ik-ico small { font-size: 12px; font-weight: 700; }
table.ik-list-t td:nth-child(5) { font-size: 12px; white-space: nowrap; overflow-wrap: normal; }

/* ─── Ana sayfa düzeni (2026-11-20, Düzeltme.docx) ─── */
#page-dashboard .page-header { margin-bottom: 10px; padding-bottom: 8px; }
#page-dashboard .stats-grid { grid-template-columns: repeat(4, minmax(0, 210px)); justify-content: start; gap: 10px; margin-bottom: 10px; }
#page-dashboard .stat-card { padding: 9px 14px; }
#page-dashboard .quick-actions.qa-compact { grid-template-columns: repeat(3, minmax(0, 210px)); justify-content: start; gap: 10px; margin-bottom: 12px; }
@media (max-width: 768px) { #page-dashboard .stats-grid { grid-template-columns: 1fr 1fr; } #page-dashboard .quick-actions.qa-compact { grid-template-columns: 1fr; } }
.today-card { max-width: 280px; padding: 14px 16px; }
.today-card .card-title { margin-bottom: 8px; }
.today-date { font-size: 22px; font-weight: 700; color: var(--red); margin-bottom: 2px; }
.today-staff { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--gray-100); font-size: 13.5px; color: var(--gray-600); }
.dash-help { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Ana sayfa ince ayar (2026-11-20): başlık altı boşluk en az; üst ve alt sıra kutuları aynı genişlikte (aynı 4 sütunlu ızgara) */
#page-dashboard { --dash-w: 210px; }
#page-dashboard .page-header { margin-bottom: 4px; padding-bottom: 4px; border-bottom-width: 1px; }
#page-dashboard .stats-grid, #page-dashboard .quick-actions.qa-compact { grid-template-columns: repeat(4, var(--dash-w)); justify-content: start; gap: 10px; }
#page-dashboard .stats-grid { margin-bottom: 6px; }
#page-dashboard .quick-actions.qa-compact { margin-bottom: 8px; }
#page-dashboard .stat-card, #page-dashboard .quick-action-card { box-sizing: border-box; min-width: 0; width: var(--dash-w); }
@media (max-width: 1000px) { #page-dashboard .stats-grid, #page-dashboard .quick-actions.qa-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } #page-dashboard .stat-card, #page-dashboard .quick-action-card { width: auto; } }
@media (max-width: 768px) { #page-dashboard .quick-actions.qa-compact { grid-template-columns: 1fr; } }

/* Bugün kartı sağ sütundaki diğer kartlarla (Engel Dağılımı) aynı genişlikte; Tanıtım/Yardım düğmeleri ortada */
.today-card { max-width: none; width: 100%; }
.dash-help { justify-content: center; }

/* Kabul Edilmeyen: dikkat çekmesi için kalın ve kırmızı yazı */
#page-dashboard .stat-label-uyari { font-weight: 800; color: var(--red); }

/* Ana sayfa sağ üst: çerçeveli kurum logosu */
.dash-top { display: flex; gap: 16px; align-items: stretch; }
.dash-top-left { flex: 0 0 auto; min-width: 0; }
.dash-logo-frame { margin-left: auto; flex: 0 1 220px; min-width: 120px; max-width: 240px; display: flex; align-items: center; justify-content: center; padding: 10px; background: #fff; border: 2px solid var(--gray-200); border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.08); box-sizing: border-box; margin-bottom: 8px; overflow: hidden; }
.dash-logo-frame img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.dash-logo-empty { color: var(--gray-400); font-size: 13px; text-align: center; }
@media (max-width: 1100px) { .dash-top { display: block; } .dash-logo-frame { display: none; } }

/* Kurum logosu çerçevesi: siyah çizgili */
.dash-logo-frame { border: 2px solid #111; }

/* Ana sayfa simgeleri daha canlı (2026-11-20) */
#page-dashboard .stat-icon { opacity: 1; font-size: 30px; filter: saturate(1.3) drop-shadow(0 1px 2px rgba(0,0,0,.18)); }
#page-dashboard .qa-compact .qa-icon { background: linear-gradient(135deg, rgba(204,0,0,0.22), rgba(204,0,0,0.12)); font-size: 20px; width: 38px; height: 38px; filter: saturate(1.35); }

/* Soldaki menü simgeleri de ana sayfa gibi canlı (2026-11-20) */
.sidebar-item .sidebar-icon, .sidebar-item:hover .sidebar-icon, .sidebar-item.active .sidebar-icon { opacity: 1; font-size: 20px; filter: saturate(1.4) drop-shadow(0 1px 1.5px rgba(0,0,0,.2)); }

/* Ana sayfa: üst sırada 5 kutu (erkek, bayan, bu ay kabul, karar bekleyen, kabul edilmeyen); alt sıra aynı 5 sütunlu ızgara → aynı genişlik */
.dash-top-left { flex: 1 1 auto; max-width: 1080px; }
.dash-logo-frame { flex: 0 0 190px; min-width: 150px; }
#page-dashboard .stats-grid, #page-dashboard .quick-actions.qa-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#page-dashboard .stat-card, #page-dashboard .quick-action-card { width: auto; }
@media (max-width: 1000px) { #page-dashboard .stats-grid, #page-dashboard .quick-actions.qa-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
table.ik-list-t td:nth-child(3) { font-size: 12px; white-space: nowrap; overflow-wrap: normal; }

/* ─── Fotoğraf galerisi ─── */
.gal-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gal-tile { position: relative; border: 2px solid var(--gray-200); border-radius: 12px; background: #fff; padding: 6px; cursor: pointer; text-align: center; }
.gal-tile:hover { border-color: var(--red); }
.gal-tile.sel { border-color: var(--red); box-shadow: 0 0 0 3px rgba(204,0,0,.18); }
.gal-tile img { display: block; width: 100%; height: 130px; object-fit: contain; background: #faf7f5; border-radius: 8px; }
.gal-tile .gal-ad { font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-tile .gal-chk { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; accent-color: var(--red); }
.gal-tile .gal-del { position: absolute; top: 6px; right: 6px; padding: 2px 6px; font-size: 12px; }
.gal-print-page { page-break-after: always; display: flex; align-items: center; justify-content: center; min-height: 270mm; }
.gal-print-page:last-child { page-break-after: auto; }
.gal-print-page img.fit { max-width: 190mm; max-height: 270mm; }
.gal-print-page img.half { max-width: 190mm; max-height: 135mm; }
.gal-print-page.top { align-items: flex-start; }
.gal-print-page .vs { display: grid; grid-template-columns: repeat(4, 45mm); gap: 4mm; align-content: start; }
.gal-print-page .vs img { width: 45mm; height: 60mm; object-fit: cover; }

/* Galeri küçük resimleri vesikalık (4,5×6 = 3:4 dikey) oranında */
.gal-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.gal-tile img { height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.gal-tile .gal-ana { position: absolute; top: 6px; right: 40px; padding: 2px 6px; font-size: 12px; }

/* Geçici şifre uyarı çubuğu */
.pw-warn { background: #fff3cd; border: 2px solid #e0a800; color: #5c4400; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pw-warn[hidden] { display: none; }
.pw-warn-btn { background: #cc0000; color: #fff; border: 0; border-radius: 8px; font-weight: 700; padding: 6px 12px; cursor: pointer; }

/* ─── Yeni Düzenleme (2026-11-20) ─── */
/* Personel kartı: Kimlik sekmesi başlık satırında, boşluk en az; fotoğraf kutusu vesikalık (3:4) */
#st-view-form > .page-header { margin-bottom: 6px; padding-bottom: 6px; border-bottom-width: 1px; }
#st-view-form .form-head { flex-wrap: wrap; gap: 8px 12px; }
#st-view-form .st-tabs { margin: 0; gap: 6px; }
#st-view-form .st-tabs button { padding: 7px 12px; font-size: 13px; }
.oz-photo-col .photo-upload, #oz-foto-box { width: 120px !important; height: 160px !important; }
.oz-photo-col { align-items: center; }
.oz-photo-col .oz-foto-btns { flex-wrap: wrap; }
/* Sistem Ayarları: üst bölüm ile sekme satırı arası en az; kullanıcı tablosu bir tık küçük */
#page-ayarlar .page-header { margin-bottom: 6px; padding-bottom: 4px; border-bottom-width: 1px; }
#page-ayarlar .ay-tabs { margin-bottom: 8px; }
.u-pano table { font-size: 12.5px; }
.u-pano th { font-size: 11px; padding: 8px 10px; }
.u-pano td { padding: 7px 10px; }
.u-pano .btn-sm { font-size: 11.5px; padding: 4px 8px; }
.u-pano select.mini-input { font-size: 12px; }
/* Kullanıcılar tablosu sayfaya tam otursun (İbrahim abi, 2026-11-25): uzun ad/kullanıcı adı satır kırar, işlem düğmeleri alt satıra sarar; yatay taşma yok */
.u-pano table { table-layout: auto; width: 100%; }
.u-pano td:nth-child(2) { overflow-wrap: anywhere; }
.u-pano .u-islem { white-space: normal; min-width: 150px; }
.u-pano .u-islem .btn-sm { margin: 2px 4px 2px 0; }

/* Personel kartı: İletişim + (altında) Görev ve Giriş Hesabı çerçevesi sol sütunda */
.st-sol-kolon { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.st-sol-kolon > .card { margin-top: 0 !important; margin-bottom: 0 !important; }

.oz-gh-baslik { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.oz-gh-baslik .oz-gh-sag { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }

.oz-kisi-ad { margin: -6px 0 12px 54px; font-weight: 700; font-size: 15px; color: var(--red-dark); }

/* st-hiza: Kimlik sekmesinde sol ve sağ kartlar üstten alta aynı hizada (alt kenarlar eşit) */
#oz-body .st-genel-grid { align-items: stretch; }
.st-sol-kolon > .card:last-child { flex: 1 1 auto; }

#pw-tip { display: none; position: fixed; z-index: 9999; max-width: 300px; background: #2a1a1a; color: #fff; padding: 9px 12px; border-radius: 8px; font-size: 13px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.35); pointer-events: none; }
#pw-tip code { font-size: 16px; font-weight: 700; letter-spacing: .5px; background: rgba(255,255,255,.14); padding: 2px 8px; border-radius: 5px; user-select: all; }
#pw-tip small { opacity: .8; }

/* ana-bosluk (İbrahim abi, 2026-11-21): Ana Sayfa başlığı 1 punto küçük, panolar arası en az aralık (6px) */
#page-dashboard .page-title { font-size: 24.7px; }
#page-dashboard .dash-top { gap: 6px; }
#page-dashboard .stats-grid, #page-dashboard .quick-actions.qa-compact { gap: 6px; }
#page-dashboard .stats-grid { margin-bottom: 6px; }
#page-dashboard .quick-actions.qa-compact { margin-bottom: 6px; }
#page-dashboard .dashboard-grid { gap: 6px; margin-top: 0; }
#page-dashboard .card { margin-bottom: 6px !important; }
#page-dashboard .dashboard-grid > div > .card:last-of-type { margin-bottom: 0 !important; }
#page-dashboard .dash-help { margin-top: 6px; }

/* tum-bosluk (İbrahim abi, 2026-11-21): tüm sayfalarda boşluklar Ana Sayfa'daki gibi sıkı */
.main { padding: 14px 20px 18px; }
.page-header { margin-bottom: 6px; padding-bottom: 6px; border-bottom-width: 1px; }
.card { padding: 14px 18px; }
.card-title { margin-bottom: 8px; }
.stats-grid { gap: 6px; margin-bottom: 6px; }
.quick-actions { gap: 6px; margin-bottom: 6px; }
.form-row { gap: 8px 12px; margin-bottom: 8px; }
.grid-2, .settings-grid { gap: 8px; }
.patient-top { gap: 12px; }
.list-toolbar { margin-bottom: 8px; }
.pdf-drop { padding: 10px 16px; gap: 12px; }
.notice { margin-top: 8px; padding: 8px 14px; }
.card-actions { margin-top: 8px; }
.pager { margin-top: 6px; }
.page .card + .card, .page .notice + .card, .page .pdf-drop + .card { margin-top: 8px; }
.page [style*="margin-top:20px"] { margin-top: 8px !important; }
.page [style*="margin-top:18px"] { margin-top: 8px !important; }
.page [style*="margin-top:14px"] { margin-top: 8px !important; }
.page [style*="margin-bottom:16px"] { margin-bottom: 8px !important; }

/* ik-baslik-satiri (İbrahim abi, 2026-11-21): İlk Hasta Kabul'da PDF bırakma kutusu başlıkla aynı satırda, sağında */
#page-ilk-kabul .ik-baslik-satiri { gap: 14px; align-items: center; flex-wrap: nowrap; }
#page-ilk-kabul .ik-baslik-satiri .page-title { white-space: nowrap; }
#page-ilk-kabul .ik-baslik-satiri .pdf-drop { flex: 1 1 auto; min-width: 0; margin: 0; padding: 6px 14px; gap: 10px; }
#page-ilk-kabul .ik-baslik-satiri .pdf-drop-icon { flex: 0 0 auto; }
#page-ilk-kabul .ik-baslik-satiri .pdf-drop-title { font-size: 13.5px; line-height: 1.25; }
#page-ilk-kabul .ik-baslik-satiri .pdf-drop-sub { font-size: 11.5px; line-height: 1.25; }
@media (max-width: 1100px) { #page-ilk-kabul .ik-baslik-satiri { flex-wrap: wrap; } #page-ilk-kabul .ik-baslik-satiri .pdf-drop { flex-basis: 100%; } }

/* ik-baslik-punto (İbrahim abi, 2026-11-21): İlk Hasta Kabul başlığı 1 punto küçük (24 → 22,7 px) */
#page-ilk-kabul .ik-baslik-satiri .page-title { font-size: 22.7px; }

/* hk-ara-uzun (İbrahim abi, 2026-11-21): Hasta Kabul arama kutusu dört kademe uzun (190 → 370 px) */
#hk-search { min-width: 370px; }
@media (max-width: 768px) { #hk-search { min-width: 0; } }

/* hk-bar-kucuk (İbrahim abi, 2026-11-21): Hasta Kabul / Yeni Hasta alt çubuğundaki Yazdır ve Kaydet küçük */
#page-hasta-kabul .save-bar { padding: 8px 30px; gap: 8px; }
#page-hasta-kabul .save-bar .btn { font-size: 12px; padding: 6px 14px; border-radius: 8px; }
#page-hasta-kabul .save-bar .dirty-note { font-size: 12px; }

/* pdf-baslik-satiri (İbrahim abi, 2026-11-21): Rapor Kayıt / Sosyal İnceleme kayıt sayfasında PDF kutusu başlık satırında, adın sağında (İlk Hasta Kabul ile aynı düzen) */
.pdf-baslik-satiri { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.pdf-baslik-satiri .form-head { flex: 0 0 auto; flex-wrap: nowrap; }
.pdf-baslik-satiri .page-title { white-space: nowrap; }
.pdf-baslik-satiri .pdf-drop { flex: 1 1 auto; min-width: 0; margin: 0; padding: 6px 14px; gap: 10px; }
.pdf-baslik-satiri .pdf-drop-icon { flex: 0 0 auto; font-size: 24px; }
.pdf-baslik-satiri .pdf-drop-title { font-size: 13.5px; line-height: 1.25; }
.pdf-baslik-satiri .pdf-drop-sub { font-size: 11.5px; line-height: 1.25; }
@media (max-width: 1100px) { .pdf-baslik-satiri { flex-wrap: wrap; } .pdf-baslik-satiri .pdf-drop { flex-basis: 100%; } }

/* rp-kolon-esit (İbrahim abi, 2026-11-21, Düzeltme.docx): Rapor Kayıt "Başvuru Sahibinin Bilgileri" — kolonlar eşit genişlikte (3'lü ızgara), Adı ve Soyadı iki kolon boyunda satır sonuna uzar; boşluklar az */
#rp-view-form .rp-order-note { margin: 0 0 4px; }
#rp-view-form .rp-patient-top { gap: 12px; flex-wrap: nowrap; }
#rp-view-form .rp-patient-top > div { min-width: 0; }
#rp-view-form .rp-kolon3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; margin-bottom: 6px; }
#rp-view-form .rp-kolon3 .field { min-width: 0; margin: 0; }
#rp-view-form .rp-kolon3 .rp-span2 { grid-column: span 2; }
#rp-view-form .rp-sec .ro-note { margin: -2px 0 6px; }
#rp-view-form .rp-sec .form-row .field label { margin-bottom: 3px; }
@media (max-width: 768px) { #rp-view-form .rp-kolon3 { grid-template-columns: 1fr; } #rp-view-form .rp-kolon3 .rp-span2 { grid-column: auto; } #rp-view-form .rp-patient-top { flex-wrap: wrap; } }

/* si-liste-baslik (İbrahim abi, 2026-11-21): Sosyal İnceleme listesinde PDF kutusu "Sosyal İnceleme" başlığı ile "+ Yeni Sosyal İnceleme" düğmesi arasında */
#si-view-list .pdf-baslik-satiri > div:last-child { flex: 0 0 auto; }

/* rp-hr-liste-baslik (İbrahim abi, 2026-11-21 "yap"): Rapor Kayıt ve Harçlıklar listesinde PDF/kart kutusu başlık satırında (Rapor: başlık · kutu · düğmeler; Harçlık: başlık · kutu) */
#rp-view-list .pdf-baslik-satiri > div:last-child { flex: 0 0 auto; }
#hr-view-list .pdf-baslik-satiri .pdf-drop-sub { font-size: 11px; }

/* si-satir-punto (İbrahim abi, 2026-11-21): Sosyal İnceleme listesi satır yazıları küçük (tüm satırlar aynı, tutarlı görünsün) */
#si-all td { font-size: 12px; padding-top: 8px; padding-bottom: 8px; }
#si-all td b { font-size: 12.5px; }
#si-all td .muted-sm { font-size: 11px; }
#si-all .btn-sm { font-size: 11px; padding: 4px 9px; }

/* ik-yeni-hasta (İbrahim abi, 2026-11-21): + Yeni Hasta Kaydı ana sayfadan İlk Hasta Kabul listesinin araç satırına taşındı (sekmelerle arama kutusu arasındaki boşluk) */
#page-ilk-kabul .ik-yeni-hasta { margin-right: auto; font-weight: 800; font-size: 12.5px; padding: 7px 10px; white-space: nowrap; }
@media (min-width: 769px) { #page-ilk-kabul #ik-search { min-width: 0; width: 150px; } }

/* İki aşamalı giriş (2026-11-21): giriş ekranı kod/kurulum adımı + Hesabım bölümü */
#login-screen { align-items: flex-start; }
.login-card { margin: auto; }
#login-form .tf-title, #login-form .tf-steps, #login-form .tf-key, #login-form .tf-hint { color: rgba(255,255,255,0.9); }
#login-form .tf-key code { color: #fff; background: rgba(255,255,255,0.12); padding: 2px 6px; border-radius: 4px; }
#login-form.tf-kompakt .login-brand, #login-form.tf-kompakt .login-title { display: none; }
#login-form.tf-kompakt { padding-top: 24px; }
.tf-title { font-weight: 700; margin: 4px 0 10px; font-size: 15px; }
.tf-steps { margin: 0 0 10px 18px; padding: 0; font-size: 13px; line-height: 1.5; }
.tf-qr { width: 170px; height: 170px; margin: 6px auto 8px; background: #fff; border-radius: 8px; padding: 4px; box-sizing: border-box; }
.tf-qr svg { width: 100%; height: 100%; display: block; }
.tf-key { font-size: 12px; text-align: center; margin-bottom: 12px; word-break: break-all; }
.tf-key code { font-size: 13px; letter-spacing: .5px; }
.tf-hint { font-size: 12px; margin-top: 6px; opacity: .85; }
.tf-back { margin: 0 0 10px; }
#code { font-size: 22px; letter-spacing: 6px; text-align: center; }
#tf-box .tf-qr { border: 1px solid var(--gray-200); }
#tf-box .tf-key code { background: var(--gray-100, #f3f3f3); padding: 2px 6px; border-radius: 4px; }
.tf-kur-grid { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.tf-kur-sol { flex: 0 0 auto; }
.tf-kur-sag { flex: 1 1 260px; min-width: 240px; }
#tf-box .tf-qr { margin: 0; width: 180px; height: 180px; }
#tf-box .tf-steps { margin-top: 0; }
#tf-box .tf-key { text-align: left; }

/* Yardım — kısa kullanım kılavuzu (2026-11-21): ana sayfadaki ❓ Yardım paneli */
.yardim-govde { font-size: 14px; color: var(--gray-700, #333); line-height: 1.6; }
.yardim-govde h4 { margin: 14px 0 6px; font-size: 14.5px; color: var(--red); }
.yardim-govde h4:first-child { margin-top: 0; }
.yardim-govde ul { margin: 0 0 6px 18px; padding: 0; }
.yardim-govde li { margin-bottom: 5px; }

/* Formlar: hasta seçilmeden form kutucukları kapalı (2026-11-22) */
.fm-body.fm-kilitli { opacity: .55; }
.fm-body.fm-kilitli * { cursor: not-allowed; }
#fm-kilit-not { margin-top: 8px; color: var(--warn, #8a5a00); font-weight: 600; }
#fn-view-form.fn-kilitli .card :is(.form-row, .fn-gun, .fn-sum) { opacity: .55; }
#fn-view-form.fn-kilitli .card .form-row:has(#fn-hasta) { opacity: 1; }
#fn-kilit-not { margin-top: 6px; color: var(--warn, #8a5a00); font-weight: 600; }

/* KHS / BHKS belge kütüphanesi (2026-11-22): sol kategori sütunu + sağ belge listesi */
.khs-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.khs-kategoriler { display: flex; flex-direction: column; gap: 6px; flex: 0 0 240px; min-width: 200px; }
.khs-kat-btn { background: var(--warn-strong, #cc8a00); color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; font-size: 13.5px; text-align: left; cursor: pointer; }
.khs-kat-btn:hover { filter: brightness(1.08); }
.khs-kat-btn.active { background: var(--red, #8a1a1a); }
.khs-icerik { flex: 0 1 280px; min-width: 240px; }
.khs-alt-btn { background: #fff4d9; color: #5c4400; border: 1px solid var(--warn-strong, #cc8a00); border-radius: 8px; padding: 8px 12px; font-weight: 600; font-size: 13px; text-align: left; cursor: pointer; width: 100%; margin-bottom: 6px; display: block; }
.khs-alt-btn:hover { background: #ffe9b3; }
.khs-alt-btn.active { background: var(--warn-strong, #cc8a00); color: #fff; border-color: var(--warn-strong, #cc8a00); }
.khs-dosya-liste { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--gray-200, #e0e0e0); }
.khs-dosya-liste li { padding: 0; border-bottom: 1px solid var(--gray-100, #f0f0f0); font-size: 13.5px; }
.khs-dosya-liste li button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; background: none; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; border-radius: 6px; }
.khs-dosya-liste li button:hover { background: var(--gray-100, #f3f3f3); }
.khs-dosya-liste li button.active { background: #fff4d9; }
.khs-dosya-kod { color: var(--gray-600, #666); font-weight: 700; min-width: 86px; }

/* Sağ freym: seçili belgenin PDF önizlemesi + yazdır */
.khs-onizleme { flex: 1 1 300px; min-width: 280px; border-left: 1px solid var(--gray-200, #e0e0e0); padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.khs-onizleme-baslik { font-weight: 700; font-size: 13.5px; color: var(--gray-800, #222); }
.khs-onizleme-frame, #khs-onizleme-frame { width: 100%; height: 480px; border: 1px solid var(--gray-200, #e0e0e0); border-radius: 8px; background: #fff; }
.khs-onizleme #khs-yazdir-btn { align-self: flex-end; }

/* Sayfa başlığındaki arama kutusu + açılır sonuç listesi */
.khs-arama-kutu { position: relative; min-width: 260px; }
.khs-arama-sonuc { position: absolute; top: calc(100% + 4px); right: 0; left: 0; background: #fff; border: 1px solid var(--gray-200, #e0e0e0); border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto; z-index: 20; }
.khs-arama-sonuc button { display: block; width: 100%; padding: 8px 12px; background: none; border: 0; border-bottom: 1px solid var(--gray-100, #f0f0f0); text-align: left; cursor: pointer; font-size: 13px; }
.khs-arama-sonuc button:last-child { border-bottom: 0; }
.khs-arama-sonuc button:hover { background: var(--gray-100, #f3f3f3); }
.khs-arama-sonuc .khs-arama-yol { display: block; color: var(--gray-600, #666); font-size: 11.5px; margin-top: 1px; }


/* mobil kart: birden çok düğmeli hücre (İşlem vb.) ekrana sığsın — etiket üstte, düğmeler alt alta satırlara sarar */
@media (max-width: 768px) {
  .page table.m-cards td:has(.btn + .btn) { flex-wrap: wrap; justify-content: flex-start; row-gap: 6px; column-gap: 6px; white-space: normal !important; text-align: left !important; }
  .page table.m-cards td:has(.btn + .btn)::before { flex-basis: 100%; }
  .page table.m-cards td:has(.btn + .btn) > .btn { white-space: nowrap; flex: 0 0 auto; }
}

/* mobil: sekme ve filtre çubukları tek satır; sığmayan kısım parmakla yana kaydırılır */
@media (max-width: 768px) {
  .ay-tabs, .seg { flex-wrap: nowrap !important; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; max-width: 100%; overscroll-behavior-x: contain; }
  .ay-tabs::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
  .ay-tabs > button, .seg > button { flex: 0 0 auto; white-space: nowrap; }
  .ay-tabs { gap: 6px; }
  .ay-tabs > button { padding: 8px 13px; font-size: 13.5px; }
}

/* mobil kart: masaüstü tablo genişliği (min-width) kartı ekrandan taşırmasın; boş liste yazısı sarsın */
@media (max-width: 768px) {
  .page table.m-cards { min-width: 0 !important; table-layout: auto !important; }
  .page table.m-cards td.empty { display: block; white-space: normal !important; text-align: center !important; font-size: 13px; font-weight: 400; border-bottom: 0 !important; padding: 8px 0 !important; margin: 0; }
}

/* mobil Kaydet çubuğu: görünmeyen "kaydedilmemiş" notu yer kaplamasın; düğmeler tek satır yazı, sığmazsa alt satıra */
@media (max-width: 768px) {
  .save-bar { flex-wrap: wrap; gap: 8px; }
  .save-bar .dirty-note:not(.show) { display: none; }
  .save-bar .dirty-note.show { flex-basis: 100%; margin: 0; font-size: 12px; }
  .save-bar .btn { flex: 1 1 auto; white-space: nowrap; font-size: 13px; padding: 9px 10px; min-width: 0; }
}
@media (max-width: 768px) {
  /* tek satır sekmeler, içinde durdukları esnek satırı genişletmesin (Personel kartı başlığı vb.) */
  .ay-tabs, .seg { min-width: 0; }
  .form-head > *, .page-header > * { min-width: 0; max-width: 100%; }
  #st-view-form .st-tabs { flex: 1 1 100%; }
}
@media (max-width: 768px) {
  /* Yoklama dönem seçici: dar ekranda yıl/ay yazısı kırpılmasın */
  .yk-period { gap: 6px; }
  .yk-period select.mini-input { min-width: 0; flex: 1 1 0; padding: 7px 8px; font-size: 14px; }
  .yk-period #yk-yil { flex: 0 0 96px; }
  .yk-period .yk-arrow { flex: 0 0 34px; width: 34px; height: 34px; }
  .yk-period { margin-left: -4px; margin-right: -4px; }
}

/* çıktı başlığı logoları: kutu sabit, resim oranı korunarak sığdırılır (Safari/iPhone yazdırmada tablo hücresindeki
   max-width/max-height resmi basık/uzun gösterebiliyordu) */
.fp-logo img, .print-sheet .fp-logo img { width: 86px; height: 70px; max-width: none; max-height: none; object-fit: contain; display: inline-block; vertical-align: middle; }
.ykp-logo img, .print-sheet .ykp-logo img { width: 80px; height: 64px; max-width: none; max-height: none; object-fit: contain; display: inline-block; vertical-align: middle; }
.fnp-logo img { width: 70px; height: 60px; max-width: none; max-height: none; object-fit: contain; display: block; }
.hkp-head img[src*="/api/kurum/logo"] { height: 60px; width: auto; max-width: 160px; object-fit: contain; }

/* ─── Duyurular (Admin yayınlar, herkes okur) ─── */
.dmsg-baslik { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; cursor: pointer; }
.dmsg-baslik:hover { color: var(--red); }
.dmsg-tumu { font-size: 12px; font-weight: 600; color: var(--red); text-decoration: none; }
.dmsg-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--gray-400); font-size: 13px; line-height: 1; cursor: pointer; z-index: 1; }
.dmsg-x:hover, .dmsg-x:focus-visible { background: var(--gray-100); color: var(--red); outline: none; }
.dy-mini { position: relative; border-bottom: 1px solid var(--gray-100); }
.dy-mini:last-child { border-bottom: 0; }
.dy-mini a { display: flex; flex-direction: column; gap: 2px; padding: 8px 34px 8px 10px; color: inherit; text-decoration: none; border-left: 3px solid transparent; }
.dy-mini a:hover { background: var(--red-bg); }
.dy-mini.unread a { border-left-color: var(--red); }
.dy-mini-t { font-size: 14px; font-weight: 700; color: var(--gray-800); overflow-wrap: anywhere; }
.dy-mini-m { font-size: 13px; color: var(--gray-600); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dy-mini-z { font-size: 11px; color: var(--gray-400); }
.dy-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 840px; align-items: start; }
.dy-layout.dy-admin { grid-template-columns: minmax(0, 1fr) 340px; max-width: 1200px; }
.dy-form { display: none; margin: 0; }
.dy-admin .dy-form { display: block; grid-column: 2; grid-row: 1; position: sticky; top: 84px; }
.dy-form .field { margin-bottom: 12px; }
.dy-form textarea { min-height: 120px; }
.dy-form .btn { width: 100%; justify-content: center; }
.dy-list { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dy-item { background: #fff; border: 1px solid #ddd3cd; border-left: 4px solid transparent; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.dy-item.unread { border-left-color: var(--red); }
.dy-item header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dy-item h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--gray-800); overflow-wrap: anywhere; }
.dy-metin { font-size: 14px; line-height: 1.6; color: var(--gray-800); white-space: pre-wrap; overflow-wrap: anywhere; }
.dy-item footer { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--gray-100); font-size: 12px; color: var(--gray-600); }
.dy-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.dy-duzen .field { margin-bottom: 10px; }
.dy-duzen .dy-btns { margin-top: 4px; }
.dy-bos { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 56px 20px; background: #fff; border: 1px solid #ddd3cd; border-radius: 12px; color: var(--gray-800); text-align: center; }
.dy-bos span { font-size: 34px; }
.dy-bos small { font-size: 13px; color: var(--gray-600); }
@media (max-width: 1000px) {
  .dy-layout.dy-admin { grid-template-columns: minmax(0, 1fr); }
  .dy-admin .dy-form { grid-column: 1; grid-row: auto; position: static; }
  .dy-form textarea { min-height: 84px; }
}

/* ─── Mesajlar: solda konuşmalar, sağda sohbet; telefonda tek panel ─── */
#page-mesajlar.active { animation: none; }
.ms-wrap { --ms-h: calc(100dvh - 64px - 54px); display: grid; grid-template-columns: minmax(300px, 370px) minmax(0, 1fr); height: var(--ms-h); background: #fff; border: 1px solid #ddd3cd; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.ms-sol { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-right: 1px solid var(--gray-100); background: #fff; }
.ms-sol-bas { padding: 14px 16px 10px; border-bottom: 1px solid var(--gray-100); }
.ms-ara { position: relative; display: block; }
.ms-ara svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.ms-ara input { width: 100%; height: 40px; padding: 0 12px 0 36px; border: 1.5px solid transparent; border-radius: 50px; background: var(--gray-50); font-size: 14px; color: var(--gray-800); outline: none; }
.ms-ara input:focus { background: #fff; border-color: var(--red); }
.ms-liste { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ms-bolum { padding: 12px 16px 4px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray-400); }
.ms-liste-bos { padding: 32px 20px; text-align: center; font-size: 13px; color: var(--gray-600); }
.ms-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 10px 14px 10px 12px; border: 0; border-left: 4px solid transparent; background: transparent; text-align: left; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ms-row:hover { background: var(--gray-50); }
.ms-row:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }
.ms-row.active { background: rgba(204,0,0,.07); border-left-color: var(--red); }
.ms-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--bar-1), var(--bar-2)); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.ms-row-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-bottom: 1px; }
.ms-r1, .ms-r2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ms-ad { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.ms-ad b { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 600; color: var(--gray-800); }
.ms-ad small { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--gray-400); }
.ms-r1 time { flex: none; font-size: 12px; color: var(--gray-400); }
.ms-row.unread .ms-r1 time { color: var(--red); font-weight: 700; }
.ms-row.unread .ms-ad b { font-weight: 700; }
.ms-on { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 13px; color: var(--gray-600); }
.ms-row.unread .ms-on { color: var(--gray-800); font-weight: 600; }
.ms-on-m { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-rozet { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.ms-tik { flex: none; display: inline-flex; color: var(--gray-400); }
.ms-tik svg { display: block; height: 11px; width: auto; }
.ms-tik.ok { color: var(--red); }
.ms-sag { position: relative; display: flex; min-width: 0; min-height: 0; background: var(--cream); }
.ms-bos { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; text-align: center; color: var(--gray-600); }
.ms-bos[hidden], .ms-sohbet[hidden] { display: none; }
.ms-bos-ikon { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 8px; border-radius: 50%; background: #fff; color: var(--red); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.ms-bos-ikon svg { width: 36px; height: 36px; }
.ms-bos b { font-family: var(--font-head); font-size: 22px; color: var(--gray-800); }
.ms-bos small { font-size: 13px; }
.ms-sohbet { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ms-bas { flex: none; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 16px; background: #fff; border-bottom: 1px solid var(--gray-100); }
.ms-bas .ms-av { width: 40px; height: 40px; font-size: 14px; }
.ms-bas-m { min-width: 0; display: flex; flex-direction: column; }
.ms-bas-m b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--gray-800); }
.ms-bas-m small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--gray-600); }
.ms-geri { display: none; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; margin-right: -6px; border: 0; border-radius: 50%; background: transparent; color: var(--gray-800); cursor: pointer; }
.ms-geri svg { width: 22px; height: 22px; }
.ms-geri:active { background: var(--gray-100); }
.ms-akis { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 2px; padding: 14px 7% 10px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.ms-akis > :first-child { margin-top: auto; }
.ms-gun { align-self: center; margin: 10px 0 8px; }
.ms-gun span { display: inline-block; padding: 4px 12px; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 600; color: var(--gray-600); box-shadow: 0 1px 2px rgba(0,0,0,.10); }
.ms-sohbet-bos { align-self: center; margin-bottom: auto; padding: 8px 14px; border-radius: 8px; background: #fff; font-size: 13px; color: var(--gray-600); box-shadow: 0 1px 2px rgba(0,0,0,.10); }
.ms-b { position: relative; align-self: flex-start; max-width: min(72%, 560px); padding: 6px 10px 7px; border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.42; color: var(--gray-800); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.ms-b.ben { align-self: flex-end; background: var(--red-bg); }
.ms-b.ilk { margin-top: 7px; border-top-left-radius: 3px; }
.ms-b.ben.ilk { border-top-left-radius: 10px; border-top-right-radius: 3px; }
.ms-t { white-space: pre-wrap; overflow-wrap: anywhere; }
.ms-boslu { display: inline-block; width: 42px; height: 1px; }
.ms-b.ben .ms-boslu { width: 62px; }
.ms-meta { position: absolute; right: 8px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; line-height: 1; color: var(--gray-600); }
.ms-yaz { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--gray-100); }
.ms-yaz textarea { flex: 1; min-width: 0; height: 44px; max-height: 132px; padding: 11px 16px; border: 1.5px solid var(--gray-200); border-radius: 22px; background: #fff; font-size: 14px; line-height: 20px; color: var(--gray-800); resize: none; outline: none; box-sizing: border-box; overflow-y: auto; }
.ms-yaz textarea:focus { border-color: var(--red); }
.ms-yaz[hidden] { display: none; }
.ms-kilit { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--gray-200); color: var(--gray-600); font-size: 14px; text-align: center; }
.ms-kilit[hidden] { display: none; }
body.readonly .ms-yaz textarea { background: #fff !important; color: var(--gray-800) !important; cursor: text !important; } /* salt okunur kullanıcı da mesaj yazar */
.ms-gonder { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; cursor: pointer; transition: opacity .15s ease; }
.ms-gonder svg { width: 20px; height: 20px; margin-left: 2px; }
.ms-gonder:disabled { opacity: .35; cursor: default; }
.ms-gonder:focus-visible { outline: 2px solid var(--gray-800); outline-offset: 2px; }
.ms-asagi { position: absolute; right: 18px; bottom: 74px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--red); box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; }
.ms-asagi[hidden] { display: none; }
.ms-asagi svg { width: 20px; height: 20px; }
@media (max-width: 768px) {
  .main:has(#page-mesajlar.active) { padding: 0; }
  .il-tabs { margin: 0; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--gray-100); }
  .il-tabs > button { flex: 1 1 0; text-align: center; }
  .il-duyurular { padding: 12px 12px 24px; }
  .ms-wrap { display: block; height: var(--ms-h, calc(100dvh - 64px)); border: 0; border-radius: 0; box-shadow: none; }
  .ms-sol { height: 100%; border-right: 0; }
  .ms-sag { display: none; }
  .ms-wrap.sohbette .ms-sag { display: flex; position: fixed; left: 0; right: 0; top: var(--ms-vt, 0); height: var(--ms-vh, 100dvh); z-index: 1500; }
  body.ms-tam { overflow: hidden; }
  .ms-geri { display: inline-flex; }
  .ms-akis { padding: 10px 10px 8px; }
  .ms-b { max-width: 84%; }
  .ms-yaz { padding-left: 8px; padding-right: 8px; }
  .ms-yaz textarea { font-size: 16px; } /* iOS'ta odakta yakınlaştırmayı önler */
  .ms-ara input { font-size: 16px; }
}
@media (min-width: 769px) and (max-width: 1000px) { .ms-wrap { grid-template-columns: 280px minmax(0, 1fr); } .ms-akis { padding-left: 14px; padding-right: 14px; } }

/* Mesajlar + Duyurular: üst sekmeler */
@media (min-width: 769px) { .il-tabs { margin: 0 0 10px; } }
.il-tabs .um-count { margin-left: 4px; }
.il-tabs button.active .um-count { background: #fff; color: var(--red); }
.il-tabs button:focus-visible { outline: 2px solid var(--gray-800); outline-offset: 2px; }

/* Mesaj silme: balon oku, sohbet menüsü, açılır menü, silinmiş balon */
.ms-bas-menu { flex: none; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--gray-600); cursor: pointer; }
.ms-bas-menu svg { width: 20px; height: 20px; }
.ms-bas-menu:hover, .ms-bas-menu:focus-visible { background: var(--gray-100); outline: none; }
.ms-b-ok { display: none; position: absolute; top: 2px; right: 2px; z-index: 1; width: 24px; height: 22px; padding: 0; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: inherit; color: var(--gray-600); cursor: pointer; }
.ms-b-ok svg { width: 16px; height: 16px; }
.ms-b-ok:focus-visible { display: inline-flex; outline: 2px solid var(--gray-800); }
@media (hover: hover) { .ms-b:hover .ms-b-ok { display: inline-flex; } }
@media (pointer: coarse) { .ms-b { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; } }
.ms-sil-yazi { color: var(--gray-600); font-style: italic; }
.ms-menu { position: fixed; z-index: 1700; min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--gray-200); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.ms-menu[hidden] { display: none; }
.ms-menu button { display: block; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 6px; background: transparent; color: var(--gray-800); font: 600 14px var(--font-body); text-align: left; cursor: pointer; }
.ms-menu button:hover, .ms-menu button:focus-visible { background: var(--gray-100); outline: none; }
.ms-menu button.tehlike { color: var(--red); }

/* Duyuru: düğmeler sağda; Bilgi penceresi (okuyanlar / teslim edilenler) */
.dy-item footer .dy-btns { margin-left: auto; justify-content: flex-end; }
.btn.dy-wa { border-color: #128c4a; color: #0b6b37; background: #eafaf0; }
.btn.dy-wa:hover { background: #d3f5df; color: #0b6b37; }
.dyb-modal { width: 440px; max-width: 94vw; max-height: 86vh; overflow-y: auto; padding: 18px 20px 20px; }
.dyb-bas { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dyb-bas .modal-title { margin: 0; }
.dyb-bas .dmsg-x { position: static; flex: none; width: 34px; height: 34px; }
.dyb-grup { margin-top: 16px; }
.dyb-grup h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 7px 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gray-600); }
.dyb-grup h4 svg { width: 20px; height: 13px; flex: none; }
.dyb-grup.bekleyen h4 svg { width: 15px; height: 15px; }
.dyb-grup.okuyan h4 svg { color: var(--red); }
.dyb-grup h4 em { font-style: normal; color: var(--gray-400); }
.dyb-grup ul { list-style: none; margin: 0; padding: 2px 14px; background: var(--gray-50); border-radius: 16px; }
.dyb-grup li { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 7px 0; border-bottom: 1px solid var(--gray-200); }
.dyb-grup li[hidden] { display: none; }
.dyb-grup li:last-child { border-bottom: 0; }
.dyb-grup .ms-av { flex: none; width: 42px; height: 42px; font-size: 14px; }
.dyb-ad { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dyb-ad b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--gray-800); }
.dyb-ad small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--gray-600); }
.dyb-zaman { flex: none; font-size: 13px; color: var(--gray-800); font-variant-numeric: tabular-nums; }
.dyb-zaman small { margin-right: 3px; font-size: 12px; color: var(--gray-400); }
.dyb-bos { padding: 14px; background: var(--gray-50); border-radius: 16px; font-size: 13px; color: var(--gray-600); text-align: center; }
.dyb-grup li.dyb-daha { justify-content: center; min-height: 40px; padding: 0; }
.dyb-daha button { display: inline-flex; gap: 5px; padding: 9px 14px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.dyb-daha button:hover, .dyb-daha button:focus-visible { background: var(--gray-200); outline: none; }
.dyb-daha i { width: 7px; height: 7px; border: 1.5px solid var(--gray-600); border-radius: 50%; }

/* Silinen Mesajlar: oturum listesi ve okuma penceresi */
.sil-ara { display: block; width: 100%; max-width: 340px; margin: 0 0 10px; }
.sil-liste { display: flex; flex-direction: column; max-height: 420px; overflow-y: auto; border: 1px solid var(--gray-100); border-radius: 12px; }
.sil-bos { padding: 18px; text-align: center; }
.sil-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 14px; border: 0; border-bottom: 1px solid var(--gray-100); background: #fff; color: var(--gray-800); font-family: var(--font-body); text-align: left; cursor: pointer; }
.sil-row:last-child { border-bottom: 0; }
.sil-row:hover, .sil-row:focus-visible { background: var(--gray-50); outline: none; }
.sil-ikon { flex: none; font-size: 20px; }
.sil-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sil-m b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.sil-m small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--gray-600); }
.sil-row time { flex: none; font-size: 12px; color: var(--gray-600); }
.sil-modal { display: flex; flex-direction: column; width: 680px; max-width: 94vw; max-height: 88vh; padding: 18px 20px; }
.sil-bas { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sil-bas-m { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sil-bas .modal-title { margin: 0; font-size: 19px; overflow-wrap: anywhere; }
.sil-bas small { font-size: 12px; color: var(--gray-600); }
.sil-bas .dmsg-x { position: static; flex: none; width: 34px; height: 34px; }
.sil-akis { flex: 1; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: #ede5df; border-radius: 10px; }
.sil-msg { align-self: flex-start; max-width: 82%; padding: 7px 11px; background: #fff; border-radius: 10px; font-size: 14px; color: var(--gray-800); box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.sil-msg.sag { align-self: flex-end; background: var(--red-bg); }
.sil-msg header { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 2px; font-size: 12px; }
.sil-msg header time { flex: none; color: var(--gray-600); }
.sil-metin { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.42; }
.sil-durum { margin-top: 5px; padding-top: 4px; border-top: 1px dashed var(--gray-200); font-size: 11.5px; font-weight: 600; color: var(--gray-600); }
.sil-durum.herkes { color: var(--red); }
#sil-indir { text-decoration: none; }
#sil-modal .modal-actions { justify-content: flex-end; margin-top: 12px; }
@media (max-width: 768px) { .sil-m b, .sil-m small { white-space: normal; overflow-wrap: anywhere; } .sil-ara { max-width: none; } .sil-row time { max-width: 76px; text-align: right; white-space: normal; font-size: 11px; } .sil-modal { padding: 14px; } .sil-msg { max-width: 92%; } }

/* Duyuru alıcı seçimi */
.dy-form .dy-kim { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--gray-200); border-radius: 10px; background: #fff; color: var(--gray-400); font: 500 14px var(--font-body); text-align: left; cursor: pointer; }
.dy-kim span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dy-kim b { flex: none; font-size: 13px; color: var(--red); }
.dy-kim.dolu { color: var(--gray-800); font-weight: 600; }
.dy-kim:hover, .dy-kim:focus-visible { border-color: var(--red); outline: none; }
.dya-modal { display: flex; flex-direction: column; width: 460px; max-width: 94vw; max-height: 86vh; padding: 18px 20px; }
.dya-ara { display: block; flex: none; width: 100%; min-width: 0; }
.dya-tum { flex: none; display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 6px; padding: 0 12px; font-size: 14px; font-weight: 700; color: var(--gray-800); cursor: pointer; }
.dya-tum em { margin-left: auto; font-size: 12.5px; font-style: normal; font-weight: 600; color: var(--gray-600); }
.dya-tum input, .dya-row input { flex: none; width: 19px; height: 19px; margin: 0; accent-color: var(--red); }
.dya-liste { flex: 1; min-height: 120px; overflow-y: auto; padding: 2px 12px; background: var(--gray-50); border-radius: 14px; }
.dya-row { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 7px 0; border-bottom: 1px solid var(--gray-200); cursor: pointer; }
.dya-row:last-child { border-bottom: 0; }
.dya-row .ms-av { flex: none; width: 40px; height: 40px; font-size: 14px; }
#dy-alici .modal-actions { flex: none; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 768px) { .dya-ara { font-size: 16px; } .dya-modal { padding: 14px; } #dya-tamam { width: 100%; justify-content: center; } }

/* Üst çubuk mesaj ikonu */
.topbar-msg { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; cursor: pointer; }
.topbar-msg svg { width: 24px; height: 24px; }
.topbar-msg:hover, .topbar-msg.active { background: rgba(255,255,255,.28); }
.topbar-msg:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.topbar-msg-n { position: absolute; top: -3px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border: 2px solid #fff; border-radius: 10px; background: #d90429; color: #fff; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.topbar-msg-n[hidden] { display: none; }
/* Duyuru alıcıları: görev grubu hızlı seçimi */
.dya-gruplar { flex: none; display: flex; flex-wrap: wrap; gap: 6px; max-height: 84px; overflow-y: auto; margin-top: 10px; padding: 1px; }
.dya-gruplar[hidden] { display: none; }
.dya-grup { flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--gray-300, #d1d5db); border-radius: 18px; background: #fff; color: var(--gray-800); font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.dya-grup em { margin-left: 3px; font-style: normal; font-weight: 700; opacity: .65; }
.dya-grup.kismi { border-color: var(--red); color: var(--red); }
.dya-grup.on { border-color: var(--red); background: var(--red); color: #fff; }
.dya-grup.on::before { content: "✓ "; }
.dya-grup:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
@media (max-width: 768px) {
  .topbar-msg { width: 40px; height: 40px; }
  .dya-gruplar { flex-wrap: nowrap; max-height: none; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .dya-gruplar::-webkit-scrollbar { display: none; }
}

/* KHS/BHKS: telefonda pdf.js ile sayfa sayfa görünüm */
.khs-sayfalar { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; }
.khs-sayfalar[hidden], #khs-onizleme-frame[hidden] { display: none; }
.khs-sayfa { width: 100%; background: #fff; border: 1px solid var(--gray-200, #e0e0e0); border-radius: 6px; overflow: hidden; }
.khs-sayfa canvas { display: block; width: 100%; height: auto; }
.khs-durum { padding: 18px 8px; text-align: center; }
@media (max-width: 768px) { .khs-onizleme #khs-yazdir-btn { order: -1; align-self: stretch; justify-content: center; } }

/* ── Program Tanıtım sayfası (2026-11-23) ── */
#page-tanitim .tn-hero { background: linear-gradient(135deg, var(--bar-1), var(--bar-2)); color: #fff; border-radius: 14px; padding: 30px 28px; margin-bottom: 14px; position: relative; overflow: hidden; }
#page-tanitim .tn-hero::after { content: "❤"; position: absolute; right: 22px; top: -18px; font-size: 150px; color: rgba(255,255,255,.06); line-height: 1; }
#page-tanitim .tn-hero-ust { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: #f5b5b5; margin-bottom: 8px; }
#page-tanitim .tn-hero-baslik { font-family: var(--font-head); font-size: 32px; line-height: 1.2; margin: 0 0 12px; color: #fff; border: 0; padding: 0; }
#page-tanitim .tn-hero-alt { font-size: 15px; line-height: 1.6; max-width: 720px; margin: 0 0 16px; color: rgba(255,255,255,.92); }
#page-tanitim .tn-rozetler { display: flex; flex-wrap: wrap; gap: 8px; }
#page-tanitim .tn-rozetler span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 50px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
#page-tanitim .tn-sayilar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 6px; }
#page-tanitim .tn-sayilar div { background: #fff; border: 1px solid #ddd3cd; border-top: 3px solid var(--red); border-radius: 12px; padding: 12px 14px; text-align: center; }
#page-tanitim .tn-sayilar b { display: block; font-family: var(--font-head); font-size: 30px; color: var(--red); line-height: 1.1; }
#page-tanitim .tn-sayilar span { font-size: 13px; color: var(--gray-600, #555); }
#page-tanitim .tn-baslik { font-family: var(--font-head); font-size: 22px; color: var(--bar-2); margin: 22px 0 10px; }
#page-tanitim .tn-baslik::after { content: ""; display: block; width: 46px; height: 3px; background: var(--red); border-radius: 3px; margin-top: 6px; }
#page-tanitim .tn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
#page-tanitim .tn-grid3 { grid-template-columns: repeat(3, 1fr); }
#page-tanitim .tn-grid2 { grid-template-columns: repeat(2, 1fr); }
#page-tanitim .tn-kart { background: #fff; border: 1px solid #ddd3cd; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
#page-tanitim .tn-kart h4 { margin: 4px 0 5px; font-size: 15px; color: var(--gray-800, #222); }
#page-tanitim .tn-kart p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--gray-600, #555); }
#page-tanitim .tn-ikon { font-size: 26px; line-height: 1; }
#page-tanitim .tn-vurgu { border-top: 3px solid var(--red); }
#page-tanitim .tn-yan { display: flex; gap: 12px; align-items: flex-start; }
#page-tanitim .tn-yan .tn-ikon { background: var(--red-bg); border-radius: 12px; padding: 10px; }
#page-tanitim .tn-yol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: x; }
#page-tanitim .tn-adim { background: #fff; border: 1px solid #ddd3cd; border-radius: 12px; padding: 12px; position: relative; }
#page-tanitim .tn-adim span { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 6px; }
#page-tanitim .tn-adim b { display: block; font-size: 14.5px; }
#page-tanitim .tn-adim small { display: block; font-size: 13px; color: var(--gray-600, #555); margin-top: 2px; }
#page-tanitim .tn-guvenlik { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: 12px; padding: 12px 18px; }
#page-tanitim .tn-guvenlik ul { margin: 0; padding-left: 20px; }
#page-tanitim .tn-guvenlik li { margin: 7px 0; font-size: 14px; line-height: 1.5; }
#page-tanitim .tn-tablo { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: 14px; }
#page-tanitim .tn-tablo th { background: var(--bar-1); color: #fff; text-align: left; padding: 8px 12px; }
#page-tanitim .tn-tablo td { padding: 8px 12px; border-top: 1px solid var(--gray-100, #eee); }
#page-tanitim .tn-kapanis { margin: 22px 0 8px; text-align: center; background: var(--red-bg); border: 1px solid var(--red-line); border-radius: 14px; padding: 20px 16px; }
#page-tanitim .tn-kapanis h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 22px; color: var(--red-dark); }
#page-tanitim .tn-kapanis p { margin: 0 0 12px; font-size: 14px; }
@media (max-width: 900px) { #page-tanitim .tn-sayilar { grid-template-columns: repeat(2, 1fr); } #page-tanitim .tn-grid3, #page-tanitim .tn-grid2, #page-tanitim .tn-guvenlik { grid-template-columns: 1fr; } #page-tanitim .tn-yol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { #page-tanitim .tn-hero { padding: 22px 16px; } #page-tanitim .tn-hero-baslik { font-size: 24px; } #page-tanitim .tn-yol { grid-template-columns: 1fr; } #page-tanitim .tn-tablo { display: block; overflow-x: auto; } }

/* İlk kurulum: kurum bilgileri doldurulana kadar kilitli ayar sekmeleri */
#ay-tabs .ay-kilit { opacity: .45; cursor: not-allowed; }
#ay-tabs .ay-kilit::after { content: ' 🔒'; }
#ku-tabs { margin-bottom: 12px; }
.sidebar-item.ay-kilit { opacity: .45; }
.sidebar-item.ay-kilit::after { content: ' 🔒'; font-size: 12px; }
.ay-tabs button.ay-kilit { opacity: .45; cursor: not-allowed; }
.ay-tabs[hidden] { display: none; }
.oz-kml-thumb[hidden] { display: none; }

/* Sistem ayarları / Kurucu Müdür / Personel ortak menü satırı: hepsi tek satırda */
.ay-ortak { flex-wrap: nowrap; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.ay-ortak::-webkit-scrollbar { display: none; }
.ay-ortak button { flex: 0 0 auto; white-space: nowrap; padding: 9px 9px; font-size: 13px; }

#page-tanitim .tn-yol7 { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 1100px) { #page-tanitim .tn-yol7 { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { #page-tanitim .tn-yol7 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { #page-tanitim .tn-yol7 { grid-template-columns: 1fr; } }

/* Personel listesi: telefon ve göreve başlama tek satırda, tam sığsın */
#page-personel th.nw, #st-list td.nw { white-space: nowrap; }
#st-list td.nw { font-variant-numeric: tabular-nums; }
/* Kurumsal sekme özeti */
.oz-kur-ozet { margin: 0 0 12px; padding: 10px 14px; background: var(--red-bg, #fff3f3); border: 1px solid var(--red-line, #f3caca); border-radius: 10px; font-weight: 600; font-size: 14px; }
.oz-kur-ozet:empty { display: none; }
.oz-kur-ozet .oz-kur-iban { margin-left: 14px; font-variant-numeric: tabular-nums; }
/* Kurum bilgileri kilidi */
#kurum-kilit.kilitli { background: var(--red); color: #fff; border-color: var(--red); }
#page-ayarlar .page-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Kullanım Kılavuzu yan paneli: ana menünün yanında açılır, açık sayfa arkada kalır */
.kilavuz-panel { position: fixed; top: 64px; left: 240px; bottom: 0; width: min(520px, calc(100vw - 260px)); z-index: 850; background: #fff; border-left: 1px solid #ddd3cd; box-shadow: 8px 0 28px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 8px; padding: 12px 16px 0; }
.kilavuz-panel[hidden] { display: none; }
.kp-bas { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 16px; color: var(--bar-2, #3d0000); }
.kp-sag { display: flex; gap: 6px; align-items: center; }
.kp-sag .btn { text-decoration: none; }
.kp-govde { flex: 1; overflow-y: auto; padding: 4px 4px 24px 0; }
.kp-govde h4.kp-gizli, .kp-govde ul.kp-gizli { display: none; }
@media (max-width: 768px) { .kilavuz-panel { left: 0; width: 100vw; z-index: 950; } }

/* Ücret-Tablosu: ana programın içinde, sağdaki alanı dolduran çerçeve */
.ucret-cerceve { display: block; width: 100%; height: calc(100dvh - 100px); min-height: 480px; border: 0; border-radius: 10px; background: #fff; }



/* Ücret-Tablosu gömülü sayfa geniş çalışma alanı isteyince ana menü (sol menü) gizlenir */
body.yan-gizli .sidebar { display: none !important; }
body.yan-gizli .nav-toggle { display: none !important; }

/* Ücret-Tablosu sarı menüsünden açılan Yoklama: üstte sarı menü şeridi, ana menü gizli */
.yk-menu-cerceve { display: none; }
.yk-geri { display: none; margin-right: 10px; padding: 4px 12px; font-size: 18px; line-height: 1.2; }
body.yk-gor-mod .yk-geri { display: inline-flex; align-items: center; }
body.yk-gor-mod .yk-menu-cerceve { display: block; width: 100%; height: 46px; border: 0; border-radius: 10px; margin-bottom: 10px; background: #fff; }

/* sidebar-chip (İbrahim abi, 2026-11-26): Hasta Kabul satırının sağında küçük "Hızlı Kayıt" kutucuğu → yeni hasta formu */
.sidebar-item .sidebar-chip { margin-left: auto; padding: 2px 9px; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--red); background: #fff; border: 1px solid var(--red); border-radius: 6px; cursor: pointer; }
.sidebar-item .sidebar-chip:hover, .sidebar-item .sidebar-chip:focus-visible { background: var(--red); color: #fff; outline: none; }

/* hizli-kayit (İbrahim abi, 2026-11-26): HIZLI KAYIT sayfası — başlığın yanında "İlgili form" bırakma kutusu, altında geçici kayıt listesi */
#page-hizli-kayit .hz-baslik { gap: 14px; align-items: center; flex-wrap: nowrap; }
#page-hizli-kayit .hz-baslik .page-title { white-space: nowrap; font-size: 22.7px; }
#page-hizli-kayit .hz-baslik .pdf-drop { flex: 1 1 auto; min-width: 0; margin: 0; padding: 6px 14px; gap: 10px; }
#page-hizli-kayit .hz-baslik .pdf-drop-icon { flex: 0 0 auto; font-size: 24px; }
#page-hizli-kayit .hz-baslik .pdf-drop-title { font-size: 13.5px; line-height: 1.25; }
#page-hizli-kayit .hz-baslik .pdf-drop-sub { font-size: 12.5px; line-height: 1.25; color: var(--gray-600, #555); }
#page-hizli-kayit .hz-ozet { font-size: 13px; color: var(--gray-600, #555); margin-right: auto; }
#page-hizli-kayit .list-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 1100px) { #page-hizli-kayit .hz-baslik { flex-wrap: wrap; } #page-hizli-kayit .hz-baslik .pdf-drop { flex-basis: 100%; } }

/* hizli-kayit ızgara (İbrahim abi, 2026-11-26): "Nasıl çalışır" altında, sayfaya sığacak kadar satır; satır ve sütunlar arasında boşluk olan ayrı kutucuklar */
#page-hizli-kayit .notice { margin: 8px 0 0; padding: 7px 12px; font-size: 12.5px; line-height: 1.35; }
#page-hizli-kayit .card { padding: 10px 14px; }

/* Hızlı Kayıt: sütunlar (#/çöp kutusu kalktı), kaydet çubuğu, Excel tarzı çıktı */
#page-hizli-kayit .save-bar { padding: 8px 30px; gap: 8px; }
#page-hizli-kayit .save-bar .btn { font-size: 13px; padding: 7px 16px; border-radius: 8px; }
#page-hizli-kayit .save-bar .dirty-note { font-size: 12px; }
.print-sheet .hzp-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 6px; font-size: 11px; }
.print-sheet .hzp-head h1 { font-size: 16px; margin: 0; }
.print-sheet table.hzp { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 11.5px; }
.print-sheet table.hzp th, .print-sheet table.hzp td { border: 1px solid #000; padding: 0 6px; height: 9.4mm; text-align: left; vertical-align: middle; overflow: hidden; white-space: nowrap; }
.print-sheet table.hzp th { background: #e6e6e6; color: #000; font-weight: 700; }
.print-sheet table.hzp thead { display: table-header-group; }
.print-sheet table.hzp tr { page-break-inside: avoid; }
.print-sheet .hzp-sayfa { position: relative; height: 296mm; padding: 10mm; overflow: visible; box-sizing: border-box; }
.print-sheet .hzp-sayfa:not(:last-child) { page-break-after: always; break-after: page; }
.print-sheet .hzp-head { height: 11mm; margin-bottom: 2mm; }
.print-sheet table.hzp th { height: 9mm; }
.print-sheet table.hzp th { white-space: normal; line-height: 1.15; font-size: 11px; }
.print-sheet .hzp-alt { position: absolute; left: 10mm; right: 10mm; bottom: 8mm; text-align: center; font-size: 11px; }

/* Hasta Kabul: listenin altını dolduran boş satırlar */
tbody tr.hk-bos td { border-bottom: 1px solid var(--gray-200); background: none; padding-top: 0; padding-bottom: 0; }
tbody tr.hk-bos:hover td { background: none; }

/* Hızlı Kayıt: diğer liste sayfalarıyla aynı çizgili tablo görünümü (İbrahim abi, 2026-11-26 "böyle olsun") */
#page-hizli-kayit .hz-tbl { table-layout: fixed; width: 100%; }
#page-hizli-kayit .hz-tbl td { padding: 0 10px; height: 46px; vertical-align: middle; }
#page-hizli-kayit .hz-tbl input.mini-input { width: 100%; box-sizing: border-box; min-width: 0; border-color: transparent; background: transparent; box-shadow: none; padding: 8px 8px; font-weight: 600; }
#page-hizli-kayit .hz-tbl input.mini-input.hz-tc, #page-hizli-kayit .hz-tbl input.mini-input.hz-tar { font-weight: 400; }
#page-hizli-kayit .hz-tbl input.mini-input:hover { border-color: var(--gray-200); background: #fff; }
#page-hizli-kayit .hz-tbl input.mini-input:focus { border-color: var(--red); background: #fff; }
#page-hizli-kayit .hz-gk { font-size: 13.5px; white-space: nowrap; }
#page-hizli-kayit .hz-tbl thead th { text-align: left; padding-left: 18px; }
#page-hizli-kayit .hz-gk { padding-left: 8px; }
.seg button[hidden] { display: none; }
/* Hasta Kabul: "Ücretsiz" kelimesi koyu ve kalın (İbrahim abi, 2026-11-26) */
#hk-new-ucretsiz .hk-uc-kalin { font-weight: 900; letter-spacing: .2px; color: #fff; border: 2px solid #fff; border-radius: 4px; padding: 0 6px; }
#hk-new-ucretli { font-weight: 500; }
/* Hızlı Kayıt: Yazdır satırındaki açıklama kutusu (İbrahim abi, 2026-11-26) */
.hz-bar-uyari { border: 2px solid #b45309; background: #fff7ed; color: #7c2d12; border-radius: 8px; padding: 5px 12px; font-size: 13px; line-height: 1.3; flex: 1 1 auto; text-align: center; }
@media (max-width: 768px) { .hz-bar-uyari { flex-basis: 100%; order: -1; } }
#page-hizli-kayit .save-bar .dirty-note { margin-right: 0; }
#page-hizli-kayit .save-bar .dirty-note:not(.show) { display: none; }
/* Uyarı üçgeni yanıp söner (İbrahim abi, 2026-11-26) */
.hz-uc-yanip { display: inline-block; animation: hz-uc-yanip 1s steps(1, end) infinite; }
@keyframes hz-uc-yanip { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .1; } }
/* Hızlı Kayıt: "İlgili form" simgesi hafif sallanır (İbrahim abi, 2026-11-26) */
#page-hizli-kayit .hz-baslik .pdf-drop-icon, #ik-drop .pdf-drop-icon, #rp-drop-list .pdf-drop-icon, #rp-drop .pdf-drop-icon, #si-drop-list .pdf-drop-icon, #si-drop .pdf-drop-icon, #hr-drop .pdf-drop-icon { transform-origin: 50% 20%; animation: hz-sallan 2.4s ease-in-out infinite; }
@keyframes hz-sallan { 0%, 55%, 100% { transform: rotate(0); } 10% { transform: rotate(-14deg); } 20% { transform: rotate(12deg); } 30% { transform: rotate(-9deg); } 40% { transform: rotate(6deg); } 48% { transform: rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { #page-hizli-kayit .hz-baslik .pdf-drop-icon, #ik-drop .pdf-drop-icon, #rp-drop-list .pdf-drop-icon, #rp-drop .pdf-drop-icon, #si-drop-list .pdf-drop-icon, #si-drop .pdf-drop-icon, #hr-drop .pdf-drop-icon { animation: none; } }

/* Geri (←) oku sürekli hafifçe sağa sola gider (İbrahim abi, 2026-11-26) */
.geri-ok { display: inline-block; animation: geri-sallan 4s ease-in-out infinite; }
@keyframes geri-sallan { 0%, 60%, 100% { transform: translateX(0); } 10% { transform: translateX(-4px); } 30% { transform: translateX(4px); } 50% { transform: translateX(-4px); } }
@media (prefers-reduced-motion: reduce) { .geri-ok { animation: none; } }
/* Tüm geri (nav-back) düğmelerindeki ok yavaşça sağa sola gider, sonra dinlenir (İbrahim abi, 2026-11-26) */
.nav-btn.nav-back::before { animation: liste-ok-sallan 4s ease-in-out infinite; }
@keyframes liste-ok-sallan { 0%, 60%, 100% { transform: translateX(0) rotate(135deg); } 10% { transform: translateX(-7px) rotate(135deg); } 30% { transform: translateX(7px) rotate(135deg); } 50% { transform: translateX(-7px) rotate(135deg); } }
@media (prefers-reduced-motion: reduce) { .nav-btn.nav-back::before { animation: none; } }
/* Finans fatura formu: "Önce hastayı seçin" notundaki 🔒 simgesi büyütüldü (İbrahim abi, 2026-11-26) */
#fn-kilit-not { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
#fn-kilit-not[hidden] { display: none; }
#fn-kilit-not .fn-kilit-ikon { font-size: 21px; line-height: 1; }

/* Sistem Ayarları: sekme ve kilit düğmesi simgeleri bir tık büyük; kutu ölçüsü değişmez */
#page-ayarlar .ay-ikon, #kurum-kilit-not .ay-ikon { font-size: 19px; line-height: 0; vertical-align: -2px; margin: 0 -2px 0 -5px; }
#kurum-kilit-not .ay-ikon { margin: 0 2px 0 0; }
#s-save .ay-ikon { margin: 0 1px 0 -3px; }

/* Noter Yetki Belgesi başlık simgesi bir tık büyük; kutu (32x32) aynı */
.card-title-icon.ikon-buyuk { font-size: 22px; line-height: 1; }
.card-title-icon.ikon-buyuk2 { font-size: 26px; line-height: 1; }
/* Kimlik Bilgileri: kutu dikdörtgen, kimlik simgesi tam otursun */
.card-title-icon.ikon-dikdortgen { width: 35px; height: 23px; padding: 0; overflow: hidden; border-radius: 0; background: none; display: flex; }
.card-title-icon.ikon-dikdortgen svg { display: block; width: 100%; height: 100%; }

/* Başlık simgelerinin pembe arka planı kaldırıldı (İbrahim abi, 2026-11-26): sade görünüm */
.card-title-icon { background: none; border: 1px solid #111; box-sizing: border-box; }

/* Sistem Ayarları > Denetim Kaydı: son işlemler tablosu yazıları 1 punto büyük */
#card-audit th { font-size: 13px; }
#card-audit td { font-size: 15px; }
#card-audit .hint, #card-silinen .hint { font-size: 12px; }
/* Denetim Kaydı penceresi: alttaki Not yazısı 1 punto büyük */
.audit-modal .notice { font-size: 14px; }

/* Kurucu Müdür: durum açıklaması Noter Yetki Belgesi kartının altındaki "Kart Durumu" kutusunda */
.ku-sag { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ku-sag > .card { margin-bottom: 0; }
.ku-sag .notice { margin-bottom: 0; }

/* Kurucu Müdür: alttaki Kaydet çubuğu ince; kart alanı uzar */
#page-kurucu .save-bar { padding: 6px 30px; gap: 8px; margin-top: 10px; }
#page-kurucu .save-bar .btn { font-size: 12px; padding: 5px 12px; border-radius: 8px; }
#page-kurucu .save-bar .dirty-note { font-size: 12px; }

/* Kurucu Müdür: giriş hesabı seçilemez, yalnız yazı olarak gösterilir */
.ku-hesap { padding: 10px 14px; border: 1px solid var(--gray-200); border-radius: 10px; background: #f6f3f1; font-size: 15px; font-weight: 600; color: #333; }
.ku-hesap-not { margin: 12px 0 0; font-size: 14px; }

/* Kurucu Müdür: sağ sütun sıkı — kartlar arası boşluk az, yazılar küçük, sayfa tek ekranda */
#page-kurucu .ku-sag { gap: 8px; }
#page-kurucu .ku-sag > .card { padding: 8px 14px 10px; }
#page-kurucu .ku-sag .card-title { margin-bottom: 6px; font-size: 15px; }
#page-kurucu .ku-sag .doc-box { gap: 6px; }
#page-kurucu .ku-sag .doc-box .hint, #page-kurucu .ku-sag .doc-box .muted-sm { font-size: 11.5px; line-height: 1.3; margin: 0; }
#page-kurucu .ku-sag .notice { padding: 6px 10px; font-size: 13px; line-height: 1.35; margin: 0; }
#page-kurucu .ku-sag .ku-hesap { padding: 6px 12px; font-size: 14px; }
#page-kurucu .ku-sag .ku-hesap-not { margin-top: 6px; font-size: 12.5px; }

/* Kurucu Müdür: sağ sütun sol kartla aynı boyda; kartlar boşluğu eşit paylaşır */
#page-kurucu .settings-grid { align-items: stretch; }
#page-kurucu .ku-sag { height: 100%; }
#page-kurucu .ku-sag > .card { flex: 1 1 auto; }

/* Tek satırlık kartlar (Kart Durumu, Giriş Hesabı) içeriği kadar; kalan yeri Noter Yetki Belgesi alır */
#page-kurucu .ku-sag > .card { flex: 0 0 auto; }
#page-kurucu .ku-sag > .card:first-child { flex: 1 1 auto; }

/* Kurucu Müdür: başlık satırı (geri düğmesi, başlık, Arşiv) daha alçak */
#page-kurucu .page-header { margin-bottom: 4px; padding-bottom: 3px; }
#page-kurucu .page-title { font-size: 20px; line-height: 1.1; }
#page-kurucu .page-header .nav-btn, #page-kurucu .page-header .btn { padding-top: 5px; padding-bottom: 5px; font-size: 13px; }

/* Kurucu Müdür: soldaki tek satırlı kutular daha alçak, satır aralıkları az */
#page-kurucu .settings-grid > .card:first-child .form-row { margin-bottom: 6px; }
#page-kurucu .settings-grid > .card:first-child .field label { margin-bottom: 2px; }
#page-kurucu .settings-grid > .card:first-child .field input { padding-top: 5px; padding-bottom: 5px; font-size: 15px; }
#page-kurucu .settings-grid > .card:first-child .field textarea { min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
