/* Girgin Granit — düşük çözünürlük ve logo düzeni */
.brand{min-height:68px;padding:3px 6px 20px;gap:10px}
.brand img{width:48px;height:48px;flex:0 0 48px;object-fit:cover;object-position:82% 12%;border:1px solid rgba(255,255,255,.22);border-radius:10px;box-shadow:0 4px 12px rgba(0,0,0,.16)}
.brand strong{font-size:14px;white-space:nowrap}.brand small{font-size:11px}
.login-logo{height:auto;object-fit:contain}
.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.table-wrap table{min-width:max-content}
.panel,.panel-body,.form-grid,.field{min-width:0}
.field input,.field select,.field textarea{width:100%;max-width:100%}
.dashboard-quote-v46{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding:14px 18px;border:1px solid #d6e3eb;border-left:5px solid #1676ba;border-radius:12px;background:linear-gradient(110deg,#f7fbfd,#fff);box-shadow:0 4px 14px rgba(27,39,51,.035)}
.dashboard-quote-v46>div{min-width:0;flex:1}.dashboard-quote-v46 p{margin:0;color:#263d4d;font-size:16px;font-weight:700;font-style:italic;line-height:1.45}.dashboard-quote-v46 small{display:block;margin-top:4px;color:var(--muted)}
.dashboard-quote-mark{align-self:flex-start;color:#1676ba;font-family:Georgia,serif;font-size:38px;line-height:.85}.dashboard-quote-v46 .btn{margin-left:auto;white-space:nowrap}

@media(max-width:1500px){
  .app-shell{grid-template-columns:210px minmax(0,1fr)}
  .sidebar{padding:16px 9px}.nav-btn{padding:9px 9px;gap:8px;font-size:13px}.nav-icon{width:20px}
  .page-content{padding:20px 18px 42px}.topbar{height:78px;padding:0 20px}.topbar h2{font-size:21px}
  .panel-head{padding:14px 15px}.panel-body{padding:15px}.form-grid{gap:12px}
  .cards{gap:12px}.metric{padding:15px}.metric strong{font-size:23px}
  th,td{padding:10px 11px}
  .line-row,.quote-line-row{grid-template-columns:minmax(160px,1fr) minmax(250px,1.7fr) minmax(130px,1fr) minmax(95px,.65fr) minmax(120px,.75fr) auto}
}

@media(max-width:1180px){
  .app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-235px;top:0;width:225px;height:100dvh;transition:left .2s ease;padding:16px 10px;box-shadow:none}
  .sidebar.open{left:0;box-shadow:20px 0 55px rgba(0,0,0,.3)}
  .icon-btn{display:grid;place-items:center;width:42px;height:42px;border-radius:9px;background:#eef3f6}
  .page-content{padding:16px 14px 76px}.topbar{height:72px;padding:0 14px}.top-actions{gap:10px}
  .form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}
  .grid-2{grid-template-columns:1fr}.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .line-row,.purchase-line-row,.quote-line-row,.operation-lines{grid-template-columns:repeat(2,minmax(0,1fr))}
  .line-row>*:first-child,.quote-line-row>*:nth-child(2){grid-column:1/-1}
  .add-product-button{width:100%}
  .form-actions{position:sticky;z-index:20;bottom:0;margin-left:-15px;margin-right:-15px;padding:12px 15px;background:rgba(255,255,255,.96);box-shadow:0 -8px 20px rgba(22,43,58,.08);backdrop-filter:blur(8px)}
  .delivery-address-list,.shipping-calculator>.form-grid{grid-template-columns:1fr}
  .product-picker-results{min-width:0}
}

@media(max-width:760px){
  .cards{grid-template-columns:1fr 1fr}.metric strong{font-size:20px}.metric small{font-size:11px}
  .panel-head{align-items:flex-start;gap:10px;flex-wrap:wrap}.panel-head>div:last-child{display:flex;gap:7px;flex-wrap:wrap}
  .toolbar{display:grid;grid-template-columns:1fr}.toolbar input,.toolbar select{min-width:0;width:100%}
  .line-row,.purchase-line-row,.quote-line-row,.operation-lines,.detail-grid{grid-template-columns:1fr}
  .line-row>*,.quote-line-row>*{grid-column:auto!important}
  .terms-list,.terms-fields,.external-grid,.workshop-filter{grid-template-columns:1fr}
  .top-actions #today{display:none}.top-actions .btn{display:none}
  .customer-delivery-head,.sale-delivery-title,.quote-terms-head{align-items:flex-start;flex-direction:column}
}

@media(max-width:480px){
  .cards{grid-template-columns:1fr}.topbar h2{font-size:18px}.eyebrow{font-size:9px}
  .page-content{padding:12px 9px 74px}.panel{border-radius:10px}.panel-body{padding:12px}.panel-head{padding:12px}
  .form-actions{justify-content:stretch;margin-left:-12px;margin-right:-12px;padding:10px 12px}.form-actions .btn{flex:1;padding-left:8px;padding-right:8px}
  .btn{padding:10px 12px}.delivery-choice .check-line{min-width:0}
}
@media(max-width:600px){.dashboard-quote-v46{align-items:flex-start;padding:13px}.dashboard-quote-v46 p{font-size:14px}.dashboard-quote-v46 .btn{margin-left:0}}

/* Mobil giriş ekranı */
@media(max-width:650px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .login-shell{display:block;width:100%;min-height:100dvh;background:linear-gradient(180deg,#f3f7fa 0,#fff 42%)}
  .login-panel{width:100%;max-width:480px;min-height:100dvh;margin:0 auto;padding:28px 20px 34px;justify-content:flex-start}
  .login-logo{display:block;width:min(230px,68vw);max-width:100%;height:auto;margin:4px auto 24px}
  .login-panel .eyebrow{text-align:center;margin-bottom:10px}
  .login-panel h1{text-align:center;font-size:28px;line-height:1.15;margin-bottom:8px}
  .login-panel>p.muted{text-align:center;margin:0}
  .login-panel .stack{width:100%;max-width:none;margin-top:28px;gap:16px}
  .login-panel .stack label,.login-panel .stack input,.login-panel .stack button{width:100%;min-width:0;max-width:100%}
  .login-panel .stack input{height:52px;padding:12px 14px}
  .login-panel .stack button{min-height:52px;margin-top:4px}
}
