/* RESTOM_PAY_V1 | Tahsilat paneli, siparis eylemleri ve masa karti kisayollari. */
#orderModal .order-section #paymentMethodsContainer { display: none !important; }

#orderModal .order-section .rs-pay-actions { display: grid !important; grid-template-columns: 1fr; gap: 8px; }
#orderModal .order-section .rs-pay-actions .rs-more-old { display: none !important; }
#orderModal .order-section .rs-pay-actions .rs-pay-main,
#orderModal .order-section .rs-pay-actions .rs-save-main {
  grid-column: 1 / -1 !important;
  min-height: 58px;
  border-radius: 12px;
  font-size: 1.02rem;
  font-weight: 800;
}
#orderModal .order-section .rs-pay-actions .rs-pay-main { display: none; background: linear-gradient(110deg, #0e9a60, #0a6f45) !important; color: #fff !important; }
#orderModal .order-section.rs-can-pay .rs-pay-actions .rs-pay-main { display: block; }
#orderModal .order-section.rs-can-pay .rs-pay-actions .rs-save-main { display: none; }
#orderModal .rs-quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
#orderModal .rs-quick-btn {
  min-height: 46px;
  padding: 6px 2px;
  border: 1px solid #dfe8e3;
  border-radius: 10px;
  background: #fff;
  color: #2e4238;
  font-size: .8rem;
  font-weight: 700;
}
#orderModal .rs-quick-btn:hover { border-color: #0e9a60; color: #0b7a4b; }

/* Masa karti */
.rs-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#tablesGrid .rs-card-actions .m-btn { min-height: 40px; border: 0; border-radius: 10px; font-size: .8rem; font-weight: 800; cursor: pointer; }
#tablesGrid .rs-card-pay { background: #0b7a4b; color: #fff; }
#tablesGrid .rs-card-print { background: #eef4f0; color: #2e4238; }
#tablesGrid .rs-card-print:hover { background: #dcebe3; }
#tablesGrid .table-card:has(.rs-card-actions) .m-btn-group .m-btn.primary { min-height: 36px; background: transparent; color: #0b7a4b; box-shadow: inset 0 0 0 1.5px #bfe0cf; }

