.editbtn{padding:6px 9px;font-size:11px;white-space:nowrap}
.quoteLine{display:grid;grid-template-columns:minmax(180px,2fr) minmax(75px,.7fr) minmax(100px,1fr) auto;gap:8px;margin:9px 0;align-items:center}.quoteLine select,.quoteLine input{width:100%;min-width:0;padding:9px 10px;border:1px solid #dfe7ef;border-radius:8px;background:#fff;color:var(--ink)}#quoteLines h3{font-size:13px;margin:18px 0 8px;color:#304860}.modal:has(#quoteLines){width:min(740px,100%);max-height:90vh;overflow:auto}.modal:has(#quoteLines) #fields{max-height:68vh;overflow:auto;padding-right:4px}.modal:has(#quoteLines) #fields>.field{display:inline-grid;vertical-align:top;width:calc(50% - 8px);margin:8px 4px}.modal:has(#quoteLines) #fields>.field:nth-child(odd){margin-left:0}.modal:has(#quoteLines) #fields>.field:nth-child(even){margin-right:0}
@media(max-width:600px){.quoteLine{grid-template-columns:1fr 1fr}.quoteLine select{grid-column:span 2}}
.quoteLine{grid-template-columns:minmax(150px,2fr) 74px 76px minmax(100px,1fr) 82px 75px 110px 95px auto;gap:6px}.quoteHead{font-size:10px;font-weight:700;color:#718397;border-bottom:1px solid #e7edf4;padding-bottom:8px}.priceAdjust{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#f5f8fc;border:1px solid #e7edf4;border-radius:10px;padding:12px;margin:10px 0}.priceAdjust strong{font-size:12px;margin-right:auto}.priceAdjust select,.priceAdjust input{max-width:110px;padding:8px;border:1px solid #dfe7ef;border-radius:7px}.quoteTotals{max-width:380px;margin:17px 0 0 auto}.quoteTotals>div{display:flex;justify-content:space-between;padding:7px 4px;border-bottom:1px solid #edf1f5;color:#60748a;font-size:12px}.quoteTotals strong{color:#263e57}.quoteTotals .grand{font-size:15px;font-weight:700;border-bottom:0}.modal:has(#quoteLines){width:min(1040px,100%)}.modal:has(#quoteLines) #fields>.field{width:calc(33.333% - 9px)}
@media(max-width:800px){.quoteLine{min-width:1080px}.modal:has(#quoteLines) #fields{overflow:auto}.modal:has(#quoteLines) #fields>.field{width:calc(50% - 8px)}}
.field textarea{font:inherit;padding:10px 12px;border:1px solid #dfe7ef;border-radius:9px;resize:vertical;min-height:82px}.field textarea:focus{outline:3px solid #2a78e833;border-color:#78a7eb}.modal:not(:has(#quoteLines)){max-height:90vh;overflow:auto}
:root{--ink:#172b43;--muted:#76879a;--line:#e7edf4;--blue:#286fe8;--mint:#14a882;--bg:#f4f7fb;--nav:#122238;--shadow:0 10px 28px #1c35510b}
body{font-family:Inter,'Segoe UI',Arial,sans-serif;background:radial-gradient(ellipse at 90% 0%,#e8f1ff 0,transparent 36%),var(--bg);color:var(--ink)}
.side{width:252px;padding:25px 16px 18px;background:linear-gradient(180deg,#122238 0%,#162c45 100%);box-shadow:5px 0 24px #152d4510}
.brand{margin:0 8px 28px;letter-spacing:-.4px;font-size:19px}.brandmark{border-radius:12px;box-shadow:0 7px 16px #2878e547}
.company{background:#ffffff0a;border:1px solid #ffffff14;border-radius:12px;padding:14px 13px;margin-bottom:22px}.company small{letter-spacing:.13em;color:#8fa5bc;margin-bottom:5px}
.navlabel{margin-top:7px;margin-bottom:9px;color:#8298b0}.nav{gap:5px}.nav button{position:relative;min-height:43px;padding:10px 13px;border-radius:9px;color:#adbdcf;font-size:13px;transition:background .16s,color .16s,transform .16s}.nav button:hover{background:#ffffff0d;color:white;transform:translateX(2px)}.nav button.active{background:linear-gradient(95deg,#2874e8,#2768cd);color:white;box-shadow:0 7px 18px #246dd535}.nav button.active .ico{color:white}.ico{font-size:17px}
.sidefoot{border-color:#ffffff16;color:#8ca0b6;padding:14px 9px;font-size:11px}
.top{height:74px;padding:0 clamp(20px,3vw,42px);background:#ffffffed;border-color:#e8edf3;box-shadow:0 3px 14px #10294006;position:relative;z-index:1}.crumb{font-size:12px;color:#91a0af;letter-spacing:.01em}.topright{gap:12px}.avatar{height:37px;width:37px;border:2px solid white;box-shadow:0 0 0 1px #dae6f2;background:linear-gradient(135deg,#e9f2ff,#dceaff);color:#2166c7}
.wrap{max-width:1540px;padding:34px clamp(20px,3vw,42px) 52px}.hello{align-items:center;margin-bottom:24px}.hello h1{font-size:27px;letter-spacing:-.55px;color:#172b43}.hello p{font-size:13px;color:#7c8da0}.actions{gap:10px}.btn{padding:10px 15px;border-color:#dfe7ef;border-radius:9px;box-shadow:0 2px 5px #1d344606;transition:transform .16s,box-shadow .16s,border-color .16s}.btn:hover{border-color:#b7cae0;box-shadow:0 5px 12px #1d344610;transform:translateY(-1px)}.btn.primary{background:linear-gradient(120deg,#347eef,#2366d7);border-color:#2d72e4;box-shadow:0 5px 13px #2875e52e}.btn.primary:hover{background:linear-gradient(120deg,#2673e8,#1d5fcd)}
.filters{margin:4px 0 18px}.chip{border-radius:8px;padding:8px 13px;font-size:12px;background:#ffffffc9}.chip.active{background:#eaf2ff;border-color:#cfe0fb;color:#2369d0}.range{font-size:11px;color:#8494a5}
.grid{grid-template-columns:repeat(4,minmax(150px,1fr));gap:15px;margin-bottom:17px}.card{border-color:#e7edf3;border-radius:14px;box-shadow:0 5px 18px #1a35500a;transition:box-shadow .18s,border-color .18s}.card:hover{border-color:#dce6f0;box-shadow:0 9px 25px #1a355012}.metric{min-height:126px;padding:18px 19px;overflow:hidden;position:relative}.metric:after{content:'';position:absolute;width:90px;height:90px;right:-34px;bottom:-48px;border-radius:50%;background:#eff5ff}.mhead{position:relative;z-index:1;font-size:12px;color:#728399}.mi{width:32px;height:32px;border-radius:10px;background:#edf4ff;color:#3578d8;font-size:15px;position:relative;z-index:1}.value{position:relative;z-index:1;font-size:24px;letter-spacing:-.4px;color:#1d3552}.hint{position:relative;z-index:1;color:#91a0af;font-size:11px}
.row{gap:16px;margin-bottom:16px}.bottom{gap:16px}.panel{padding:21px 22px}.panel h2{font-size:15px;letter-spacing:-.1px;color:#203852}.panelhead{margin-bottom:16px}.sub{color:#91a0af;font-size:11px}.moneyitem{padding:13px 0;border-bottom-color:#edf1f5}.moneylabel{font-size:12px;color:#61768a}.moneylabel small{font-size:10px;color:#98a6b4}.moneyval{color:#24405e;font-size:13px}.link{border-radius:7px;padding:7px 9px;transition:background .15s}.link:hover{background:#edf4ff}
.taskrow,.activity{padding:12px 0;border-color:#edf1f5}.taskrow strong,.activity strong{color:#344b63;font-size:12px}.taskrow small,.activity small{color:#92a0ae}.acticon{width:34px;height:34px;border-radius:10px;background:#eff5fc;color:#3b75c1}.badge,.status{font-weight:600;letter-spacing:.01em}.empty{color:#8e9cad}.tablewrap{border-radius:10px}.data{min-width:760px}.data th{padding:12px 13px;background:#f6f9fc;color:#8494a5;letter-spacing:.09em}.data td{padding:13px;border-color:#edf1f5;color:#50677e}.data td strong{color:#263e57}.data tbody tr:hover{background:#fafcff}.search{border-color:#e0e7ef;border-radius:9px;padding:10px 12px}.search:focus{box-shadow:0 0 0 3px #2875e518;border-color:#78a7eb}.selectsmall{border-color:#e0e7ef;border-radius:7px;padding:7px 8px}.editbtn{color:#276ed2;border-color:#d9e7fa;box-shadow:none}.editbtn:hover{background:#edf5ff;border-color:#c8dcf6}
.settings{padding:25px}.field{gap:7px;margin:15px 0}.field label{color:#5c7288;font-size:12px}.field input,.field select,.field textarea{padding:11px 12px;border:1px solid #dfe7ef;border-radius:9px;font:inherit;color:inherit}.field textarea{resize:vertical;min-height:96px}.modalback{backdrop-filter:blur(3px);background:#0e2138a3}.modal{border:1px solid #e5edf5;border-radius:16px;box-shadow:0 28px 80px #0b213847}.modal h2{font-size:20px;color:#1e3650}.toast{border:1px solid #ffffff18;border-radius:11px;box-shadow:0 12px 30px #10233630}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #2a78e833;outline-offset:2px}
@media(max-width:1050px){.side{width:220px}.bottom{grid-template-columns:1fr 1fr}.bottom .panel:last-child{grid-column:span 2}}
@media(max-width:760px){.side{width:64px;padding:18px 8px}.top{height:65px}.wrap{padding:23px 16px 38px}.hello h1{font-size:24px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:14px;min-height:112px}.panel{padding:16px}.bottom,.row,.reportgrid{grid-template-columns:1fr}.bottom .panel:last-child{grid-column:auto}}
@media(max-width:420px){.hello .actions .btn{flex:1;padding:10px 7px;font-size:12px}.data{min-width:760px}.panelhead{align-items:flex-start}.search{width:46%}}

.quoteTemplatePicker{display:flex;align-items:center;gap:8px;font-size:12px;color:#516476}.quoteTemplatePicker select{padding:8px 10px;border:1px solid #dce3eb;border-radius:7px;background:#fff}


/* Teklif satırlarında başlıklar ve giriş kutuları aynı sütun ekseninde ortalansın. */
#quoteLines .quoteLine{align-items:center}
#quoteLines .quoteHead>span{display:flex;align-items:center;justify-content:center;min-width:0;text-align:center;line-height:1.25}
#quoteLines .quoteHead>span:first-child{justify-content:flex-start;text-align:left}
#quoteLines .quoteLine:not(.quoteHead)>:not(button){justify-self:stretch;width:100%;min-width:0;box-sizing:border-box;text-align:center}
#quoteLines .quoteLine:not(.quoteHead)>select:first-child{text-align:left;text-align-last:left}
#quoteLines .quoteLine:not(.quoteHead)>span{display:flex;align-items:center;justify-content:center;min-height:38px}
#quoteLines .quoteLine:not(.quoteHead)>button{justify-self:center;min-width:54px}

#quoteLines .quoteHead>span:first-child{justify-content:center;text-align:center}
#quoteLines .quoteLine:not(.quoteHead)>select:first-child{text-align:center;text-align-last:center}

/* Teklif satırlarında bütün başlık ve değerleri aynı sütun merkezine hizala. */
#quoteLines .quoteHead>span{justify-content:center!important;text-align:center!important}
#quoteLines .quoteLine:not(.quoteHead)>select:first-child{text-align:center!important;text-align-last:center!important}
#quoteLines .quoteLine:not(.quoteHead)>span{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:40px;box-sizing:border-box;padding:9px 10px;border:1px solid #dfe7ef;border-radius:8px;background:#f8fafc;text-align:center!important}

#authGate{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:20px;background:radial-gradient(ellipse at 90% 0%,#e8f1ff 0,transparent 40%),#f4f7fb;z-index:1000}
#authGate.show{display:flex}.authCard{width:min(430px,100%);background:#fff;border:1px solid #e4ebf3;border-radius:18px;padding:34px;box-shadow:0 24px 70px #10223518}.authMark{height:44px;width:44px;border-radius:14px;background:linear-gradient(140deg,#55a5ff,#276ee2);display:grid;place-items:center;color:#fff;font-size:22px}.authBrand{font:800 20px Manrope,Arial,sans-serif;color:#1e3650;margin:13px 0 26px}.authBrand span{color:#3578d8}.authCard h1{font:700 23px Manrope,Arial,sans-serif;color:#203852;margin:0 0 7px}.authCard>p{font-size:13px;color:#718398;margin:0 0 22px}.authField{display:grid;gap:7px;margin:14px 0}.authField label{font-size:12px;font-weight:600;color:#5c7288}.authField input{width:100%;padding:12px;border:1px solid #dfe7ef;border-radius:9px;font:inherit;color:#203852}.authField input:focus{outline:3px solid #2a78e833;border-color:#78a7eb}.authSubmit{width:100%;margin-top:8px}.authMessage{min-height:0;margin-top:5px;color:#b44739;font-size:12px}.authMessage:empty{display:none}.authMessage.success{color:#16795f}.authNote{border-top:1px solid #edf1f5;padding-top:14px;margin-top:20px;color:#8a99a8;font-size:11px;text-align:center}.currentUserLabel{color:#66798c;font-size:12px;font-weight:600}.logoutBtn{padding:8px 11px;font-size:12px}.userAddForm{display:grid;grid-template-columns:1.1fr 1.2fr .8fr auto;gap:10px;align-items:end;margin:18px 0 10px}.userAddForm .field{margin:0}.userAddButton{height:42px;white-space:nowrap}.userMessage{font-size:12px;color:#b44739}.userList{margin-top:12px}.userRow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid #edf1f5}.userRow>div:first-child{display:grid;gap:4px}.userRow strong{font-size:13px;color:#2b425c}.userRow small{font-size:11px;color:#8494a5}.userActions{display:flex;gap:7px}.userActions .btn{padding:7px 10px;font-size:11px}
@media(max-width:760px){.userAddForm{grid-template-columns:1fr}.userAddButton{width:100%}.authCard{padding:26px}}
/* Kullanıcı profili ve kişisel iletişim alanları */
.authCard{max-height:calc(100vh - 40px);overflow:auto}
.authProfileFields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.userAddForm{grid-template-columns:repeat(4,minmax(130px,1fr))}
.userRow>div:first-child{min-width:0}
.userRow small{overflow-wrap:anywhere}
.userActions{flex-shrink:0}
.profileFormGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0 12px}
.profileFormGrid .field{margin:0}
.profileFormActions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.profileFormActions .sub{margin:0}
.quotePaper .signatures .sellerBlock{font-size:11px;line-height:1.55}
@media(max-width:1000px){.userAddForm,.profileFormGrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.userAddForm,.profileFormGrid{grid-template-columns:1fr}.userAddButton{width:100%}.authCard{padding:26px}.profileFormActions{align-items:stretch;flex-direction:column}.userRow{align-items:flex-start;flex-direction:column}}

.deletebtn{margin-left:6px;color:#a8231b;border-color:#f0c6c3;background:#fff}.deletebtn:hover{color:#8d1c16;border-color:#d9908a;background:#fff5f4}
