/* ==========================================================================
   USTA ASANSÖR (ustaasansor.com) Kurumsal Teklif Yönetim Sistemi
   Aydınlık Kurumsal Dashboard & Sol Sidebar Mimarisi
   ========================================================================== */

:root {
  /* Orijinal PDF Kurumsal Renk Paleti (CMYK Tabanlı) */
  --usta-navy: #1c3046;
  --usta-navy-dark: #121e2c;
  --usta-navy-light: #2d4563;
  --usta-green: #00966b;
  --usta-green-dark: #007a56;
  --usta-green-bright: #10b981;
  --usta-gray-bar: #eceff1;
  --usta-gray-bg: #eceff1;
  --usta-text-dark: #1c3046;
  --usta-text-muted: #64748b;
  --usta-border: #e2e8f0;

  /* AYDINLIK KURUMSAL DASHBOARD ARAYÜZ RENKLERİ */
  --app-bg: #f8fafc;
  --app-sidebar-bg: #ffffff;
  --app-card-bg: #ffffff;
  --app-border-color: #e2e8f0;
  --app-border-light: #f1f5f9;
  --app-text-primary: #0f172a;
  --app-text-secondary: #475569;
  --app-text-muted: #94a3b8;
  --app-primary: #00966b;
  --app-primary-hover: #00805a;
  --app-primary-light: #ecfdf5;

  /* Yazı Tipi: Outfit (Orijinal PDF Fontu) */
  --font-family: 'Outfit', sans-serif;
}

/* ================= Reset & Temel Ayarlar ================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.corporate-app.light-dashboard {
  font-family: var(--font-family);
  background-color: var(--app-bg);
  color: var(--app-text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background-color: var(--app-bg);
}

/* ================= SOL DİKEY SIDEBAR ================= */
.app-sidebar {
  width: 330px;
  min-width: 330px;
  max-width: 330px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--app-sidebar-bg);
  border-right: 1px solid var(--app-border-color);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.15rem;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
  z-index: 999;
  box-sizing: border-box;
}

/* 1. Sidebar Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--app-border-color);
  margin-bottom: 1.15rem;
}
.sidebar-logo {
  height: 38px;
  width: auto;
}
.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}
.sidebar-brand-text .system-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--usta-navy);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* 2. Sidebar Nav Tabs */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--app-text-secondary);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}
.nav-item:hover {
  background-color: var(--app-border-light);
  color: var(--usta-navy);
}
.nav-item.active {
  background-color: var(--usta-navy);
  color: #ffffff;
  border-color: var(--usta-navy-dark);
  box-shadow: 0 2px 8px rgba(28, 48, 70, 0.2);
}
.nav-count-badge {
  margin-left: auto;
  background: #e2e8f0;
  color: #334155;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
}
.nav-item.active .nav-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* 3. Primary Actions Group */
.sidebar-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--app-border-color);
  margin-bottom: 1.25rem;
}
.btn-new-proposal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1.5px solid var(--usta-navy);
  color: var(--usta-navy);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-new-proposal:hover {
  background-color: var(--usta-navy);
  color: #ffffff;
}
.btn-download-pdf-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--usta-green);
  border: 1px solid var(--usta-green-dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px rgba(0, 150, 107, 0.25);
}
.btn-download-pdf-cta:hover {
  background: var(--usta-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 150, 107, 0.35);
}
.sidebar-sub-actions {
  display: flex;
  gap: 0.35rem;
}
.btn-sub-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: #f8fafc;
  border: 1px solid var(--app-border-color);
  color: var(--app-text-secondary);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.45rem 0.25rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-sub-action:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--usta-navy);
}

/* 4. Teklif Düzenleme Paneli */
.sidebar-edit-panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.sidebar-section-divider {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--app-text-muted);
  text-transform: uppercase;
  padding-top: 0.5rem;
}
.sidebar-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.sidebar-form-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--app-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sidebar-form-input, .sidebar-form-select, .sidebar-form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--app-border-color);
  color: var(--app-text-primary);
  font-family: inherit;
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}
.sidebar-form-input:focus, .sidebar-form-select:focus, .sidebar-form-textarea:focus {
  border-color: var(--usta-green);
  box-shadow: 0 0 0 3px rgba(0, 150, 107, 0.1);
}
.sidebar-form-input.bold-code {
  font-weight: 800;
  color: var(--usta-navy);
  letter-spacing: 0.04em;
}
.sidebar-form-input.bold-price {
  font-weight: 800;
  color: var(--usta-green);
  font-size: 0.88rem;
}
.sidebar-form-row {
  display: flex;
  gap: 0.5rem;
}
.flex-1 { flex: 1; }