/* Tahsilat paneli */
#rsPayDrawer { position: fixed; inset: 0; z-index: 4500; visibility: hidden; pointer-events: none; }
#rsPayDrawer.is-open { visibility: visible; pointer-events: auto; }
.rs-drawer-backdrop { position: absolute; inset: 0; background: rgba(9, 22, 16, .5); opacity: 0; transition: opacity .2s ease; }
#rsPayDrawer.is-open .rs-drawer-backdrop { opacity: 1; }
.rs-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: #f4f7f5;
  box-shadow: -18px 0 42px rgba(0, 0, 0, .28);
  transform: translateX(100%);
  transition: transform .22s ease;
}
#rsPayDrawer.is-open .rs-drawer-panel { transform: none; }
.rs-drawer-head { position: relative; flex: none; padding: 16px 20px 18px; background: linear-gradient(120deg, #07291c, #0d5a3a); color: #fff; text-align: center; }
.rs-drawer-tags { display: flex; gap: 8px; margin-bottom: 8px; }
.rs-drawer-tags span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .74rem; font-weight: 800; letter-spacing: .03em; }
.rs-drawer-close { position: absolute; top: 12px; right: 14px; width: 42px; height: 42px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.5rem; cursor: pointer; }
.rs-drawer-head small { display: block; color: rgba(255, 255, 255, .72); font-size: .82rem; }
.rs-drawer-head strong { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1.15; }
.rs-drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; }
.rs-drawer-body h3 { margin: 14px 0 8px; color: #55685d; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rs-change { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; align-items: end; padding: 12px; border: 1px solid #e0e8e3; border-radius: 12px; background: #fff; }
.rs-change label { grid-column: 1; color: #6c7f74; font-size: .74rem; font-weight: 700; }
.rs-change input { grid-column: 1; width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #d5e5db; border-radius: 9px; font-size: 1.05rem; font-weight: 700; }
.rs-change div { grid-column: 2; grid-row: 1 / 3; text-align: right; }
.rs-change span { display: block; color: #6c7f74; font-size: .74rem; font-weight: 700; }
.rs-change b { color: #0b7a4b; font-size: 1.3rem; font-weight: 800; }
.rs-tool-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.rs-tool-row button { min-height: 46px; padding: 4px; border: 1px solid #dfe8e3; border-radius: 10px; background: #fff; color: #2e4238; font-size: .78rem; font-weight: 700; cursor: pointer; }
.rs-tool-row button:hover { border-color: #0e9a60; color: #0b7a4b; }
#rsPayMethods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; color: #6c7f74; font-size: .85rem; }
.rs-method { min-height: 74px; padding: 8px; border: 3px solid transparent; border-radius: 13px; color: #fff; font-size: .92rem; font-weight: 800; cursor: pointer; }
.rs-method-0 { background: #0e8f5a; } .rs-method-1 { background: #2563a8; } .rs-method-2 { background: #b4561a; }
.rs-method-3 { background: #6d4bb5; } .rs-method-4 { background: #0f7f8c; } .rs-method-5 { background: #a53a5e; }
.rs-method.is-active { border-color: #fff; box-shadow: 0 0 0 3px #111d17; }
#rsPayExtra { margin-top: 10px; }
#rsPayExtra select { width: 100%; min-height: 44px; }
.rs-drawer-foot { flex: none; padding: 12px 16px; border-top: 1px solid #e0e8e3; background: #fff; }
#rsPayDone { width: 100%; min-height: 58px; border: 0; border-radius: 12px; background: linear-gradient(110deg, #0e9a60, #0a6f45); color: #fff; font-size: 1rem; font-weight: 800; cursor: pointer; }
#rsPayDone:disabled { background: #d8e2dc; color: #6c7f74; cursor: not-allowed; }
.dark-mode #orderModal .rs-quick-btn, .dark-mode .rs-tool-row button, .dark-mode .rs-change { border-color: #33463c; background: #223029; color: #dbe7e0; }
.dark-mode .rs-drawer-panel { background: #17211c; }
.dark-mode .rs-drawer-foot { border-color: #33463c; background: #1c2a23; }
.dark-mode .rs-change input { border-color: #33463c; background: #17211c; color: #fff; }
@media (prefers-reduced-motion: reduce) { .rs-drawer-panel, .rs-drawer-backdrop { transition: none; } }

/* Sag panel: Siparisler, Odemeler ve renkli eylemler */
#orderModal .order-section > div:first-child { margin-bottom: 8px !important; }
#orderModal .rs-box-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border: 1px solid #e3ebe6; border-radius: 12px 12px 0 0; background: #fff; color: #2e4238; font-size: .9rem; }
#orderModal .rs-box-head span { min-width: 24px; padding: 2px 7px; border-radius: 8px; background: #eef4f0; color: #4c6155; font-size: .76rem; font-weight: 800; text-align: center; }
#orderModal .order-section #orderSummary { margin: 0 0 8px; padding: 8px; border: 1px solid #e3ebe6; border-top: 0; border-radius: 0 0 12px 12px; background: #fff; }
#orderModal .rs-payments { flex: none; margin-bottom: 10px; }
#orderModal .rs-payments summary { border-radius: 12px; cursor: pointer; list-style: none; }
#orderModal .rs-payments summary::-webkit-details-marker { display: none; }
#orderModal .rs-payment-row { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; color: #2e4238; font-size: .82rem; }
#orderModal .rs-payment-row b { color: #0b7a4b; }
#orderModal .order-section .rs-pay-actions .rs-quick-row { display: grid !important; grid-column: 1 / -1 !important; grid-template-columns: repeat(4, 1fr) !important; width: 100%; }
#orderModal .order-section .rs-pay-actions .rs-quick-row .rs-quick-btn { display: flex; grid-column: auto !important; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 48px; padding: 4px 2px; border: 0; color: #fff !important; font-size: .76rem; }
#orderModal .rs-quick-btn svg { width: 15px; height: 15px; flex: none; }
#orderModal .order-section .rs-pay-actions .rs-quick-row .is-more { background: #2563eb !important; }
#orderModal .order-section .rs-pay-actions .rs-quick-row .is-move { background: #d99a00 !important; }
#orderModal .order-section .rs-pay-actions .rs-quick-row .is-cari { background: #17231d !important; }
#orderModal .order-section .rs-pay-actions .rs-quick-row .is-print { border: 1.5px solid #dfe8e3; background: #fff !important; color: #17231d !important; }
#orderModal .order-section .rs-pay-actions .rs-quick-row .rs-quick-btn:hover { filter: brightness(.94); }
.dark-mode #orderModal .rs-box-head, .dark-mode #orderModal .order-section #orderSummary { border-color: #33463c; background: #223029; color: #dbe7e0; }
#orderModal .rs-quick-btn.is-more { order: -1; }

/* Secim kutusu Tahsil Et dugmesinin ustunde, kaydirma gerektirmez */
#rsPayExtra { margin: 0; }
#rsPayExtra > div[style*="block"] { margin: 0 0 8px !important; }
#rsPayExtra select { padding: 0 10px; border: 1.5px solid #0e9a60; border-radius: 10px; background: #fff; font-weight: 700; }
@media (max-height: 760px) {
  .rs-drawer-head { padding: 10px 16px 10px; }
  .rs-drawer-tags { margin-bottom: 2px; }
  .rs-drawer-head strong { font-size: 1.7rem; }
  .rs-drawer-body { padding: 10px 14px; }
  .rs-change { padding: 8px 10px; }
  .rs-change input { min-height: 38px; }
  .rs-tool-row { margin-top: 8px; gap: 6px; }
  .rs-tool-row button { min-height: 38px; }
  .rs-drawer-body h3 { margin: 10px 0 6px; }
  .rs-method { min-height: 52px; }
  #rsPayMethods { gap: 7px; }
  .rs-drawer-foot { padding: 8px 14px; }
  #rsPayDone { min-height: 50px; }
}

/* Ust sekmeler: aktif ve uzerine gelinmis durumda yazi her zaman okunur */
#tableFilters .area-btn:not(.active):hover { background: #e6f2eb !important; color: #0b6b42 !important; }
#tableFilters .area-btn.active,
#tableFilters .area-btn.active:hover,
#tableFilters .area-btn._open.active:hover {
  border-color: #0e9a60 !important;
  background: #0e9a60 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  opacity: 1 !important;
}
#tableFilters .area-btn.active:hover { background: #0b8a55 !important; }
#tableFilters .area-btn.active .area-count,
#tableFilters .area-btn.active:hover .area-count { background: rgba(255, 255, 255, .24) !important; color: #fff !important; }
#tableFilters .area-btn._open:not(.active) { box-shadow: none !important; }
#tableFilters .area-btn[data-area="__package__"]:not(.active):hover { background: #ffe9c2 !important; color: #8a5100 !important; }
#tableFilters .area-btn[data-area="__package__"].active,
#tableFilters .area-btn[data-area="__package__"].active:hover { border-color: #e08600 !important; background: #e08600 !important; }
