  :root {
    --brand: #1e2a44;
    --brand-2: #3b5b9c;
    --accent: #ef4444;
    --textalt: #333553;
    --card: #ffffff;
    --shadow-lg: 0 12px 32px rgba(2, 6, 23, 0.12);
    --radius-sm: 8px;
    --radius-lg: 14px;
    --transition: 180ms cubic-bezier(.2, .6, .2, 1);
    --bg: #f4f6fb;
    --surface: #ffffff;
    --border: #e3e8f0;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html,
  body {
    overflow-x: hidden;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
  }

  a {
    color: #00B7FF;
  }

  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }

  .modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 6, 23, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .modal.hidden {
    display: none;
  }

  .modal-content {
    background: var(--card);
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    min-width: 320px;
    max-width: 95vw;
    box-shadow: var(--shadow-lg);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-content input {
    width: 100%;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
  }

  .modal-content button {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    letter-spacing: .2px;
    box-shadow: 0 8px 20px rgba(59, 91, 156, 0.18);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }

  .modal-content button:hover:not(.loading) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(59, 91, 156, 0.24);
    filter: brightness(1.02);
  }

  .modal-content .close {
    position: absolute;
    top: 0.7rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--muted);
    cursor: pointer;
    transition: color var(--transition), transform var(--transition);
  }

  .modal-content .close:hover {
    color: var(--accent);
    transform: rotate(90deg) scale(1.05);
  }

  .error-msg {
    color: #e53935;
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }

  .modal-content button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 91, 156, 0.22);
  }

  .top-right-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transform: translateX(400px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    max-width: 400px;
  }

  .top-right-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .top-right-notification.success {
    background: #10b981;
  }

  .top-right-notification.error {
    background: #ef4444;
  }

  @keyframes topRightNotificationSlide {
    0% {
      opacity: 0;
      transform: translateX(400px);
    }

    20% {
      opacity: 1;
      transform: translateX(0);
    }

    80% {
      opacity: 1;
      transform: translateX(0);
    }

    100% {
      opacity: 0;
      transform: translateX(400px);
    }
  }

  .modal-content button .button-text {
    display: inline-block;
    transition: opacity 0.2s ease;
  }

  .modal-content button .button-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
  }

  .modal-content button.loading .button-text {
    opacity: 0;
  }

  .modal-content button.loading .button-spinner {
    display: inline-block;
  }

  .modal-content button.loading {
    cursor: not-allowed;
    pointer-events: none;
  }

  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  .plasiyer-header {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    padding: 0.875rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .plasiyer-header:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 3.5rem;
  }

  .header-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
    max-width: 400px;
  }

  .header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.8125rem;
    font-weight: 500;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.12);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
  }

  .header-center:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
  }

  .header-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
  }

  .logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    font-size: 0.9rem;
  }

  .logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  .plasiyer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
  }

  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
  }

  .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .stat-title {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }

  .stat-icon.blue {
    background: rgba(59, 91, 156, 0.1);
    color: var(--brand-2);
  }

  .stat-icon.green {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
  }

  .stat-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
  }

  .stat-icon.purple {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
  }

  .stat-icon.red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent);
  }

  .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
  }

  .filter-btn.active {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    border-color: var(--brand);
    color: white;
  }

  .filter-btn.active:hover {
    background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%);
    border-color: var(--brand-2);
    color: white;
  }

  .tabs-container {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
  }

  .tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    background: linear-gradient(180deg, #f8f9fb 0%, #f0f1f4 100%);
    flex-wrap: wrap;
    gap: 0;
    padding: 0.35rem 0.35rem 0;
  }

  .tab {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0.45rem 0.85rem;
    background: none;
    border: none;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
  }

  .tab .material-icons {
    font-size: 0.95rem !important;
    margin-right: 0 !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
  }

  .tab:hover {
    color: var(--brand-2);
    background: rgba(59, 91, 156, 0.06);
  }

  .tab:hover .material-icons {
    opacity: 1;
  }

  .tab.active {
    color: var(--brand-2);
    background: var(--card);
    font-weight: 600;
    border-bottom: 2px solid var(--brand-2);
    box-shadow: 0 -1px 4px rgba(59, 91, 156, 0.08);
  }

  .tab.active .material-icons {
    opacity: 1;
    color: var(--brand-2);
  }

  .tab.active::after {
    display: none;
  }

  .tab-content {
    display: none;
    padding: 2rem;
  }

  .tab-content.active {
    display: block;
  }

  .search-filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
  }

  .search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #fafbfc;
    transition: border-color var(--transition), box-shadow var(--transition);
  }

  .search-box input:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(59, 91, 156, 0.12);
    background: var(--card);
  }

  .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1.2rem;
  }

  #musteri-results {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
  }

  #musteri-results::-webkit-scrollbar {
    width: 6px;
  }

  #musteri-results::-webkit-scrollbar-track {
    background: transparent;
  }

  #musteri-results::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 3px;
  }

  #musteri-results::-webkit-scrollbar-thumb:hover {
    background-color: var(--muted);
  }

  .collapse-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: box-shadow var(--transition);
  }

  .collapse-card:hover {
    box-shadow: var(--shadow);
  }

  .collapse-card-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fafbfc 0%, #f5f6f8 100%);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition);
    user-select: none;
  }

  .collapse-card-header:hover {
    background: linear-gradient(135deg, #f5f6f8 0%, #eef1f4 100%);
  }

  .collapse-card-header.active {
    background: linear-gradient(135deg, rgba(59, 91, 156, 0.08) 0%, rgba(59, 91, 156, 0.05) 100%);
    border-bottom-color: rgba(59, 91, 156, 0.2);
  }

  .collapse-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
  }

  .collapse-card-title .material-icons {
    font-size: 1.1rem;
    color: var(--brand-2);
    transition: transform var(--transition);
  }

  .collapse-card-header.active .collapse-card-title .material-icons {
    transform: rotate(90deg);
  }

  .collapse-card-icon {
    transition: transform var(--transition);
    color: var(--muted);
  }

  .collapse-card-header.active .collapse-card-icon {
    transform: rotate(180deg);
    color: var(--brand-2);
  }

  .collapse-card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.25rem;
  }

  .collapse-card-body.expanded {
    max-height: 5000px;
    padding: 1.25rem;
    transition: max-height 0.4s ease-in, padding 0.3s ease-in;
  }

  @media (max-width: 768px) {
    .collapse-card-header {
      padding: 0.875rem 1rem;
    }

    .collapse-card-title {
      font-size: 0.875rem;
    }

    .collapse-card-body.expanded {
      padding: 1rem;
    }
  }

  .modal-cancel-btn:hover {
    background: #f8f9fa !important;
    border-color: var(--brand-2) !important;
    color: var(--brand-2) !important;
    transform: translateY(-1px);
  }

  .modal-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 91, 156, 0.3) !important;
  }

  .modal-save-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 91, 156, 0.2) !important;
  }

  #urun-duzenle-modal .modal-close:hover {
    background: rgba(0, 0, 0, 0.05) !important;
  }

  #urun-duzenle-modal .modal-close:hover .material-icons {
    color: var(--text) !important;
  }

  .filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .filter-btn:hover {
    border-color: var(--brand-2);
    color: var(--brand-2);
  }

  .data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .data-table thead {
    background: #fafbfc;
  }

  .data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    border-bottom: 2px solid var(--border);
  }

  .data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
  }

  .data-table tbody tr {
    transition: background var(--transition);
  }

  .data-table tbody tr:hover {
    background: #fafbfc;
  }

  .data-table tbody tr:last-child td {
    border-bottom: none;
  }

  #etiketbas .data-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #etiketbas .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.3;
  }

  #etiketbas .data-table td img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
  }

  #etiketbas .data-table td svg {
    max-height: 22px;
    max-width: 80px;
    width: auto;
  }

  #etiketbas .data-table th:nth-child(3),
  #etiketbas .data-table td:nth-child(3) {
    min-width: 180px;
    white-space: normal;
    word-break: break-word;
  }

  #etiketbas .data-table th:nth-child(8),
  #etiketbas .data-table td:nth-child(8),
  #etiketbas .data-table th:nth-child(10),
  #etiketbas .data-table td:nth-child(10),
  #etiketbas .data-table th:nth-child(12),
  #etiketbas .data-table td:nth-child(12) {
    max-width: 90px;
    overflow: hidden;
  }

  #etiketbas .data-table tbody tr {
    height: auto;
  }

  #etiketbas .urun-action-buttons {
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  #etiketbas .urun-fiyat-gecmis-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0;
    gap: 0.2rem;
  }

  #etiketbas .urun-fiyat-gecmis-btn .material-icons {
    font-size: 0.75rem !important;
  }

  #etiketbas .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  #etiketbas .data-table tbody tr:hover {
    background: rgba(59, 91, 156, 0.04);
  }

  #stokyonetim-fisi .data-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #stokyonetim-fisi .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.3;
  }

  #stokyonetim-fisi .data-table td img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
  }

  #stokyonetim-fisi .data-table tbody tr {
    height: auto;
  }

  #stokyonetim-fisi .data-table th:nth-child(3),
  #stokyonetim-fisi .data-table td:nth-child(3) {
    min-width: 180px;
    white-space: normal;
    word-break: break-word;
  }

  #stokyonetim-fisi .urun-action-buttons {
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  #stokyonetim-fisi .urun-fiyat-gecmis-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0;
    gap: 0.2rem;
  }

  #stokyonetim-fisi .urun-fiyat-gecmis-btn .material-icons {
    font-size: 0.75rem !important;
  }

  #stokyonetim-fisi .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  #stokyonetim-fisi .data-table tbody tr:hover {
    background: rgba(59, 91, 156, 0.04);
  }

  #bakiyerapor .data-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #bakiyerapor .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.3;
  }

  #bakiyerapor .data-table tbody tr {
    height: auto;
  }

  #bakiyerapor .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  #bakiyerapor .data-table tbody tr:hover {
    background: rgba(59, 91, 156, 0.04);
  }

  #musteriler .data-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #musteriler .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.3;
  }

  #musteriler .data-table tbody tr {
    height: auto;
  }

  #musteriler .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  #musteriler .data-table tbody tr:hover {
    background: rgba(59, 91, 156, 0.04);
  }

  #verilenteklifler-fisi .data-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #verilenteklifler-fisi .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.3;
  }

  #verilenteklifler-fisi .data-table td img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
  }

  #verilenteklifler-fisi .data-table tbody tr {
    height: auto;
  }

  #verilenteklifler-fisi .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  #verilenteklifler-fisi .data-table tbody tr:hover {
    background: rgba(59, 91, 156, 0.04);
  }

  #verilenteklifler-fisi .urun-action-buttons {
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  #verilenteklifler-fisi .urun-fiyat-gecmis-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0;
    gap: 0.2rem;
  }

  #verilenteklifler-fisi .urun-fiyat-gecmis-btn .material-icons {
    font-size: 0.75rem !important;
  }

  #siparis-fisi .data-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #siparis-fisi .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.3;
  }

  #siparis-fisi .data-table td img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
  }

  #siparis-fisi .data-table tbody tr {
    height: auto;
  }

  #siparis-fisi .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  #siparis-fisi .data-table tbody tr:hover {
    background: rgba(59, 91, 156, 0.04);
  }

  #siparis-fisi .urun-action-buttons {
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  #siparis-fisi .urun-fiyat-gecmis-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0;
    gap: 0.2rem;
  }

  #siparis-fisi .urun-fiyat-gecmis-btn .material-icons {
    font-size: 0.75rem !important;
  }

  #siparis-yonetimi .data-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #siparis-yonetimi .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.3;
  }

  #siparis-yonetimi .data-table td img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
  }

  #siparis-yonetimi .data-table tbody tr {
    height: auto;
  }

  #siparis-yonetimi .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  #siparis-yonetimi .data-table tbody tr:hover {
    background: rgba(59, 91, 156, 0.04);
  }

  #siparis-yonetimi .urun-action-buttons {
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  #siparis-yonetimi .urun-fiyat-gecmis-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0;
    gap: 0.2rem;
  }

  #siparis-yonetimi .urun-fiyat-gecmis-btn .material-icons {
    font-size: 0.75rem !important;
  }

  #teklif-yonetimi .data-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #teklif-yonetimi .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.3;
  }

  #teklif-yonetimi .data-table td img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
  }

  #teklif-yonetimi .data-table tbody tr {
    height: auto;
  }

  #teklif-yonetimi .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  #teklif-yonetimi .data-table tbody tr:hover {
    background: rgba(59, 91, 156, 0.04);
  }

  #teklif-yonetimi .urun-action-buttons {
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  #teklif-yonetimi .urun-fiyat-gecmis-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0;
    gap: 0.2rem;
  }

  #teklif-yonetimi .urun-fiyat-gecmis-btn .material-icons {
    font-size: 0.75rem !important;
  }

  #depolararasi-sevk .data-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #depolararasi-sevk .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.3;
  }

  #depolararasi-sevk .data-table td img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
  }

  #depolararasi-sevk .data-table tbody tr {
    height: auto;
  }

  #depolararasi-sevk .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  #depolararasi-sevk .data-table tbody tr:hover {
    background: rgba(59, 91, 156, 0.04);
  }

  #depolararasi-sevk .urun-action-buttons {
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  #depolararasi-sevk .urun-fiyat-gecmis-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0;
    gap: 0.2rem;
  }

  #depolararasi-sevk .urun-fiyat-gecmis-btn .material-icons {
    font-size: 0.75rem !important;
  }

  #irsaliyeyonetim .data-table th {
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #irsaliyeyonetim .data-table td {
    padding: 0.3rem 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
    line-height: 1.3;
  }

  #irsaliyeyonetim .data-table td img {
    width: 36px !important;
    height: 36px !important;
    object-fit: cover;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
  }

  #irsaliyeyonetim .data-table tbody tr {
    height: auto;
  }

  #irsaliyeyonetim .data-table tbody tr:nth-child(even) {
    background: #fafbfc;
  }

  #irsaliyeyonetim .data-table tbody tr:hover {
    background: rgba(59, 91, 156, 0.04);
  }

  #irsaliyeyonetim .urun-action-buttons {
    gap: 0.25rem;
    flex-wrap: nowrap;
  }

  #irsaliyeyonetim .urun-fiyat-gecmis-btn {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    margin-left: 0;
    gap: 0.2rem;
  }

  #irsaliyeyonetim .urun-fiyat-gecmis-btn .material-icons {
    font-size: 0.75rem !important;
  }

  .table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  div[style*="overflow-y: auto"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
  }

  .action-btn.primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 91, 156, 0.2);
  }

  .action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 91, 156, 0.3);
  }

  .action-btn.secondary {
    background: var(--card);
    color: var(--brand-2);
    border: 1.5px solid var(--border);
  }

  .action-btn.secondary:hover {
    border-color: var(--brand-2);
    background: rgba(59, 91, 156, 0.05);
  }

  .action-btn.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1.5px solid rgba(34, 197, 94, 0.2);
  }

  .action-btn.success:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
  }

  .action-btn.warning {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border: 1.5px solid rgba(249, 115, 22, 0.2);
  }

  .action-btn.warning:hover {
    background: rgba(249, 115, 22, 0.2);
    border-color: #f97316;
  }

  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
  }

  .modal.active {
    display: flex;
  }

  .modal-content {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin: auto;
  }

  .modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 10;
  }

  .modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
  }

  .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
    transition: color var(--transition);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
  }

  .modal-close:hover {
    color: var(--text);
    background: #fafbfc;
  }

  .modal-body {
    padding: 2rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #fafbfc;
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
    font-family: inherit;
  }

  .form-textarea {
    resize: vertical;
    min-height: 100px;
  }

  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--brand-2);
    box-shadow: 0 0 0 4px rgba(59, 91, 156, 0.12);
    background: var(--card);
  }

  .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
  }

  .btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 91, 156, 0.2);
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 91, 156, 0.3);
  }

  .btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1.5px solid var(--border);
  }

  .btn-secondary:hover {
    border-color: var(--brand-2);
    color: var(--brand-2);
  }

  .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--muted);
  }

  .empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
  }

  .empty-state-text {
    font-size: 1.1rem;
  }

  .badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
  }

  .badge.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
  }

  .badge.warning {
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
  }

  .badge.info {
    background: rgba(59, 91, 156, 0.1);
    color: var(--brand-2);
  }

  .badge.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent);
  }

  .detail-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fafbfc;
    border-radius: var(--radius);
    border: 1px solid var(--border);
  }

  .detail-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
  }

  .detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
  }

  .detail-label {
    font-weight: 500;
    color: var(--muted);
  }

  .detail-value {
    color: var(--text);
  }

  .detail-items {
    margin-top: 1rem;
  }

  .detail-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--card);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
  }

  .management-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .management-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
  }

  .management-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .management-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .management-card-content {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
  }

  #urun-tablo-container {
    margin-top: 0.75rem;
  }

  #urun-tablo-body tr {
    cursor: pointer;
    transition: all var(--transition);
  }

  #urun-tablo-body tr:hover {
    background: linear-gradient(135deg, rgba(59, 91, 156, 0.08) 0%, rgba(59, 91, 156, 0.05) 100%);
    transform: translateX(2px);
  }

  #urun-tablo-body tr.selected {
    background: linear-gradient(135deg, rgba(59, 91, 156, 0.15) 0%, rgba(59, 91, 156, 0.1) 100%);
    border-left: 3px solid var(--brand-2);
  }

  #urun-tablo-body tr.selected:hover {
    background: linear-gradient(135deg, rgba(59, 91, 156, 0.2) 0%, rgba(59, 91, 156, 0.15) 100%);
  }

  #urun-tablo-body td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--border);
  }

  .urun-select-btn {
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 4px rgba(59, 91, 156, 0.2);
  }

  .urun-select-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 91, 156, 0.3);
  }

  .urun-select-btn:active {
    transform: translateY(0);
  }

  .urun-fiyat-gecmis-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(59, 91, 156, 0.1);
    color: var(--brand-2);
    border: 1.5px solid rgba(59, 91, 156, 0.3);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
  }

  .urun-fiyat-gecmis-btn:hover {
    background: rgba(59, 91, 156, 0.15);
    border-color: var(--brand-2);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 91, 156, 0.2);
  }

  .urun-fiyat-gecmis-btn:active {
    transform: translateY(0);
  }

  .urun-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .switch-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
  }

  .switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
  }

  .switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .switch-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .switch-toggle input:checked+.switch-slider {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    box-shadow: 0 0 0 4px rgba(59, 91, 156, 0.15);
  }

  .switch-toggle input:checked+.switch-slider:before {
    transform: translateX(28px);
    box-shadow: 0 2px 6px rgba(59, 91, 156, 0.4);
  }

  .switch-toggle:hover .switch-slider {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  }

  .switch-toggle input:checked:hover+.switch-slider {
    box-shadow: 0 0 0 4px rgba(59, 91, 156, 0.2);
  }

  .switch-toggle:active .switch-slider:before {
    transform: scale(0.9);
  }

  .switch-toggle input:checked:active+.switch-slider:before {
    transform: translateX(28px) scale(0.9);
  }

  #fiyat-gecmis-modal .modal-content {
    max-width: fit-content !important;
    padding: 1rem !important;
    box-shadow: var(--shadow-lg);
  }

  #fiyat-gecmis-modal .modal-content table {
    border-radius: var(--radius);
  }

  @media (max-width: 768px) {
    .plasiyer-container {
      padding: 1rem;
    }

    .stats-grid {
      grid-template-columns: 1fr;
    }

    .header-content {
      flex-wrap: wrap;
      gap: 0.75rem;
      height: auto;
      padding: 0.5rem 0;
    }

    .tabs {
      flex-direction: column;
      padding: 0.25rem;
      gap: 1px;
    }

    .tab {
      border-radius: 4px;
      border-bottom: none;
      margin-bottom: 0;
      padding: 0.5rem 0.75rem;
      font-size: 0.8rem;
    }

    .tab.active {
      border-bottom: none;
      background: rgba(59, 91, 156, 0.1);
      box-shadow: none;
    }

    .data-table {
      font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
      padding: 0.75rem 0.5rem;
    }

    .search-filter-bar {
      flex-direction: column;
    }

    .search-box {
      min-width: 100%;
    }

    .detail-row {
      grid-template-columns: 1fr;
      gap: 0.5rem;
    }

    .detail-item {
      grid-template-columns: 1fr;
      gap: 0.5rem;
    }

    .management-grid {
      grid-template-columns: 1fr;
    }

    .switch-toggle {
      width: 50px;
      height: 28px;
    }

    .switch-slider:before {
      height: 20px;
      width: 20px;
      left: 4px;
      bottom: 4px;
    }

    .switch-toggle input:checked+.switch-slider:before {
      transform: translateX(22px);
    }

    #urun-tablo-container>div>div[style*="flex-wrap"] {
      flex-direction: column !important;
    }

    #urun-tablo-container>div>div[style*="flex-wrap"]>div {
      min-width: 100% !important;
      flex: 1 1 100% !important;
    }

    .plasiyer-container>div>div[style*="grid-template-columns: 1fr 200px"] {
      grid-template-columns: 1fr !important;
    }

    #irsaliye-alanlari>div[style*="grid-template-columns: 1fr 1fr"] {
      grid-template-columns: 1fr !important;
    }

    #irsaliye-alanlari>div[style*="grid-template-columns: 1fr 1fr 1fr"] {
      grid-template-columns: 1fr !important;
    }
  }

  #eklenen-urunler-container .data-table thead th:nth-child(11),
  #eklenen-urunler-container .data-table thead th:nth-child(12),
  #eklenen-urunler-container .data-table thead th:nth-child(13),
  #eklenen-urunler-container .data-table thead th:nth-child(14),
  #eklenen-urunler-container .data-table thead th:nth-child(15),
  #eklenen-urunler-container .data-table tbody td:nth-child(11),
  #eklenen-urunler-container .data-table tbody td:nth-child(12),
  #eklenen-urunler-container .data-table tbody td:nth-child(13),
  #eklenen-urunler-container .data-table tbody td:nth-child(14),
  #eklenen-urunler-container .data-table tbody td:nth-child(15),
  #siparis-mevcut-icerik-container .data-table thead th:nth-child(11),
  #siparis-mevcut-icerik-container .data-table thead th:nth-child(12),
  #siparis-mevcut-icerik-container .data-table thead th:nth-child(13),
  #siparis-mevcut-icerik-container .data-table thead th:nth-child(14),
  #siparis-mevcut-icerik-container .data-table thead th:nth-child(15),
  #siparis-mevcut-icerik-container .data-table tbody td:nth-child(11),
  #siparis-mevcut-icerik-container .data-table tbody td:nth-child(12),
  #siparis-mevcut-icerik-container .data-table tbody td:nth-child(13),
  #siparis-mevcut-icerik-container .data-table tbody td:nth-child(14),
  #siparis-mevcut-icerik-container .data-table tbody td:nth-child(15),
  #ekstre-table-container .data-table thead th:nth-child(13),
  #ekstre-table-container .data-table tbody td:nth-child(13) {
    width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    visibility: hidden;
    border: none;
    font-size: 0;
    line-height: 0;
  }

  .mobile-drawer-toggle {
    display: none;
  }

  .mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .mobile-drawer-toggle:checked~.mobile-drawer {
    pointer-events: all;
    opacity: 1;
    visibility: visible;
  }

  .mobile-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
  }

  .mobile-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    background: var(--card);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
  }

  .mobile-drawer-toggle:checked~.mobile-drawer .mobile-drawer-content {
    transform: translateX(0);
  }

  .mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--card);
    position: sticky;
    top: 0;
    z-index: 1;
  }

  .mobile-drawer-close {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-drawer-tabs {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    flex: 1;
  }

  .mobile-drawer-tab {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    text-align: left;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-left: 3px solid transparent;
  }

  .mobile-drawer-tab:hover {
    background: rgba(59, 91, 156, 0.05);
  }

  .mobile-drawer-tab.active {
    background: rgba(59, 91, 156, 0.1);
    color: var(--brand-2);
    border-left-color: var(--brand-2);
    font-weight: 600;
  }

  .mobile-drawer-tab span:last-child {
    flex: 1;
  }

  .mobile-drawer-logout {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border, #e5e7eb);
  }

  .mobile-drawer-logout-btn:hover {
    background: rgba(220, 38, 38, 0.08) !important;
  }

  .mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
    align-items: center;
    justify-content: center;
  }

  @media (max-width: 768px) {
    .mobile-menu-btn {
      display: flex !important;
      align-items: center;
      justify-content: center;
    }

    .tabs {
      display: none !important;
    }

    .header-right .logout-btn {
      display: none !important;
    }

    .header-left {
      font-size: 0.8125rem;
      max-width: 45%;
      overflow: hidden;
      white-space: normal;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      flex-shrink: 1;
    }

    .header-center {
      position: static;
      transform: none;
      order: 3;
      width: 100%;
      margin-top: 0.25rem;
      font-size: 0.75rem;
      padding: 0.4rem 0.75rem;
      text-align: center;
      justify-content: center;
    }

    .header-right {
      margin-left: auto;
      flex-shrink: 0;
      gap: 0.75rem;
    }

    .user-info {
      font-size: 0.8rem;
    }
  }

  @media (max-width: 1024px) and (min-width: 769px) {
    .mobile-menu-btn {
      display: flex !important;
      align-items: center;
      justify-content: center;
    }

    .tabs {
      display: none !important;
    }

    .header-right .logout-btn {
      display: none !important;
    }

    .header-left {
      max-width: 220px;
      font-size: 0.9rem;
      white-space: normal;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .header-center {
      font-size: 0.75rem;
      padding: 0.45rem 0.85rem;
    }

    .header-right {
      gap: 1rem;
    }
  }

  .btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
  }

  .btn-loading>* {
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .btn-loading .material-icons,
  .btn-loading span,
  .btn-loading i,
  .btn-loading svg {
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .btn-loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.7s linear infinite;
  }

  .btn-secondary.btn-loading::after,
  .action-btn.secondary.btn-loading::after {
    border-color: rgba(30, 42, 68, 0.2);
    border-top-color: var(--brand-2);
  }

  @keyframes btn-spin {
    to {
      transform: rotate(360deg);
    }
  }

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
  }

  /* Şablon sarmalayıcı: sidebar (drawer) + içerik yan yana dursun.
    (sb-admin-2.css yüklenmediği için #wrapper flex'i burada tanımlanıyor) */
  #wrapper {
    display: flex;
    align-items: stretch;
  }

  #content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
  }

  .layout {
    display: flex;
    min-height: 100vh;
  }

  /* Ana kabuk (#wrapper > sidebar + #content-wrapper) düzeni zaten kuruyor.
     Sayfa partial'ları (.container-fluid içinde) .layout ile sarıldığında,
     ikinci bir 100vh yüksekliğinde flex oluşup içeriği aşağı itmesin diye
     içerik alanındaki .layout'u etkisizleştiriyoruz (sidebar çakışması fix). */
  .container-fluid .layout {
    display: block;
    min-height: 0;
  }

  /* Dış kabuk: #wrapper (align-items: stretch) sayesinde tüm içerik
     yüksekliğine kadar uzar; böylece arka plan/kenarlık ve en alttaki
     "Çıkış Yap" butonu sayfanın en dibine iner, altta boşluk kalmaz. */
  .drawer {
    width: 230px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    box-sizing: border-box;
    padding: 16px 14px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, padding 0.25s ease;
  }

  /* Üst + menü: kaydırma sırasında ekranda sabit kalır (sticky). */
  .drawer-ic {
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
  }

  .drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 4px 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 14px;
  }

  .drawer-brand {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
  }

  .drawer-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .user-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
  }

  .user-bilgi {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .user-ad {
    font-size: 14px;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }

  .user-rol {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .drawer.daralt .user-bilgi {
    display: none;
  }

  .drawer.daralt .drawer-top {
    flex-direction: column;
    gap: 10px;
  }

  .drawer-toggle {
    flex-shrink: 0;
    border: none;
    background: var(--bg);
    color: var(--text);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .drawer-toggle:hover {
    background: #e6ebf5;
  }

  .drawer.daralt {
    width: 64px;
    padding: 16px 8px;
  }

  .drawer.daralt .drawer-brand {
    display: none;
  }

  .drawer.daralt .drawer-top {
    justify-content: center;
  }

  .drawer.daralt .etiket {
    display: none;
  }

  .drawer.daralt .drawer-nav a {
    justify-content: center;
    padding: 10px 0;
  }

  .drawer-cikis {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--danger);
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
  }

  .drawer-cikis:hover {
    background: var(--danger-bg);
  }

  .drawer.daralt .drawer-cikis {
    justify-content: center;
    padding: 10px 0;
  }

  .drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .drawer-nav a {
    text-decoration: none;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .drawer-nav a:hover {
    background: var(--bg);
    color: var(--text);
  }

  .drawer-nav a.active {
    background: #eef4ff;
    color: var(--primary);
    font-weight: 600;
  }

  .drawer-nav .ikon {
    font-size: 16px;
  }

  .content {
    flex: 1;
    min-width: 0;
  }

  .page {
    max-width: 1100px;
    margin: 24px auto;
    padding: 0 20px;
  }

  .page-wide {
    max-width: none;
    margin: 24px 0;
    padding: 0 24px;
  }

  .table-scroll {
    width: 100%;
    max-height: 500px;
    overflow: auto;
    position: relative;
  }

  .table-scroll table {
    width: 100%;
    table-layout: fixed;
  }

  .table-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #ffffff;
    color: #374151;
    padding: 10px 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    letter-spacing: normal;
    white-space: nowrap;
    border-bottom: 2px solid #d1d5db;
    vertical-align: middle;
  }

  .table-scroll td {
    padding: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
  }

  .table-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  .table-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
  }

  .table-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 10px;
  }

  .table-scroll::-webkit-scrollbar-thumb:hover {
    background: #64748b;
  }

  .tablo-stok th:nth-child(1) {
    width: 8%;
  }

  .tablo-stok th:nth-child(2) {
    width: 12%;
  }

  .tablo-stok th:nth-child(3) {
    width: 6%;
  }

  .tablo-stok th:nth-child(4) {
    width: 5%;
  }

  .tablo-stok th:nth-child(5) {
    width: 5%;
  }

  .tablo-stok th:nth-child(6) {
    width: 5%;
  }

  .tablo-stok th:nth-child(7) {
    width: 5%;
  }

  .tablo-stok th:nth-child(8) {
    width: 8%;
  }

  .tablo-stok th:nth-child(9) {
    width: 5%;
  }

  .tablo-stok th:nth-child(10) {
    width: 5%;
  }

  .tablo-stok th:nth-child(11) {
    width: 5%;
  }

  .tablo-stok th:nth-child(12) {
    width: 10%;
  }

  .tablo-stok th:nth-child(13) {
    width: 8%;
  }

  .tablo-stok th:nth-child(14) {
    width: 8%;
  }

  .tablo-stok th:nth-child(15) {
    width: 8%;
  }

  .tablo-stok td:nth-child(3) {
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
  }

  .tablo-stok tbody tr:hover td:nth-child(3) {
    background: #bbf7d0;
  }

  .tablo-stok td:nth-child(3),
  .tablo-stok td:nth-child(5),
  .tablo-stok td:nth-child(6),
  .tablo-stok td:nth-child(7),
  .tablo-stok td:nth-child(9),
  .tablo-stok td:nth-child(10),
  .tablo-stok td:nth-child(11) {
    text-align: center;
  }

  .tablo-stok tbody tr {
    cursor: pointer;
  }

  .tablo-stok tbody tr.secili {
    background: #eef4ff;
  }

  .tablo-stok tbody tr.secili td:nth-child(3) {
    background: #bbf7d0;
  }

  .tablo-talep th:nth-child(1) {
    width: 6%;
  }

  .tablo-talep th:nth-child(2) {
    width: 9%;
  }

  .tablo-talep th:nth-child(3) {
    width: 4%;
  }

  .tablo-talep th:nth-child(4) {
    width: 4%;
  }

  .tablo-talep th:nth-child(5) {
    width: 4%;
  }

  .tablo-talep th:nth-child(6) {
    width: 6%;
  }

  .tablo-talep th:nth-child(7) {
    width: 4%;
  }

  .tablo-talep th:nth-child(8) {
    width: 4%;
  }

  .tablo-talep th:nth-child(9) {
    width: 7%;
  }

  .tablo-talep th:nth-child(10) {
    width: 4%;
  }

  .tablo-talep th:nth-child(11) {
    width: 6%;
  }

  .tablo-talep th:nth-child(12) {
    width: 4%;
  }

  .tablo-talep th:nth-child(13) {
    width: 5.5%;
  }

  .tablo-talep th:nth-child(14) {
    width: 5.5%;
  }

  .tablo-talep th:nth-child(15) {
    width: 5.5%;
  }

  .tablo-talep th:nth-child(16) {
    width: 6%;
  }

  .tablo-talep th:nth-child(17) {
    width: 6%;
  }

  .tablo-talep th:nth-child(18) {
    width: 9%;
  }

  .tablo-talep th:nth-child(19) {
    width: 5%;
  }

  .tablo-talep th:nth-child(20) {
    width: 5%;
  }

  .tablo-talep td:nth-child(3),
  .tablo-talep td:nth-child(4),
  .tablo-talep td:nth-child(5),
  .tablo-talep td:nth-child(7),
  .tablo-talep td:nth-child(8),
  .tablo-talep td:nth-child(9),
  .tablo-talep td:nth-child(10),
  .tablo-talep td:nth-child(12),
  .tablo-talep td:nth-child(13),
  .tablo-talep td:nth-child(14),
  .tablo-talep td:nth-child(15) {
    text-align: center;
  }

  .tablo-talep td:nth-child(16) {
    font-weight: 700;
    text-align: right;
  }

  .tablo-talep td:nth-child(6),
  .tablo-talep td:nth-child(11) {
    background: #fef3c7;
  }

  .tablo-talep td:nth-child(9) {
    background: #dcfce7;
  }

  .tablo-talep td:nth-child(9) .hucre-input {
    background: #fff;
  }

  .hucre-input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 12px;
    text-align: center;
    background: #fffef5;
    outline: none;
  }

  .hucre-input:focus {
    border-color: var(--primary);
    background: #fff;
  }

  .tablo-talep td:has(.hucre-input) {
    padding: 4px 6px;
  }

  .miktar-hucre {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .miktar-hucre .hucre-input {
    flex: 1;
    min-width: 0;
  }

  .miktar-max {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
  }

  .tablo-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
  }

  .onay-mesaj {
    font-size: 13px;
    font-weight: 600;
  }

  .onay-mesaj.basari {
    color: var(--success);
  }

  .onay-mesaj.hata {
    color: var(--danger);
  }

  .toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: var(--text);
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .toast.toast-acik {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .toast-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    animation: toast-pop 0.4s ease;
  }

  @keyframes toast-pop {
    0% {
      transform: scale(0);
    }

    60% {
      transform: scale(1.25);
    }

    100% {
      transform: scale(1);
    }
  }

  .page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .page-head h2 {
    margin: 0;
    font-size: 20px;
  }

  .page-head p {
    margin: 4px 0 0;
    color: var(--muted);
  }

  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
  }

  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .card .label {
    color: var(--muted);
    font-size: 13px;
  }

  .card .value {
    font-size: 24px;
    font-weight: 700;
    margin-top: 6px;
  }

  /* ===================== DASHBOARD (LANDING) ===================== */
  .hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
  }

  .hero-etiket {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.16);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
  }

  .hero-metin h1 {
    margin: 0 0 8px;
    font-size: 28px;
  }

  .hero-metin p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
  }

  .modul-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }

  .modul-kart {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  }

  .modul-kart:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
  }

  .modul-ikon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 6px;
  }

  .modul-ikon.mavi {
    background: #eef4ff;
  }

  .modul-ikon.yesil {
    background: var(--success-bg);
  }

  .modul-kart h3 {
    margin: 0;
    font-size: 17px;
  }

  .modul-kart p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
  }

  .modul-link {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
  }

  .panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .toolbar {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .filtre-grup {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .filtre-grup label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
  }

  .cari-toolbar {
    background: #fafbfd;
  }

  .cari-grup {
    flex: 1;
    min-width: 260px;
    max-width: 480px;
  }

  .arama-kutu {
    position: relative;
    display: flex;
    align-items: center;
  }

  .arama-ikon {
    position: absolute;
    left: 10px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0.6;
  }

  .arama-kutu input {
    width: 100%;
    padding: 9px 10px 9px 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
  }

  .arama-kutu input:focus {
    border-color: var(--primary);
  }

  .toolbar input,
  .toolbar select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
  }

  .toolbar input:focus,
  .toolbar select:focus {
    border-color: var(--primary);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
  }

  th,
  td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }

  td {
    font-weight: 500;
  }

  th {
    background: #fafbfd;
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  tbody tr:hover {
    background: #fafbfd;
  }

  .empty {
    padding: 40px;
    text-align: center;
    color: var(--muted);
  }

  .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
  }

  .badge-beklemede {
    background: var(--warning-bg);
    color: var(--warning);
  }

  .badge-onaylandi {
    background: var(--success-bg);
    color: var(--success);
  }

  .badge-reddedildi {
    background: var(--danger-bg);
    color: var(--danger);
  }

  .badge-muted {
    color: var(--muted);
  }

  .btn {
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg);
    color: var(--text);
  }

  .btn:hover {
    filter: brightness(0.97);
  }

  .btn-primary {
    background: var(--primary);
    color: #fff;
  }

  .btn-primary:hover {
    background: var(--primary-dark);
  }

  .btn-success {
    background: var(--success);
    color: #fff;
  }

  .btn-danger {
    background: var(--danger);
    color: #fff;
  }

  .btn-sm {
    padding: 5px 9px;
    font-size: 12px;
  }

  .actions {
    display: flex;
    gap: 6px;
  }

  .fis {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
  }

  .fis-head {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px dashed var(--border);
    padding-bottom: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .fis-head .fis-no {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
  }

  .fis-meta {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
  }

  .fis-total {
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    margin-top: 14px;
  }

  .page-head-actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .panel-baslik {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .panel-baslik h3 {
    margin: 0;
    font-size: 15px;
  }

  .panel-bilgi {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
  }

  .secim-kolon {
    width: 42px;
    text-align: center;
  }

  .secim-kolon input {
    width: 16px;
    height: 16px;
    cursor: pointer;
  }

  .tablo-onay th:nth-child(2) {
    width: 10%;
  }

  .tablo-onay th:nth-child(3) {
    width: 16%;
  }

  .tablo-onay th:nth-child(4) {
    width: 7%;
  }

  .tablo-onay th:nth-child(5) {
    width: 7%;
  }

  .tablo-onay th:nth-child(6) {
    width: 11%;
  }

  .tablo-onay th:nth-child(7) {
    width: 13%;
  }

  .tablo-onay th:nth-child(8) {
    width: 11%;
  }

  .tablo-onay th:nth-child(9) {
    width: 11%;
  }

  .tablo-onay th:nth-child(10) {
    width: 11%;
  }

  .tablo-onay td:nth-child(4),
  .tablo-onay td:nth-child(5) {
    text-align: center;
  }

  @media print {

    .drawer,
    .no-print,
    .page-head-actions {
      display: none !important;
    }

    .content,
    .page,
    .page-wide {
      margin: 0;
      padding: 0;
      max-width: none;
    }

    .fis {
      box-shadow: none;
      border: 1px solid #ccc;
    }
  }

/* ==========================================================================
   SATINTALEP & SİPARİŞ sayfalarından taşınan stiller
   (Önceden ilgili .ejs dosyalarında inline <style> içindeydi. Kaynak
   sırasında en sonda oldukları için mevcut kuralları ezme davranışı korunur.)
   ========================================================================== */

/* --- Sekmeler (talep kalemleri / cari) --- */
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.tab-btn {
  border: none;
  background: #f3f3f3;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
}

.tab-btn.active {
  background: #0d6efd;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* --- Kaydırmalı tablo kabı + talep kalemleri tablosu --- */
.table-scroll {
  overflow: auto;
  max-height: 500px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
}

.tablo-talep {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.tablo-talep thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  white-space: nowrap;
  padding: 9px 8px;
  border: 1px solid rgba(255, 255, 255, .15);
}

.tablo-talep td {
  padding: 8px 10px;
  border: 1px solid #ececec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 38px;
}

.tablo-talep tbody tr:hover {
  background: #eef5ff;
}

/* --- Talep kalemleri kolon genişlikleri (colgroup) --- */
.col-kod {
  width: 130px;
}

.col-ad {
  width: 320px;
}

.col-stok {
  width: 85px;
}

.col-fiyat {
  width: 120px;
}

.col-doviz {
  width: 90px;
}

.col-isk {
  width: 70px;
}

.col-miktar {
  width: 90px;
}

.col-birim {
  width: 70px;
}

.col-aciklama {
  width: 260px;
}

.col-kar {
  width: 70px;
}

.col-sube {
  width: 170px;
}

.col-talepeden {
  width: 170px;
}

/* --- Talep kalemleri hücre hizalamaları --- */
.tablo-talep td:nth-child(1),
.tablo-talep td:nth-child(2),
.tablo-talep td:nth-child(17),
.tablo-talep td:nth-child(19),
.tablo-talep td:nth-child(20) {
  text-align: left;
}

.tablo-talep td:nth-child(3),
.tablo-talep td:nth-child(4),
.tablo-talep td:nth-child(5),
.tablo-talep td:nth-child(7),
.tablo-talep td:nth-child(8),
.tablo-talep td:nth-child(9),
.tablo-talep td:nth-child(10),
.tablo-talep td:nth-child(12),
.tablo-talep td:nth-child(13),
.tablo-talep td:nth-child(14),
.tablo-talep td:nth-child(15),
.tablo-talep td:nth-child(18),
.tablo-talep th {
  text-align: center;
}

.tablo-talep td:nth-child(6),
.tablo-talep td:nth-child(11),
.tablo-talep td:nth-child(16) {
  text-align: right;
  font-weight: 600;
}

/* --- Sipariş: sıralama ikonları --- */
.sort-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #2563eb;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  vertical-align: middle;
  transition: .2s;
}

.sort-icon:hover {
  background: #2563eb;
  color: #fff;
  transform: scale(1.15);
}

.sort-icon.active {
  background: #16a34a;
  color: #fff;
}

/* --- Sipariş: detayına bakılan (tıklanan) satır vurgusu --- */
#siparis-listesi tr.secili-siparis > td {
  background: #eef4ff !important;
  color: #1e3a8a;
  font-weight: 600;
}

#siparis-listesi tr.secili-siparis > td:first-child {
  box-shadow: inset 3px 0 0 #3b5b9c;
}