/* Sayfa Gezgini */
.sidebar-page-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-page-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--app-text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid var(--app-border-color);
  transition: all 0.15s ease;
}
.sidebar-page-item:hover, .sidebar-page-item.active {
  background: #ffffff;
  border-color: var(--usta-green);
  color: var(--usta-navy);
}
.sidebar-page-item .p-num {
  background: var(--usta-navy);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}

/* Kalem İşlemleri */
.sidebar-tools-flex {
  display: flex;
  gap: 0.5rem;
}
.btn-tool {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--app-primary-light);
  border: 1px dashed var(--usta-green);
  color: var(--usta-green-dark);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.5rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-tool:hover {
  background: #d1fae5;
}

/* 5. Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--app-border-color);
  display: flex;
  flex-direction: column;
}
.corp-brand-tag {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--usta-navy);
  letter-spacing: -0.01em;
}

/* ================= SAĞ ÇALIŞMA ALANI ================= */
.app-main-content {
  flex: 1;
  min-width: 0;
  background-color: #eef2f6;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
}

.workspace-view {
  display: none;
  width: 100%;
}
.workspace-view.active {
  display: block;
}

.document-viewport {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ================= A4 KAĞITLARI (210mm x 297mm BİREBİR ÖLÇÜLER) ================= */
/* ================= A4 KAĞITLARI (210mm x 297mm BİREBİR ÖLÇÜLER) ================= */
.pages-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.a4-sheet {
  width: 210mm;
  height: 297mm;
  min-height: 297mm;
  max-height: 297mm;
  background-color: #ffffff;
  color: #1c3046;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  display: flex !important;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  page-break-after: always;
  break-after: page;
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
}

/* Üst ve Alt Lacivert Bantlar (42.75pt -> ~15.08mm) */
.sheet-navy-bar {
  width: 100%;
  height: 15.08mm;
  background-color: #1c3046;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sheet-navy-bar.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13.4mm;
  position: relative;
}

/* Alt Banttaki Yeşil Daire Sayfa Numarası Rozeti */
.sheet-badge-circle {
  width: 24px;
  height: 24px;
  background-color: #00966b;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.sheet-section-title {
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ================= SAYFA 1: 01 GİRİŞ & KURUMSAL TANITIM ================= */
.sheet-top-white-p1 {
  padding: 6mm 13.4mm 4mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #ffffff;
  flex-shrink: 0;
}

.p1-header-brand {
  text-align: center;
  margin-bottom: 2mm;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p1-brand-logo {
  height: 16mm;
  width: auto;
}

.p1-brand-divider-line {
  width: 20mm;
  height: 2px;
  background-color: #1c3046;
  margin-top: 2.5mm;
  border-radius: 2px;
}

.p1-vision-box {
  width: 88%;
  margin: 0 auto;
  text-align: center;
}

.p1-vision-text {
  font-size: 11.2px;
  line-height: 1.48;
  color: #64748b;
  outline: none;
}
.p1-vision-text:focus {
  background: #f1f5f9;
  border-radius: 4px;
}

/* Gri Alt Gövde Alanı - Tam Genişlik (100% Full-Bleed) */
.sheet-gray-section-p1 {
  background-color: #e6e6e6;
  width: 100%;
  flex-grow: 1;
  padding: 5mm 13.4mm 6mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.p1-mockups-visual {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.p1-mockups-img {
  width: 100%;
  height: auto;
  max-height: 120mm;
  object-fit: contain;
  display: block;
}

/* 3 Adet Beyaz Kurumsal İletişim Kartı */
.bottom-contact-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7.6mm;
  width: 100%;
  box-sizing: border-box;
}

.contact-pill-card {
  background: #ffffff;
  border-radius: 6px;
  height: 30.6mm;
  padding: 3.5mm 4.5mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.contact-icon-frame {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e6e6e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-texts {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  font-weight: 700;
  color: #1c3046;
  line-height: 1.35;
}

/* ================= SAYFA 2: 02 FİYAT TEKLİFİ (BİREBİR TEKLİF FORMU) ================= */
.sheet-body-p2 {
  padding: 5.5mm 13.4mm 4mm;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 266.84mm;
  box-sizing: border-box;
}

.p2-top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3.5mm;
}

.p2-vector-logo {
  height: 15mm;
  width: auto;
}

.p2-header-pills {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.p2-fiyat-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1c3046;
  letter-spacing: 0.04em;
  margin-bottom: 1px;
}

.dark-pill {
  background-color: #1c3046;
  color: #ffffff;
  font-size: 9.2px;
  font-weight: 600;
  padding: 2.2px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Yeşil Oval Alıcı Bandı */
.green-recipient-pill {
  background-color: #00966b;
  color: #ffffff;
  border-radius: 25px;
  padding: 5mm 18px;
  text-align: center;
  margin-bottom: 3.5mm;
  box-sizing: border-box;
}

.green-recipient-pill span {
  font-size: 12.8px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: inline-block;
  outline: none;
}
.green-recipient-pill span:focus {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* 16 Kalemlik Tablo */
.p2-table-wrapper {
  margin-bottom: 3mm;
  width: 100%;
}

.quotation-table {
  width: 100%;
  border-collapse: collapse;
}

.th-service-name {
  background-color: #e6e6e6;
  text-align: left;
  padding: 3px 12px;
  font-size: 9.8px;
  font-weight: 700;
  color: #1c3046;
  height: 22.6pt;
  box-sizing: border-box;
}

.quotation-table tbody tr {
  border-bottom: 1px solid #e6e6e6;
  height: 22.55pt;
  box-sizing: border-box;
  position: relative;
  transition: background 0.15s ease;
}

.quotation-table tbody tr:hover {
  background-color: #f8fafc;
}

.cell-service-text {
  padding: 1.5px 12px;
  font-size: 9.42pt;
  line-height: 1.25;
  color: #1c3046;
  outline: none;
  vertical-align: middle;
}
.cell-service-text:focus {
  background-color: #eff6ff;
  border-radius: 3px;
}

/* Satır Hover Butonları (Yalnızca Editörde Görünür) */
.cell-action-bar {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  gap: 3px;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 4px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.quotation-table tbody tr:hover .cell-action-bar {
  display: flex;
}

.btn-mini-act {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 11px;
  padding: 1px 3px;
  border-radius: 3px;
  opacity: 0.7;
}
.btn-mini-act:hover {
  opacity: 1;
  background-color: #e2e8f0;
}

/* Genel Toplam Rozeti */
.p2-total-wrapper {
  margin-bottom: 3mm;
  display: flex;
  justify-content: flex-start;
}

.green-total-pill {
  background-color: #00966b;
  color: #ffffff;
  border-radius: 20px;
  padding: 3px 16px;
  display: inline-block;
}

.green-total-pill span {
  font-size: 9.5pt;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  outline: none;
}
.green-total-pill span:focus {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

/* Resmi Ticari Şartlar */
.p2-commercial-terms {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p2-commercial-terms p {
  font-size: 8.8pt;
  line-height: 1.38;
  color: #64748b;
  margin: 0;
  outline: none;
}
.p2-commercial-terms p:focus {
  background: #eff6ff;
  border-radius: 2px;
}
.p2-commercial-terms p.term-space {
  margin-top: 3px;
}

/* ================= SAYFA 3: 03 REFERANSLAR (12 REFERANS KARTI) ================= */
.sheet-top-white-p3 {
  padding: 6mm 13.4mm 4mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #ffffff;
  flex-shrink: 0;
}

.sheet-gray-section-p3 {
  background-color: #e6e6e6;
  width: 100%;
  flex-grow: 1;
  padding: 6mm 13.4mm 6mm;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* 4x3 Izgara (12 Referans Kalemi) */
.p3-ref-grid-12 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4.5mm;
  margin-bottom: 3.5mm;
  width: 100%;
}

.ref-item-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ref-logo-card {
  width: 100%;
  height: 20.2mm; /* 57.2pt */
  background: #ffffff;
  border-radius: 6.8pt;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  padding: 1.5mm;
}

.ref-logo-card img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.ref-labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 2.5px;
  width: 100%;
}

.ref-label-name {
  font-size: 7.1pt;
  font-weight: 700;
  color: #1c3046;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  outline: none;
}
.ref-label-name:focus {
  background: #fff;
  border-radius: 2px;
}

.ref-label-phone {
  font-size: 7.1pt;
  color: #64748b;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  outline: none;
}
.ref-label-phone:focus {
  background: #fff;
  border-radius: 2px;
}

.ref-text-placeholder {
  font-size: 8.5pt;
  font-weight: 800;
  color: var(--usta-navy);
  text-align: center;
  padding: 0 4px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Referans Yönetim Paneli Stilleri */
.ref-form-card {
  background: #f8fafc;
  border: 1px solid var(--app-border-color);
  border-radius: 8px;
  padding: 1rem;
}
.ref-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.ref-logo-uploader-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4px;
}
.ref-logo-preview-box {
  position: relative;
  height: 32px;
  width: 52px;
  background: #ffffff;
  border: 1px solid var(--app-border-color);
  border-radius: 4px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ref-logo-preview-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.btn-clear-logo {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ref-logo-help-text {
  font-size: 0.73rem;
  color: var(--app-text-muted);
}
.active-refs-table-wrapper {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--app-border-color);
  border-radius: 8px;
}
.ref-manage-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}
.ref-table-logo-thumb {
  width: 54px;
  height: 26px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  padding: 2px;
}
.ref-table-logo-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ref-table-logo-thumb span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--usta-navy);
}

/* ================= KANBAN, TABLOLAR & CRM MODÜLLERİ ================= */
.kanban-columns-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(230px, 1fr));
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
}

/* ================= ESKİ TEKLİFLER ARŞİVİ (LIGHT THEME) ================= */
#proposals-list-view {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.archive-header-card {
  background: #ffffff;
  border: 1px solid var(--app-border-color);
  border-radius: 10px;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.archive-header-left h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--usta-navy);
}

.archive-subtitle {
  font-size: 0.84rem;
  color: var(--app-text-secondary);
  margin-top: 0.2rem;
}

.archive-filter-bar {
  margin-bottom: 1.25rem;
}

.search-input-wrapper {
  position: relative;
  max-width: 480px;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 0.85rem;
}

.search-input-wrapper input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--app-border-color);
  color: var(--app-text-primary);
  padding: 0.65rem 0.85rem 0.65rem 2.5rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.search-input-wrapper input:focus {
  border-color: var(--usta-green);
  box-shadow: 0 0 0 3px rgba(0, 150, 107, 0.1);
}

.archive-table-card {
  background: #ffffff;
  border: 1px solid var(--app-border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.corporate-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.corporate-data-table th {
  background: #f8fafc;
  color: var(--app-text-secondary);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--app-border-color);
}

.corporate-data-table td {
  padding: 0.95rem 1.25rem;
  font-size: 0.86rem;
  color: var(--app-text-primary);
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.corporate-data-table tbody tr:hover {
  background-color: #f8fafc;
}

.badge-doc-id {
  display: inline-block;
  background: #e2e8f0;
  color: var(--usta-navy);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

.badge-kdv-status {
  display: inline-block;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 5px;
}

.price-text-bold {
  font-weight: 800;
  color: var(--usta-navy);
}

.table-actions-cell {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
}

.btn-table-action {
  padding: 0.42rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--app-border-color);
  background: #ffffff;
  color: var(--app-text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-table-action:hover {
  border-color: var(--usta-navy);
  color: var(--usta-navy);
}

.btn-table-action.primary {
  background: var(--usta-navy);
  color: #ffffff;
  border-color: var(--usta-navy);
}

.btn-table-action.primary:hover {
  background: var(--usta-navy-light);
}

.btn-table-action.danger {
  color: #ef4444;
}

.btn-table-action.danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ================= MODALS (LIGHT CORPORATE THEME) ================= */
.corporate-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}
.corporate-modal.active {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 520px;
  background-color: #ffffff;
  border: 1px solid var(--app-border-color);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.modal-box.modal-wide {
  max-width: 760px;
}

.modal-head {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--app-border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
}
.modal-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--usta-navy);
}
.btn-icon-close {
  background: transparent;
  border: none;
  color: var(--app-text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}
.btn-icon-close:hover { color: var(--usta-navy); }

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-foot {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--app-border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  background-color: #f8fafc;
}

.form-input {
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--app-border-color);
  color: var(--app-text-primary);
  padding: 0.55rem 0.85rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--usta-green);
  box-shadow: 0 0 0 3px rgba(0, 150, 107, 0.1);
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--app-text-secondary);
  margin-bottom: 0.35rem;
}

.modal-selection-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-select-card {
  background: #ffffff;
  border: 1px solid var(--app-border-color);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.modal-select-card:hover {
  border-color: var(--usta-green);
  background-color: var(--app-primary-light);
}

.btn-secondary {
  background: #ffffff;
  border: 1px solid var(--app-border-color);
  color: var(--app-text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: #cbd5e1;
  color: var(--usta-navy);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--app-border-color);
  color: var(--app-text-secondary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}
.btn-outline:hover {
  background: #f1f5f9;
  color: var(--usta-navy);
}

.btn-primary {
  background: var(--usta-green);
  border: 1px solid var(--usta-green-dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 1.15rem;
  border-radius: 6px;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--usta-green-dark);
}

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }

/* ================= PRINT CSS (3 SAYFA RESMİ A4 ÇIKTISI) ================= */
@media print {
  body.corporate-app {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .no-print, .app-sidebar, .cell-action-bar, .corporate-modal {
    display: none !important;
  }

  .app-layout {
    display: block !important;
    background: #ffffff !important;
  }

  .app-main-content {
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    width: 100% !important;
  }

  .document-desk-container, .document-viewport {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .pages-stack {
    gap: 0 !important;
  }

  .a4-sheet {
    box-shadow: none !important;
    margin: 0 !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 297mm !important;
    display: flex !important;
  }

  @page {
    size: A4 portrait;
    margin: 0;
  }
}

