/* styles.css — sadə, təmiz və bank tərzi görünüş */

/* Reset & base */
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Inter, "Segoe UI", Roboto, Arial, sans-serif;background:#f4f6f8;color:#1f2937}

/* Header */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 20px;
  background:linear-gradient(90deg,#0f172a 0%, #1e293b 100%);
  color:#fff;
  height:130px;
}

.logon {
    display: none;
    position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999;
background: white;

}
.brand{font-weight:700;font-size:18px;letter-spacing:0.6px}
.top-amount-wrap{text-align:center;flex:1}
.top-amount-wrap .label{font-size:13px;opacity:0.85}
#total-amount{
  font-size:48px;
  font-weight:800;
  margin-top:6px;
  letter-spacing:1px;
}
.sub.small{opacity:0.85;margin-top:6px;font-size:13px}
.mini-values{margin-top:8px;font-size:13px;display:flex;gap:12px;justify-content:center}

/* hamburger for mobile */
.hamburger{
  background:transparent;border:0;color:#fff;font-size:22px;cursor:pointer;display:none
}

/* Main controls */
.main{max-width:1080px;margin:20px auto;padding:16px}
.controls{display:flex;gap:16px;justify-content:center;margin-bottom:18px}
.big-btn{
  background:#0f172a;color:#fff;padding:14px 22px;border-radius:10px;border:0;font-size:16px;cursor:pointer;box-shadow:0 6px 18px rgba(15,23,42,0.12)
}
.big-btn:hover{transform:translateY(-2px);transition:all .14s ease}

/* Info cards */
.info-cards{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:6px}
.card{background:#fff;padding:14px;border-radius:10px;box-shadow:0 8px 24px rgba(16,24,40,0.06)}
.card-title{font-weight:700;margin-bottom:10px}
.card-body{color:#374151}

/* Overlay panel */
.overlay{position:fixed;inset:0;background:#0206178c;display:flex;align-items:flex-start;justify-content:center;padding:28px;z-index:999}
.panel-wrap{background:#fff;width:100%;max-width:980px;border-radius:10px;padding:18px;box-shadow:0 30px 80px rgba(2,6,23,0.6);max-height:88vh;overflow:auto;height:100%;overflow-y:scroll}

  .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
  }
  
  .round-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .round-btn.green {
    background-color: #2ecc71;
  }
  
  .round-btn.green:hover {
    background-color: #27ae60;
  }
  
  .round-btn.red {
    background-color: #e74c3c;
  }
  
  .round-btn.red:hover {
    background-color: #c0392b;
  }
  .round-btn.blue {
    background-color: #3498db; /* Mavi */
  }
  
  .round-btn.blue:hover {
    background-color: #2980b9;
  }

  
#xerc-form-container h3 {
    font-size: 24px;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

#xerc-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#xerc-form label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

#xerc-form select, #xerc-form input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

#xerc-form select:focus, #xerc-form input:focus {
    border-color: #3498db; /* Mavi renk, focus efekti */
    outline: none;
}

#xerc-form button {
    background-color: #2ecc71; /* Yeşil */
    color: #fff;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#xerc-form button:hover {
    background-color: #27ae60; /* Hoverda daha koyu yeşil */
}

#xerc-form-container p {
    text-align: center;
    font-size: 14px;
    color: #666;
}

#xerc-form-container .cancel-btn {
    color: #e74c3c;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    text-align: center;
}

