:root{--pos-bg:#f4f7fb;--pos-card:#fff;--pos-card-2:#f8fafc;--pos-text:#172033;--pos-muted:#64748b;--pos-border:#dce4ef;--pos-primary:#2563eb;--pos-success:#059669;--pos-danger:#dc2626;--pos-shadow:0 12px 32px rgba(15,23,42,.07)}
.dark{--pos-bg:#0b1120;--pos-card:#111827;--pos-card-2:#172033;--pos-text:#f8fafc;--pos-muted:#b4c0d3;--pos-border:#334155;--pos-primary:#60a5fa;--pos-success:#34d399;--pos-danger:#fb7185;--pos-shadow:0 14px 36px rgba(0,0,0,.28)}
body{background:var(--pos-bg)!important;color:var(--pos-text)!important}.dark body,.dark main{background:var(--pos-bg)!important;color:var(--pos-text)!important}
.dark .bg-white,.dark .dark\:bg-zinc-900{background-color:var(--pos-card)!important}.dark .bg-zinc-50,.dark .dark\:bg-zinc-800\/70{background-color:var(--pos-card-2)!important}
.dark .text-zinc-950,.dark .text-zinc-900,.dark .text-zinc-800,.dark .dark\:text-white,.dark .dark\:text-zinc-100,.dark h1,.dark h2,.dark h3,.dark dt{color:var(--pos-text)!important}
.dark .text-zinc-700,.dark .text-zinc-600,.dark .text-zinc-500,.dark .dark\:text-zinc-200,.dark .dark\:text-zinc-300,.dark .dark\:text-zinc-400,.dark p,.dark small{color:var(--pos-muted)!important}
.dark input,.dark select,.dark textarea{background:#0f172a!important;color:#f8fafc!important;border-color:#475569!important}.dark input::placeholder{color:#94a3b8!important}.dark table th{color:#cbd5e1!important}.dark table td{color:#e5e7eb!important}.dark a.text-blue-600,.dark .text-blue-600{color:#60a5fa!important}
.pos-page{width:min(1500px,100%);margin:auto;padding:clamp(16px,2.5vw,32px);display:flex;flex-direction:column;gap:22px}.pos-page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.pos-page-header h1{font-size:clamp(25px,3vw,34px);font-weight:800;margin:2px 0}.pos-page-header p{color:var(--pos-muted);margin:0}.pos-eyebrow{color:var(--pos-primary);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.pos-actions{display:flex;gap:10px;flex-wrap:wrap}
.pos-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:11px;font-size:14px;font-weight:750;text-decoration:none;border:1px solid transparent;cursor:pointer}.pos-btn-primary{background:#2563eb;color:#fff}.pos-btn-success{background:#059669;color:#fff}.pos-btn-secondary{background:var(--pos-card);color:var(--pos-text);border-color:var(--pos-border)}.pos-btn-ghost{color:var(--pos-muted);border-color:var(--pos-border)}
.pos-filter-card{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto auto;gap:12px;align-items:end;background:var(--pos-card);border:1px solid var(--pos-border);border-radius:18px;padding:18px;box-shadow:var(--pos-shadow)}.pos-filter-card label{display:block;color:var(--pos-muted);font-size:12px;font-weight:750;margin-bottom:6px}.pos-filter-card input,.pos-filter-card select{width:100%;min-height:42px;border:1px solid var(--pos-border);border-radius:10px;padding:0 11px;background:var(--pos-card);color:var(--pos-text)}
.pos-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.pos-stat{background:var(--pos-card);border:1px solid var(--pos-border);border-radius:16px;padding:18px;box-shadow:var(--pos-shadow)}.pos-stat span{display:block;color:var(--pos-muted);font-size:12px;font-weight:750}.pos-stat strong{display:block;margin-top:8px;font-size:22px}.pos-stat-danger{border-color:var(--pos-danger)}.pos-stat-danger strong{color:var(--pos-danger)}.pos-text-success{color:var(--pos-success)}
.pos-report-list{display:flex;flex-direction:column;gap:12px}.pos-credit-card{background:var(--pos-card);border:1px solid var(--pos-border);border-radius:17px;overflow:hidden;box-shadow:var(--pos-shadow)}.pos-credit-card.is-open{border-color:var(--pos-primary)}.pos-credit-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 19px;text-align:left;color:var(--pos-text);cursor:pointer}.pos-credit-customer{display:flex;align-items:center;gap:12px}.pos-credit-customer strong,.pos-credit-customer small{display:block}.pos-credit-customer small{color:var(--pos-muted);margin-top:3px}.pos-avatar-mini{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#dbeafe;color:#1d4ed8;font-weight:800}.dark .pos-avatar-mini{background:#1e3a8a;color:#bfdbfe}.pos-credit-amount{text-align:right}.pos-credit-amount small,.pos-credit-amount strong{display:block}.pos-credit-amount small{color:var(--pos-muted)}.pos-credit-amount strong{color:var(--pos-danger);font-size:17px}.pos-credit-amount i{display:inline-block;transition:.2s}.is-open .pos-credit-amount i{transform:rotate(180deg)}
.pos-credit-detail{border-top:1px solid var(--pos-border);padding:18px;background:var(--pos-card-2)}.pos-detail-summary{display:flex;gap:22px;flex-wrap:wrap;margin-bottom:14px;color:var(--pos-muted)}.pos-detail-summary b{color:var(--pos-text)}.pos-responsive-table{overflow:auto;border:1px solid var(--pos-border);border-radius:12px}.pos-responsive-table table{width:100%;border-collapse:collapse;background:var(--pos-card)}.pos-responsive-table th,.pos-responsive-table td{padding:11px 13px;border-bottom:1px solid var(--pos-border);text-align:left}.pos-responsive-table th{font-size:11px;color:var(--pos-muted);text-transform:uppercase;background:var(--pos-card-2)}.pos-empty,.pos-alert{padding:28px;text-align:center;border:1px solid var(--pos-border);background:var(--pos-card);border-radius:16px}.pos-alert-danger{border-color:#fecaca;color:#b91c1c;background:#fef2f2}
.profile-photo{width:96px;height:96px;border-radius:24px;object-fit:cover;border:3px solid var(--pos-card);box-shadow:0 0 0 1px var(--pos-border),var(--pos-shadow)}.profile-photo-small{width:34px;height:34px;border-radius:10px;object-fit:cover}
@media(max-width:1000px){.pos-filter-card{grid-template-columns:repeat(2,1fr)}.pos-summary-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.pos-page{padding:14px}.pos-page-header{align-items:stretch;flex-direction:column}.pos-actions .pos-btn{flex:1}.pos-filter-card{grid-template-columns:1fr;padding:14px}.pos-summary-grid{grid-template-columns:1fr 1fr;gap:9px}.pos-stat{padding:14px}.pos-stat strong{font-size:17px}.pos-credit-head{padding:14px}.pos-credit-customer{align-items:flex-start}.pos-avatar-mini{width:36px;height:36px}.pos-credit-amount strong{font-size:14px}.pos-responsive-table table,.pos-responsive-table tbody,.pos-responsive-table tr,.pos-responsive-table td{display:block}.pos-responsive-table thead{display:none}.pos-responsive-table tr{padding:8px;border-bottom:1px solid var(--pos-border)}.pos-responsive-table td{border:0;display:flex;justify-content:space-between;padding:6px}.pos-responsive-table td:before{content:attr(data-label);font-weight:700;color:var(--pos-muted)}}
.pos-alert-success{border-color:#a7f3d0;color:#047857;background:#ecfdf5}.pos-alert-warning{border-color:#fde68a;color:#92400e;background:#fffbeb}.dark .pos-alert-danger{border-color:#7f1d1d;color:#fecaca;background:#450a0a}.dark .pos-alert-success{border-color:#065f46;color:#a7f3d0;background:#022c22}.dark .pos-alert-warning{border-color:#78350f;color:#fde68a;background:#451a03}.pos-alert ul{text-align:left;margin:10px auto 0;max-width:800px}
.pos-connection-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.75fr);gap:18px;align-items:start}.pos-connection-aside{display:flex;flex-direction:column;gap:18px}.pos-settings-card{background:var(--pos-card);border:1px solid var(--pos-border);border-radius:18px;padding:20px;box-shadow:var(--pos-shadow)}.pos-settings-card h2{margin:0;font-size:18px;color:var(--pos-text)}.pos-settings-card p{color:var(--pos-muted)}.pos-settings-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--pos-border)}.pos-settings-card-head p{margin:6px 0 0}.pos-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin-top:20px}.pos-field{min-width:0}.pos-field-wide{grid-column:1/-1}.pos-field label{display:block;margin-bottom:7px;color:var(--pos-text);font-size:13px;font-weight:800}.pos-field input,.pos-field select{width:100%;min-height:44px;border:1px solid var(--pos-border);border-radius:11px;padding:0 12px;background:var(--pos-card);color:var(--pos-text);outline:none}.pos-field input:focus,.pos-field select:focus{border-color:var(--pos-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--pos-primary) 16%,transparent)}.pos-field small{display:block;margin-top:6px;color:var(--pos-muted);line-height:1.45}.pos-switch-row{display:flex;align-items:center;gap:9px;padding:10px 12px;border:1px solid var(--pos-border);border-radius:12px;white-space:nowrap;color:var(--pos-text);font-size:13px;font-weight:800;cursor:pointer}.pos-switch-row input,.pos-option-card input{width:18px;height:18px;accent-color:var(--pos-primary)}.pos-option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pos-option-card{display:flex;align-items:flex-start;gap:11px;padding:14px;border:1px solid var(--pos-border);border-radius:13px;background:var(--pos-card-2);cursor:pointer}.pos-option-card input{margin-top:2px;flex:0 0 auto}.pos-option-card b,.pos-option-card small{display:block}.pos-option-card b{color:var(--pos-text);font-size:13px}.pos-option-card small{margin-top:4px;color:var(--pos-muted);line-height:1.4}.pos-settings-actions{display:flex;gap:10px;flex-wrap:wrap;padding-top:4px}.pos-connection-status{display:flex;align-items:center;gap:11px;margin-top:16px;padding:13px;border:1px solid var(--pos-border);border-radius:13px;background:var(--pos-card-2)}.pos-connection-status>span{width:11px;height:11px;border-radius:999px;background:#94a3b8;box-shadow:0 0 0 4px color-mix(in srgb,#94a3b8 18%,transparent)}.pos-connection-status.is-success>span{background:#10b981;box-shadow:0 0 0 4px color-mix(in srgb,#10b981 18%,transparent)}.pos-connection-status.is-danger>span{background:#ef4444;box-shadow:0 0 0 4px color-mix(in srgb,#ef4444 18%,transparent)}.pos-connection-status strong,.pos-connection-status small{display:block}.pos-connection-status strong{color:var(--pos-text)}.pos-connection-status small{margin-top:3px;color:var(--pos-muted)}.pos-status-message{margin:12px 0 0;word-break:break-word;font-size:13px;line-height:1.55}.pos-requirements{margin:15px 0 0;padding-left:23px;color:var(--pos-muted)}.pos-requirements li{padding:0 0 10px 5px;line-height:1.5}.pos-requirements li::marker{color:var(--pos-primary);font-weight:800}
@media(max-width:1100px){.pos-connection-layout{grid-template-columns:1fr}}@media(max-width:640px){.pos-settings-card{padding:15px}.pos-settings-card-head{flex-direction:column}.pos-switch-row{width:100%;white-space:normal}.pos-settings-form,.pos-option-grid{grid-template-columns:1fr}.pos-field-wide{grid-column:auto}.pos-settings-actions{flex-direction:column}.pos-settings-actions .pos-btn{width:100%}}

/* POSDAS son kullanıcı liste görünümü */
.pos-records-mobile{display:none}.pos-record-card{min-width:0;overflow:hidden;border:1px solid var(--pos-border);border-radius:16px;background:var(--pos-card);box-shadow:var(--pos-shadow)}.pos-record-card-main{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:15px}.pos-record-card-title{min-width:0;flex:1}.pos-record-card-title span,.pos-record-balance span,.pos-record-total span,.pos-record-price span{display:block;color:var(--pos-muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.pos-record-card-title strong{display:block;margin-top:5px;overflow:hidden;color:var(--pos-text);font-size:15px;line-height:1.35;text-overflow:ellipsis}.pos-record-balance,.pos-record-total,.pos-record-price{flex:0 0 auto;text-align:right}.pos-record-balance strong,.pos-record-total strong,.pos-record-price strong{display:block;margin-top:5px;white-space:nowrap;font-size:16px;font-weight:850}.pos-record-balance strong{color:var(--pos-text)}.pos-record-balance.is-debt strong{color:var(--pos-danger)}.pos-record-balance.is-credit strong,.pos-record-price strong{color:var(--pos-success)}.pos-record-total strong{color:var(--pos-primary)}.pos-record-card-meta,.pos-record-generic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;border-top:1px solid var(--pos-border);padding:12px 15px;background:var(--pos-card-2)}.pos-record-card-meta span,.pos-record-generic-grid span{min-width:0}.pos-record-card-meta small,.pos-record-generic-grid small{display:block;color:var(--pos-muted);font-size:10px;font-weight:750;text-transform:uppercase}.pos-record-card-meta b,.pos-record-generic-grid b{display:block;margin-top:3px;overflow:hidden;color:var(--pos-text);font-size:12px;line-height:1.4;text-overflow:ellipsis}.pos-record-detail{display:flex;align-items:center;justify-content:flex-end;border-top:1px solid var(--pos-border);padding:11px 15px;color:var(--pos-primary);font-size:12px;font-weight:800;text-decoration:none}.pos-record-detail:hover{text-decoration:underline}

/* Veresiye filtreleri: masaüstünde sürekli açık, mobilde düğmeyle açılır/kapanır. */
.pos-filter-toggle{display:none;width:100%;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--pos-border);border-radius:14px;background:var(--pos-card);padding:13px 15px;color:var(--pos-text);box-shadow:var(--pos-shadow);text-align:left;cursor:pointer}.pos-filter-toggle strong,.pos-filter-toggle small{display:block}.pos-filter-toggle strong{font-size:14px}.pos-filter-toggle small{margin-top:3px;color:var(--pos-muted);font-size:11px}.pos-filter-toggle i{font-size:18px;font-style:normal;transition:transform .2s ease}.pos-filter-toggle[aria-expanded="true"] i{transform:rotate(180deg)}

@media(max-width:720px){.pos-records-desktop{display:none}.pos-records-mobile{display:flex;flex-direction:column;gap:10px}.pos-record-card-main{padding:13px}.pos-record-card-title strong{white-space:normal}.pos-record-card-meta,.pos-record-generic-grid{padding:11px 13px}.pos-record-detail{padding:10px 13px}.pos-filter-toggle{display:flex}.pos-filter-card-collapsible{display:none!important}.pos-filter-card-collapsible.is-open{display:grid!important}.pos-page{overflow-x:hidden}.pos-page-header h1{line-height:1.15}.pos-actions{width:100%}.pos-actions .pos-btn{min-width:0}.pos-credit-head{gap:10px}.pos-credit-customer{min-width:0}.pos-credit-customer>span:last-child{min-width:0}.pos-credit-customer strong,.pos-credit-customer small{overflow:hidden;text-overflow:ellipsis}.pos-credit-amount{flex:0 0 auto}.pos-detail-summary{gap:10px 16px}}

/* Cari hesap özeti: her müşteri tek satır, ekstre isteğe bağlı açılır. */
.pos-cari-list{display:flex;flex-direction:column;gap:10px}.pos-cari-table-head{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(3,minmax(130px,.72fr)) 92px;gap:14px;padding:0 16px;color:var(--pos-muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.pos-cari-row{overflow:hidden;border:1px solid var(--pos-border);border-radius:16px;background:var(--pos-card);box-shadow:var(--pos-shadow)}.pos-cari-row.is-open{border-color:var(--pos-primary)}.pos-cari-summary-row{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(3,minmax(130px,.72fr)) 92px;gap:14px;align-items:center;padding:14px 16px}.pos-cari-name{display:flex;min-width:0;align-items:center;gap:11px}.pos-cari-name>div{min-width:0}.pos-cari-name strong,.pos-cari-name small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pos-cari-name strong{color:var(--pos-text);font-size:14px}.pos-cari-name small{margin-top:3px;color:var(--pos-muted);font-size:11px}.pos-cari-money small,.pos-cari-money strong{display:block}.pos-cari-money small{display:none;color:var(--pos-muted);font-size:10px;font-weight:800;text-transform:uppercase}.pos-cari-money strong{color:var(--pos-text);font-size:14px;white-space:nowrap}.pos-cari-money.is-credit strong{color:var(--pos-success)}.pos-cari-money.is-debt strong{color:var(--pos-danger)}.pos-cari-ekstre-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border:1px solid var(--pos-border);border-radius:10px;background:var(--pos-card-2);color:var(--pos-primary);font-size:12px;font-weight:800;cursor:pointer}.pos-cari-ekstre-btn span{transition:transform .2s ease}.is-open .pos-cari-ekstre-btn span{transform:rotate(180deg)}.pos-statement-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}.pos-statement-title strong,.pos-statement-title small{display:block}.pos-statement-title small{margin-top:3px;color:var(--pos-muted)}.pos-statement-title>div:last-child{text-align:right}.pos-opening-balance{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px;padding:10px 12px;border:1px dashed var(--pos-border);border-radius:10px;background:var(--pos-card);font-size:12px}.pos-record-balance small{display:block;margin-top:2px;color:var(--pos-muted);font-size:10px;font-weight:750}

@media(max-width:900px){.pos-cari-table-head{display:none}.pos-cari-summary-row{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(95px,.8fr)) 76px;gap:9px}.pos-cari-money strong{font-size:13px}.pos-cari-ekstre-btn{padding:0 8px}}
@media(max-width:640px){.pos-cari-summary-row{grid-template-columns:1fr 1fr;gap:12px;padding:13px}.pos-cari-name{grid-column:1/-1}.pos-cari-money small{display:block}.pos-cari-money{min-width:0}.pos-cari-money:nth-of-type(3){grid-column:1/2}.pos-cari-money strong{margin-top:3px;white-space:normal}.pos-cari-ekstre-btn{grid-column:2/3;align-self:end;width:100%}.pos-statement-title{align-items:flex-start;flex-direction:column}.pos-statement-title>div:last-child{text-align:left}.pos-statement-table td{gap:12px}.pos-statement-table td:before{flex:0 0 86px}.pos-record-balance small{text-align:right}}
.pos-customer-finance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;border-top:1px solid var(--pos-border);background:var(--pos-border)}.pos-customer-finance>div{min-width:0;padding:11px 13px;background:var(--pos-card-2)}.pos-customer-finance span,.pos-customer-finance small{display:block;color:var(--pos-muted);font-size:10px;font-weight:800;text-transform:uppercase}.pos-customer-finance strong{display:block;margin-top:4px;overflow:hidden;color:var(--pos-text);font-size:13px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}.pos-customer-finance .is-debt strong{color:var(--pos-danger)}.pos-customer-finance .is-credit strong{color:var(--pos-success)}.pos-customer-finance small{margin-top:2px;text-transform:none}.pos-customer-finance>div:last-child{text-align:right}
@media(max-width:420px){.pos-customer-finance{grid-template-columns:1fr 1fr}.pos-customer-finance>div:last-child{grid-column:1/-1;text-align:left}.pos-customer-finance strong{font-size:14px}}