/* --- Sipariş: Verilen Siparişler tablosu kolon genişlikleri --- */
#siparis-listesi-tablo {
  min-width: 1300px;
}

#siparis-listesi-tablo th:nth-child(1),
#siparis-listesi-tablo td:nth-child(1) {
  width: 90px;
}

#siparis-listesi-tablo th:nth-child(2),
#siparis-listesi-tablo td:nth-child(2) {
  width: 100px;
}

#siparis-listesi-tablo th:nth-child(3),
#siparis-listesi-tablo td:nth-child(3) {
  width: 90px;
}

#siparis-listesi-tablo th:nth-child(4),
#siparis-listesi-tablo td:nth-child(4) {
  width: 140px;
}

#siparis-listesi-tablo th:nth-child(5),
#siparis-listesi-tablo td:nth-child(5) {
  width: 280px;
}

#siparis-listesi-tablo th:nth-child(6),
#siparis-listesi-tablo td:nth-child(6) {
  width: 100px;
}

#siparis-listesi-tablo th:nth-child(7),
#siparis-listesi-tablo td:nth-child(7) {
  width: 90px;
}

#siparis-listesi-tablo th:nth-child(8),
#siparis-listesi-tablo td:nth-child(8) {
  width: 120px;
}

#siparis-listesi-tablo th:nth-child(9),
#siparis-listesi-tablo td:nth-child(9) {
  width: 130px;
  text-align: right;
}

#siparis-listesi-tablo th:nth-child(10),
#siparis-listesi-tablo td:nth-child(10) {
  width: 130px;
}

#siparis-listesi-tablo th:nth-child(11),
#siparis-listesi-tablo td:nth-child(11) {
  width: 120px;
}

/* --- Satıntalep: iskonto modalı --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: 520px;
  max-width: 95%;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .25);
  overflow: hidden;
  animation: modalShow .20s ease;
}

@keyframes modalShow {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #0d6efd;
  color: #fff;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  border: none;
  background: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.modal-grid input {
  width: 100%;
}

@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

.modal-footer {
  padding: 18px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid #eee;
}

.sayi-input {
  text-align: right;
}