.filters {
  display: flex;
  flex-direction: column;
  
}
.filter {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.filter div {
  width: 100%;
  
}

.filialbasliq{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.filialbasliq div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
}
.filialbuton {
    display: flex;
  flex-direction: row;
  justify-content: space-between;
} 


.loading{text-align:center;padding:40px;color:#555}

/* Tables */
.list-table{width:100%;border-collapse:collapse;margin-top:12px}
.list-table th,.list-table td{padding:10px;border-bottom:1px solid #f1f5f9;text-align:left;font-size:14px}
.list-table thead th{background:#f8fafc;font-weight:700}

.section-header {
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    background: #fff;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.data-table th {
    background: #0066cc;
    color: white;
    padding: 8px;
    text-align: center;
}

.data-table td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.data-table tr:hover {
    background: #f5faff;
}


/* Forms */
.form-area label{display:block;margin-bottom:8px;font-size:14px}
.form-area input[type="text"], .form-area input[type="number"], .form-area input[type="datetime-local"]{
  width:100%;padding:8px;border:1px solid #e6e9ee;border-radius:6px;font-size:14px;margin-top:6px
}
.form-area button{margin-top:10px;padding:10px 16px;border-radius:8px;border:0;background:#06b6d4;color:#fff;cursor:pointer}

/* Footer */
.footer{text-align:center;padding:12px;color:#9aa6b2;font-size:13px}
.menu {
  display: flex;
  flex-direction: row;

}
.menu a {
  color:white;
}
   .menutext{display: none;}

   
/* Buton stili */
#dovr {
    background-color: #004aad;
    color: #fff;
    border: none;
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
}
#dovr:hover {
    background-color: #0066ff;
}

/* Spinner ekranı */
#loadingOverlay {
 
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Dönme animasyonu */
.spinner {
    border: 8px solid #e0e0e0;
    border-top: 8px solid #004aad;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Yükleniyor yazısı */
.loading-text {
    margin-top: 20px;
    font-size: 20px;
    color: #004aad;
    font-weight: 600;
}

/* Başarı mesajı */
#successMessage {
    display: none;
    margin-top: 40px;
    color: #00b894;
    font-size: 22px;
    font-weight: bold;
}
.top-actions {
      display:flex;
      gap:14px;
      justify-content:center;
      margin:20px 0;
    }
    .action-btn {
      background:#0f172a;color:#fff;padding:12px 20px;border-radius:12px;border:0;cursor:pointer;font-weight:600;
      box-shadow:0 8px 20px rgba(15,23,42,0.12);
    }

    /* Kart konteyneri */
    #kassa-cards {
      display:flex;
      gap:18px;
      justify-content:center;
      flex-wrap:wrap;
      padding:20px;
      max-width:1200px;
      margin:0 auto 60px;
    }

    /* Kart stili */
    .kassa-card {
      width:220px;
      height:140px;
      border-radius:16px;
      overflow:hidden;
      position:relative;
      box-shadow:0 10px 30px rgba(2,6,23,0.12);
      background:#fff;
      cursor:pointer;
      transition: transform .15s ease;
    }
    .kassa-card:hover { transform: translateY(-4px); }

    .kassa-card .thumb {
      position:absolute;
      inset:0;
      background-size:cover;
      background-position:center;
      filter:brightness(0.45);
    }

    .kassa-card .overlay {
      position:absolute;
      inset:0;
      display:flex;
      flex-direction:column;
      justify-content:space-between;
      padding:12px;
      color:#fff;
    }

    .kassa-card .amount {
      font-size:20px;
      font-weight:700;
      text-align:right;
      letter-spacing:0.4px;
    }

    .kassa-card .name {
      font-size:13px;
      opacity:0.9;
      background: rgba(0,0,0,0.25);
      padding:6px 8px;
      border-radius:8px;
      display:inline-block;
    }

    /* Toplam kart */
    .kassa-card.total {
      width:260px;
      background:linear-gradient(135deg,#004aad,#0078ff);
      color:#fff;
    }
    .kassa-card.total .thumb { display:none; }
    .kassa-card.total .overlay { color:#fff; }

    /* Responsive */
    @media (max-width:700px) {
      #kassa-cards { gap:12px;padding:12px; }
      .kassa-card { width:44%; height:130px; }
      .kassa-card.total { width:100%; }
    }
    @media (max-width:420px) {
      .kassa-card { width:100%; }
    }
/* Responsive */
@media (max-width:900px){
  .menu {
  display: flex;
  flex-direction: row;

}
  #total-amount{font-size:40px}
  .info-cards{grid-template-columns:1fr}
   .menutext{display: none;}
}
@media (max-width:600px){
  .menu {
    position: absolute;
      display: flex;
  flex-direction: row;
  top:120px;
      right: 0px;
  width: 20%;
  height: 90%;
   background:linear-gradient(45deg,#0f172a 0%, #1e293b 100%);
   justify-content: center;
   align-items: center;
  display: none;
  }
  .menu div{
    display: flex;
    flex-direction: column;
    justify-content: center;
   align-items: center;
  }

  .menutext{display: block;}
  .hamburger{display:block}
  .brand{font-size:16px}
  #total-amount{font-size:32px}
  .controls{flex-direction:column;gap:10px}
  .big-btn{width:100%}
  .panel-wrap{margin:12px;border-radius:8px;padding:12px}
}