/* Satış belgeleri: tarih filtresi, alış maliyeti, kâr ve dönem toplamları */
.pos-sales-filter-card{display:flex;flex-direction:column;gap:14px;padding:16px;border:1px solid var(--pos-border);border-radius:16px;background:var(--pos-card);box-shadow:var(--pos-shadow)}.pos-sales-filter-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.pos-sales-filter-title strong,.pos-sales-filter-title small{display:block}.pos-sales-filter-title strong{color:var(--pos-text);font-size:14px}.pos-sales-filter-title small{margin-top:4px;color:var(--pos-muted);font-size:11px;line-height:1.45}.pos-sales-filter-active{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;background:color-mix(in srgb,var(--pos-primary) 12%,transparent);padding:0 10px;color:var(--pos-primary);font-size:10px;font-weight:850;white-space:nowrap}.pos-sales-filter-grid{display:grid;grid-template-columns:minmax(150px,.72fr) minmax(150px,.72fr) minmax(260px,1.5fr) auto;gap:10px;align-items:end}.pos-sales-filter-grid label{display:block;min-width:0}.pos-sales-filter-grid label>span{display:block;margin-bottom:6px;color:var(--pos-muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}.pos-sales-filter-grid input{width:100%;min-height:40px;border:1px solid var(--pos-border);border-radius:10px;background:var(--pos-card-2);padding:8px 11px;color:var(--pos-text);font:inherit;font-size:12px;outline:none}.pos-sales-filter-grid input:focus{border-color:var(--pos-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--pos-primary) 12%,transparent)}.pos-sales-filter-actions{display:flex;gap:8px}.pos-sales-filter-submit,.pos-sales-filter-clear{display:inline-flex;min-height:40px;align-items:center;justify-content:center;border-radius:10px;padding:0 15px;font-size:12px;font-weight:800;text-decoration:none}.pos-sales-filter-submit{border:1px solid var(--pos-primary);background:var(--pos-primary);color:#fff;cursor:pointer}.pos-sales-filter-clear{border:1px solid var(--pos-border);background:var(--pos-card-2);color:var(--pos-text)}
.pos-sales-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.pos-sales-summary article{min-width:0;border:1px solid var(--pos-border);border-radius:15px;background:var(--pos-card);padding:14px 15px;box-shadow:var(--pos-shadow)}.pos-sales-summary span,.pos-sales-summary strong,.pos-sales-summary small{display:block}.pos-sales-summary span{color:var(--pos-muted);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.035em}.pos-sales-summary strong{margin-top:6px;overflow:hidden;color:var(--pos-text);font-size:18px;font-weight:900;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.pos-sales-summary small{margin-top:5px;color:var(--pos-muted);font-size:10px}.pos-sales-summary .is-sale{color:var(--pos-primary)}.pos-sales-summary .is-cost{color:#d97706}.pos-sales-summary .is-profit{color:var(--pos-success)}.pos-sales-summary .is-loss{color:var(--pos-danger)}.pos-sales-summary .is-period{font-size:15px}.pos-sales-summary-bottom{margin-top:2px}.pos-sales-card-finance{display:grid;grid-template-columns:1fr 1fr;gap:1px;border-top:1px solid var(--pos-border);background:var(--pos-border)}.pos-sales-card-finance>div{min-width:0;padding:11px 13px;background:var(--pos-card-2)}.pos-sales-card-finance span,.pos-sales-card-finance strong{display:block}.pos-sales-card-finance span{color:var(--pos-muted);font-size:10px;font-weight:800;text-transform:uppercase}.pos-sales-card-finance strong{margin-top:4px;font-size:14px;font-weight:850;white-space:nowrap}.pos-sales-card-finance .is-cost{color:#d97706}.pos-sales-card-finance .is-profit{color:var(--pos-success)}.pos-sales-card-finance .is-loss{color:var(--pos-danger)}
@media(max-width:1000px){.pos-sales-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-sales-filter-search{grid-column:1/-1}.pos-sales-filter-actions{grid-column:1/-1}.pos-sales-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.pos-sales-filter-card{padding:13px}.pos-sales-filter-title{align-items:flex-start}.pos-sales-filter-grid{grid-template-columns:1fr 1fr}.pos-sales-filter-search,.pos-sales-filter-actions{grid-column:1/-1}.pos-sales-filter-actions>*{flex:1}.pos-sales-summary{grid-template-columns:1fr 1fr;gap:8px}.pos-sales-summary article{padding:12px}.pos-sales-summary strong{font-size:15px}.pos-sales-summary .is-period{font-size:13px}.pos-sales-record-card .pos-record-card-main{align-items:center}}
@media(max-width:390px){.pos-sales-filter-grid{grid-template-columns:1fr}.pos-sales-filter-search,.pos-sales-filter-actions{grid-column:auto}.pos-sales-summary{grid-template-columns:1fr}.pos-sales-filter-actions{flex-direction:column}}

/* Satış filtreleri: mobilde kompakt açılır/kapanır panel */
.pos-sales-filter-mobile-toggle{display:none}
@media(max-width:640px){
  .pos-sales-filter-mobile-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--pos-border);border-radius:16px;background:var(--pos-card);padding:14px 16px;color:var(--pos-text);box-shadow:var(--pos-shadow);text-align:left;cursor:pointer}
  .pos-sales-filter-mobile-toggle>span:first-child{min-width:0}
  .pos-sales-filter-mobile-toggle strong,.pos-sales-filter-mobile-toggle small{display:block}
  .pos-sales-filter-mobile-toggle strong{font-size:14px;font-weight:850}
  .pos-sales-filter-mobile-toggle small{margin-top:4px;color:var(--pos-muted);font-size:11px;line-height:1.35}
  .pos-sales-filter-toggle-side{display:flex;flex:0 0 auto;align-items:center;gap:8px}
  .pos-sales-filter-toggle-side em{display:inline-flex;min-height:24px;align-items:center;border-radius:999px;background:color-mix(in srgb,var(--pos-primary) 13%,transparent);padding:0 8px;color:var(--pos-primary);font-size:9px;font-style:normal;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
  .pos-sales-filter-toggle-side i{display:inline-block;color:var(--pos-muted);font-size:22px;font-style:normal;line-height:1;transition:transform .2s ease}
  .pos-sales-filter-mobile-toggle[aria-expanded="true"] .pos-sales-filter-toggle-side i{transform:rotate(180deg)}
  .pos-sales-filter-mobile-panel{display:none}
  .pos-sales-filter-mobile-panel.is-open{display:flex}
  .pos-sales-filter-mobile-panel .pos-sales-filter-title{display:none}
}

/* Dashboard: bugünün satış ve tahsilat özeti */
.pos-dashboard-sales{border:1px solid var(--pos-border);border-radius:18px;background:var(--pos-card);padding:18px;box-shadow:var(--pos-shadow)}
.pos-dashboard-sales-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.pos-dashboard-sales-head h2{margin:3px 0 0;color:var(--pos-text);font-size:19px;font-weight:900}.pos-dashboard-sales-head p{margin:5px 0 0;color:var(--pos-muted);font-size:12px}.pos-dashboard-sales-kicker{display:block;color:var(--pos-primary);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.pos-dashboard-sales-link{display:inline-flex;min-height:38px;align-items:center;justify-content:center;border:1px solid var(--pos-border);border-radius:10px;padding:0 13px;background:var(--pos-card-2);color:var(--pos-primary);font-size:11px;font-weight:850;text-decoration:none;white-space:nowrap}.pos-dashboard-sales-link:hover{border-color:var(--pos-primary)}
.pos-dashboard-sales-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:16px}.pos-dashboard-sales-card{min-width:0;border:1px solid var(--pos-border);border-radius:15px;background:var(--pos-card-2);padding:14px}.pos-dashboard-sales-card span,.pos-dashboard-sales-card strong,.pos-dashboard-sales-card small{display:block}.pos-dashboard-sales-card span{color:var(--pos-muted);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.035em}.pos-dashboard-sales-card strong{margin-top:7px;overflow:hidden;color:var(--pos-text);font-size:20px;font-weight:900;line-height:1.15;text-overflow:ellipsis;white-space:nowrap}.pos-dashboard-sales-card small{margin-top:5px;color:var(--pos-muted);font-size:10px}.pos-dashboard-sales-card.is-total{border-color:color-mix(in srgb,var(--pos-primary) 35%,var(--pos-border));background:color-mix(in srgb,var(--pos-primary) 7%,var(--pos-card))}.pos-dashboard-sales-card.is-total span,.pos-dashboard-sales-card.is-total strong{color:var(--pos-primary)}.pos-dashboard-sales-card.is-credit{border-color:color-mix(in srgb,#d97706 35%,var(--pos-border));background:color-mix(in srgb,#d97706 6%,var(--pos-card))}.pos-dashboard-sales-card.is-credit span,.pos-dashboard-sales-card.is-credit strong{color:#d97706}
@media(max-width:1000px){.pos-dashboard-sales-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pos-dashboard-sales-card.is-total{grid-column:span 2}}
@media(max-width:640px){.pos-dashboard-sales{padding:14px}.pos-dashboard-sales-head{align-items:stretch;flex-direction:column}.pos-dashboard-sales-link{width:100%}.pos-dashboard-sales-grid{grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.pos-dashboard-sales-card{padding:12px}.pos-dashboard-sales-card.is-total{grid-column:1/-1}.pos-dashboard-sales-card.is-other{grid-column:1/-1}.pos-dashboard-sales-card strong{font-size:16px}}

/* Mobil kullanım: dokunma alanları, iOS form yakınlaştırması ve güvenli ekran boşlukları */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
button,a,input,select,textarea{touch-action:manipulation}
@media(max-width:720px){
  input:not([type="checkbox"]):not([type="radio"]),select,textarea{font-size:16px!important}
  main{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .pos-record-detail{min-height:44px;align-items:center;justify-content:center}
  .pos-record-card button,.pos-record-card a{min-height:42px}
  .pos-filter-card-collapsible{width:100%;min-width:0}
  .pos-filter-card-collapsible label,.pos-filter-card-collapsible input,.pos-filter-card-collapsible select{min-width:0}
}
@supports (min-height:100dvh){body{min-height:100dvh}}
@media(max-width:720px){html,body{max-width:100%;overflow-x:hidden}}
.pos-responsive-table .text-right{text-align:right}


/* Torevya marka alanları */
.torevya-footer{grid-area:footer;min-width:0;width:100%;margin-top:2rem;border-top:1px solid rgb(228 228 231);background:rgba(250,250,250,.92);color:#52525b}
.dark .torevya-footer{border-top-color:rgb(63 63 70);background:rgba(24,24,27,.9);color:#a1a1aa}
.torevya-footer-inner{max-width:80rem;margin:0 auto;padding:1.15rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:1.25rem}
.torevya-footer-brand{display:flex;align-items:center;gap:.7rem;text-decoration:none;color:inherit;min-width:0}
.torevya-footer-brand img{width:36px;height:36px;border-radius:10px;box-shadow:0 4px 14px rgba(18,104,183,.18);flex:0 0 auto}
.torevya-footer-brand span{display:grid;gap:.08rem}
.torevya-footer-brand strong{font-size:.86rem;color:#18181b}
.dark .torevya-footer-brand strong{color:#f4f4f5}
.torevya-footer-brand small{font-size:.7rem;color:#71717a}
.dark .torevya-footer-brand small{color:#a1a1aa}
.torevya-footer-copy{display:flex;align-items:center;justify-content:flex-end;gap:.75rem;flex-wrap:wrap;font-size:.72rem;text-align:right}
.torevya-footer-copy a{font-weight:800;color:#1268b7;text-decoration:none}
.torevya-footer-copy a:hover{text-decoration:underline}
.torevya-promo-card{display:flex;align-items:center;gap:1rem;border:1px solid #bae6fd;border-radius:1rem;padding:1rem 1.15rem;background:linear-gradient(135deg,#f0f9ff,#eff6ff);text-decoration:none;box-shadow:0 8px 25px rgba(18,104,183,.07);transition:transform .18s ease,box-shadow .18s ease}
.torevya-promo-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(18,104,183,.13)}
.dark .torevya-promo-card{border-color:#164e63;background:linear-gradient(135deg,rgba(8,47,73,.45),rgba(23,37,84,.35))}
.torevya-promo-card img{width:46px;height:46px;border-radius:12px;flex:0 0 auto}
.torevya-promo-card span{display:grid;gap:.15rem;color:#27272a}
.dark .torevya-promo-card span{color:#f4f4f5}
.torevya-promo-card small{font-size:.7rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#0369a1}
.dark .torevya-promo-card small{color:#7dd3fc}
.torevya-promo-card strong{font-size:.95rem}
.torevya-promo-card em{font-size:.75rem;font-style:normal;color:#71717a}
.dark .torevya-promo-card em{color:#a1a1aa}

@media(max-width:767px){.torevya-footer-inner{padding:1rem;align-items:flex-start;flex-direction:column}.torevya-footer-copy{justify-content:flex-start;text-align:left;gap:.35rem .65rem}.torevya-footer-copy>span:first-child{width:100%}.torevya-promo-card{align-items:flex-start}.torevya-promo-card em{line-height:1.35}}


/* ============================================================
   Uygulama kabugu - telefon / tablet / masaustu tam responsive
   Flux grid yapisinda footer mutlaka footer alaninda kalmalidir.
   ============================================================ */
.posdas-app-shell>[data-flux-main],
.posdas-app-shell>[data-flux-header],
.posdas-app-shell>.torevya-footer{min-width:0;width:100%;max-width:100%}
.posdas-app-shell>[data-flux-main]{overflow-x:clip}
.posdas-app-shell>[data-flux-main]>*{min-width:0;max-width:100%}
.torevya-footer-inner,.torevya-footer-brand span,.torevya-footer-copy{min-width:0}

@media(max-width:1023.98px){
  /* Mobil sidebar fixed/off-canvas oldugu icin ana grid tek sutun olmali. */
  .posdas-app-shell:has(>[data-flux-main]){
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr) auto!important;
    grid-template-areas:"header" "main" "footer"!important;
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  .posdas-app-shell>[data-flux-header]{grid-area:header!important}
  .posdas-app-shell>[data-flux-main]{
    grid-area:main!important;
    padding:clamp(14px,3.5vw,22px)!important;
  }
  .posdas-app-shell>.torevya-footer{
    grid-area:footer!important;
    margin-inline:0!important;
  }
}

@media(max-width:720px){
  /* flux:main zaten mobil bosluk verdigi icin POS sayfalarinda ikinci padding yok. */
  .posdas-app-shell>[data-flux-main]{padding:14px!important}
  .pos-page{width:100%;padding:0!important;gap:16px!important;overflow-x:hidden}
  .pos-page-header{gap:12px}
  .pos-page-header h1{font-size:clamp(22px,7vw,28px)!important}
  .pos-page-header p{font-size:13px;line-height:1.5}
  .pos-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .pos-actions .pos-btn{width:100%;min-width:0;padding-inline:10px}

  .torevya-footer{margin-top:1rem}
  .torevya-footer-inner{width:100%;padding:.9rem 1rem;gap:.75rem}
  .torevya-footer-brand{width:100%;align-items:flex-start}
  .torevya-footer-brand img{width:34px;height:34px}
  .torevya-footer-brand span{flex:1}
  .torevya-footer-brand strong{font-size:.82rem}
  .torevya-footer-brand small{font-size:.66rem;line-height:1.35}
  .torevya-footer-copy{width:100%;gap:.3rem .6rem;font-size:.66rem;line-height:1.4}

  .torevya-promo-card{display:grid;grid-template-columns:40px minmax(0,1fr);gap:.75rem;padding:.85rem}
  .torevya-promo-card img{width:40px;height:40px}
  .torevya-promo-card span{min-width:0}
}

@media(max-width:420px){
  .posdas-app-shell>[data-flux-main]{padding:12px!important}
  .pos-actions{grid-template-columns:1fr}
  .pos-summary-grid{gap:8px}
  .pos-stat{padding:12px}
  .pos-stat span{font-size:10px}
  .pos-stat strong{font-size:16px}
  .pos-record-card-main{gap:9px}
  .pos-record-card-meta,.pos-record-generic-grid{grid-template-columns:1fr 1fr}
  .torevya-footer-inner{padding:.8rem .85rem}
}

@media(max-width:340px){
  .pos-summary-grid{grid-template-columns:1fr}
  .pos-record-card-meta,.pos-record-generic-grid{grid-template-columns:1fr}
  .torevya-promo-card{grid-template-columns:34px minmax(0,1fr)}
  .torevya-promo-card img{width:34px;height:34px}
}
