* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; padding: 0; transition: background-color 0.25s ease, color 0.25s ease; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body.theme-dark { background-color: #0E0D0C; color: #F4F1EA; }
body.theme-light { background-color: #F6F5F0; color: #171614; }

.wrap { min-height: 100vh; font-family: 'Inter', sans-serif; padding: 16px 14px 60px; max-width: 100vw; overflow-x: hidden; }
@media (min-width: 768px) {
  .wrap { padding: 28px 24px 60px; }
}

body.theme-dark .wrap {
  background: #0E0D0C;
  background-image: 
    radial-gradient(circle at 12% 0%, rgba(232, 98, 44, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 88% 10%, rgba(63, 167, 150, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(76, 111, 231, 0.04) 0%, transparent 60%);
}
body.theme-light .wrap {
  background: #F6F5F0;
  background-image: 
    radial-gradient(circle at 12% 0%, rgba(232, 98, 44, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 88% 10%, rgba(63, 167, 150, 0.05) 0%, transparent 50%);
}

.mono { font-family: 'JetBrains Mono', monospace; }
.display { font-family: 'Space Grotesk', sans-serif; }

.header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  max-width: 1240px; 
  margin: 0 auto 20px; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.07); 
  padding-bottom: 14px; 
  flex-wrap: wrap;
  gap: 12px;
}
body.theme-light .header { border-bottom-color: #DCD6CA; }

.logo-area { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.custom-logo-img { width: 42px; height: 42px; object-fit: contain; border-radius: 11px; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); }
.spoolmark { width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(#E8622C 0deg 120deg, #3FA796 120deg 230deg, #D9B14A 230deg 310deg, #4C6FE7 310deg 360deg); position: relative; flex-shrink: 0; box-shadow: 0 4px 14px rgba(232,98,44,0.25); }
.spoolmark::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; }
body.theme-dark .spoolmark::after { background: #0E0D0C; }
body.theme-light .spoolmark::after { background: #F6F5F0; }

h1.display { font-size: 19px; font-weight: 750; letter-spacing: -0.2px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(135deg, #FFFFFF 0%, #E2DDD5 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
body.theme-light h1.display { background: linear-gradient(135deg, #171614 0%, #3D3933 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
@media (min-width: 768px) { h1.display { font-size: 24px; } }
.sub { color: #8F8777; font-size: 11.5px; margin-top: 3px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.2px; }

.nav-and-alerts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; justify-content: space-between; }
@media (min-width: 768px) { .nav-and-alerts { width: auto; justify-content: flex-end; } }

.nav-container { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; width: 100%; }
@media (min-width: 768px) { .nav-container { width: auto; } }

.nav-dropdown { position: relative; display: inline-block; }
.nav-dropbtn { background: #161513; border: 1px solid rgba(255,255,255,0.08); color: #C2BBB0; padding: 8px 13px; border-radius: 9px; font-family: 'Inter'; font-size: 12.5px; font-weight: 550; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 5px; box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03); }
body.theme-light .nav-dropbtn { background: #FFFFFF; border-color: #DCD6CA; color: #4A463E; }
.nav-dropbtn:hover, .nav-dropbtn.active { border-color: #E8622C; color: #E8622C; background: #1F1D1A; box-shadow: 0 4px 12px rgba(232,98,44,0.15); }

.dropdown-content { display: none; position: absolute; top: calc(100% + 6px); right: 0; background-color: #171513; min-width: 190px; max-width: min(290px, calc(100vw - 24px)); max-height: 65vh; overflow-y: auto; box-shadow: 0 12px 35px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.05); z-index: 100; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; }
body.theme-light .dropdown-content { background-color: #FFFFFF; border-color: #DCD6CA; }
.nav-dropdown.open .dropdown-content { display: block; }
.dropdown-content button { width: 100%; text-align: left; background: none; border: none; padding: 10px 14px; font-size: 12.5px; color: #F4F1EA; cursor: pointer; transition: background 0.15s; display: flex; align-items: center; justify-content: space-between; }
body.theme-light .dropdown-content button { color: #171614; }
.dropdown-content button:hover { background: #E8622C; color: #121110; font-weight: 600; }
.dropdown-content .dropdown-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 4px 0; }
body.theme-light .dropdown-content .dropdown-divider { background: #DCD6CA; }

.nav-direct-btn { background: #161513; border: 1px solid rgba(255,255,255,0.08); color: #C2BBB0; padding: 8px 13px; border-radius: 9px; font-family: 'Inter'; font-size: 12.5px; font-weight: 550; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03); }
body.theme-light .nav-direct-btn { background: #FFFFFF; border-color: #DCD6CA; color: #4A463E; }
.nav-direct-btn:hover { border-color: #E8622C; color: #E8622C; }
.nav-direct-btn.active { background: linear-gradient(135deg, #FF6F3C 0%, #E8622C 100%) !important; border-color: #E8622C !important; color: #121110 !important; font-weight: 750; box-shadow: 0 4px 16px rgba(232,98,44,0.4), inset 0 1px 0 rgba(255,255,255,0.2); }

/* --- Mobil hamburger menü --- */
.mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; background: #161513; border: 1px solid rgba(255,255,255,0.08); color: #C2BBB0; border-radius: 9px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
body.theme-light .mobile-menu-toggle { background: #FFFFFF; border-color: #DCD6CA; color: #4A463E; }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

@media (max-width: 767px) {
  .nav-container { display: none; }
  .nav-and-alerts { justify-content: flex-start; gap: 10px; }
  .mobile-menu-toggle { margin-left: auto; }
}

.mobile-menu-backdrop { position: fixed; inset: 0; background: rgba(10,9,8,0.8); backdrop-filter: blur(4px); z-index: 200; display: flex; justify-content: flex-end; }
.mobile-menu-sheet { width: min(84vw, 320px); height: 100%; background: #141311; border-left: 1px solid rgba(255,255,255,0.08); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; box-shadow: -10px 0 35px rgba(0,0,0,0.6); animation: slideInMenu 0.22s ease; }
body.theme-light .mobile-menu-sheet { background: #FFFFFF; border-left-color: #DCD6CA; }
@keyframes slideInMenu { from { transform: translateX(100%); } to { transform: translateX(0); } }

.mobile-menu-item { width: 100%; text-align: left; background: none; border: none; color: #F4F1EA; padding: 12px 14px; border-radius: 9px; font-family: 'Inter'; font-size: 14px; font-weight: 500; cursor: pointer; display: flex; align-items: center; }
body.theme-light .mobile-menu-item { color: #171614; }
.mobile-menu-item:active { background: #1F1D1A; }
.mobile-menu-item.active { background: linear-gradient(135deg, #FF6F3C 0%, #E8622C 100%); color: #121110; font-weight: 750; }
.mobile-menu-item.indented { padding-left: 26px; font-size: 13.5px; color: #C2BBB0; }
body.theme-light .mobile-menu-item.indented { color: #4A463E; }
.mobile-menu-item.indented.active { color: #121110; }
.mobile-menu-label { padding: 14px 14px 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #8F8777; font-weight: 700; }
.mobile-menu-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 10px 4px; }
body.theme-light .mobile-menu-divider { background: #DCD6CA; }

@media (min-width: 768px) {
  .mobile-menu-backdrop, .mobile-menu-sheet { display: none !important; }
}

.alert-bell-btn { position: relative; background: #161513; border: 1px solid rgba(232,98,44,0.5); color: #E8622C; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; flex-shrink: 0; box-shadow: 0 2px 10px rgba(232,98,44,0.25); margin-left: auto; }
.alert-bell-btn:hover { background: #E8622C; color: #121110; transform: scale(1.06); box-shadow: 0 4px 16px rgba(232,98,44,0.4); }
.alert-badge { position: absolute; top: -4px; right: -4px; background: #E8622C; color: #121110; font-size: 9.5px; font-weight: 850; width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid #0E0D0C; }

.content { max-width: 1240px; margin: 0 auto; width: 100%; }

.dashboard-layout { display: grid; grid-template-columns: 1fr; gap: 20px; width: 100%; }
@media (min-width: 1024px) {
  .dashboard-layout { grid-template-columns: 340px 1fr; align-items: start; }
}

.stats-sidebar { display: flex; flex-direction: column; gap: 14px; width: 100%; min-width: 0; }
.stat-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
@media (min-width: 1024px) { .stat-mini-grid { grid-template-columns: 1fr; } }

.stat { border-radius: 14px; padding: 14px 16px; box-shadow: 0 6px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; min-width: 0; overflow: hidden; position: relative; }
.stat:hover { border-color: #3FA796; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0,0,0,0.35); }
body.theme-dark .stat { background: #161513; border: 1px solid rgba(255,255,255,0.07); }
body.theme-light .stat { background: #FFFFFF; border: 1px solid #E2DDD5; }

.stat .num { font-family: 'JetBrains Mono'; font-size: 19px; font-weight: 750; letter-spacing: -0.5px; word-break: break-all; }
@media (min-width: 768px) { .stat .num { font-size: 23px; } }
body.theme-dark .stat .num { color: #F4F1EA; }
body.theme-light .stat .num { color: #171614; }

.stat .lbl { font-size: 10px; color: #8F8777; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.warn .num { color: #E8622C !important; }

.finance-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; width: 100%; }
@media (min-width: 640px) { .finance-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .finance-grid { grid-template-columns: repeat(4, 1fr); } }

.fin-card { border-radius: 16px; padding: 18px; border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 6px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04); min-width: 0; }
body.theme-dark .fin-card { background: #161513; border-color: rgba(255,255,255,0.07); }
body.theme-light .fin-card { background: #FFFFFF; border-color: #E2DDD5; }

.fin-card .fin-val { font-family: 'JetBrains Mono'; font-size: 23px; font-weight: 750; margin-top: 8px; word-break: break-all; }
.fin-card .fin-lbl { font-size: 11px; color: #8F8777; font-weight: 650; text-transform: uppercase; letter-spacing: 0.7px; }

.fin-table { width: 100%; border-collapse: collapse; margin-top: 12px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
body.theme-dark .fin-table { background: #161513; border-color: rgba(255,255,255,0.07); }
body.theme-light .fin-table { background: #FFFFFF; border-color: #E2DDD5; }

.fin-table th, .fin-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
body.theme-light .fin-table th, body.theme-light .fin-table td { border-bottom-color: #E2DDD5; }
body.theme-dark .fin-table th { background: #11100E; color: #8F8777; font-weight: 650; }
body.theme-light .fin-table th { background: #EFECE4; color: #4A463E; font-weight: 650; }

.sectionhead { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 12px; flex-wrap: wrap; gap: 10px; width: 100%; }
.sectionhead h2 { font-family: 'Space Grotesk'; font-size: 15px; font-weight: 750; margin: 0; letter-spacing: 0.2px; }
@media (min-width: 768px) { .sectionhead h2 { font-size: 16.5px; } }
body.theme-dark .sectionhead h2 { color: #F4EFEB; }
body.theme-light .sectionhead h2 { color: #2B2822; }

.addbtn { display: flex; align-items: center; gap: 6px; background: linear-gradient(180deg, rgba(63, 167, 150, 0.14) 0%, rgba(63, 167, 150, 0.04) 100%); border: 1px solid #3FA796; color: #4ECCA3; padding: 8px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 650; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; box-shadow: 0 2px 8px rgba(63,167,150,0.15), inset 0 1px 0 rgba(255,255,255,0.05); }
.addbtn:hover { background: #3FA796; color: #0E0D0C; box-shadow: 0 4px 16px rgba(63,167,150,0.35); font-weight: 750; transform: translateY(-1px); }

.grid { display: grid; grid-template-columns: 1fr; gap: 14px; width: 100%; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; } }

.card { border-radius: 16px; padding: 16px; display: flex; gap: 14px; position: relative; border: 1px solid rgba(255,255,255,0.07); box-shadow: 0 6px 24px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.04); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.42); border-color: rgba(63,167,150,0.4); }
body.theme-dark .card { background: #161513; border-color: rgba(255,255,255,0.07); }
body.theme-light .card { background: #FFFFFF; border-color: #E2DDD5; }

.card.low { border-color: #8C381E; background: #1F1511; box-shadow: 0 6px 24px rgba(232,98,44,0.15); }
.card .donutwrap { position: relative; flex-shrink: 0; }
.card .donutlabel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono'; font-size: 11.5px; font-weight: 750; }
body.theme-dark .card .donutlabel { color: #F4F1EA; }
body.theme-light .card .donutlabel { color: #171614; }

.card .meta { flex: 1; min-width: 0; }
.card .material { font-family: 'Space Grotesk'; font-weight: 750; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0.1px; }
.card .colorname { font-weight: 650; font-size: 12.5px; color: #4ECCA3; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .brand { color: #8F8777; font-size: 11.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .weightrow { font-family: 'JetBrains Mono'; font-size: 12px; color: #C2BBB0; margin-top: 6px; word-break: break-all; }
.card .lowtag { color: #FF6F3C; font-size: 11px; font-weight: 750; margin-top: 6px; display: flex; align-items: center; gap: 4px; }

.card-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; opacity: 1; }
@media (min-width: 768px) {
  .card-actions { opacity: 0; transition: opacity 0.2s ease; }
  .card:hover .card-actions { opacity: 1; }
}
.card-action-btn { background: #1F1D1A; border: 1px solid rgba(255,255,255,0.08); color: #8F8777; cursor: pointer; padding: 6px; display: flex; align-items: center; justify-content: center; border-radius: 7px; transition: all 0.15s; }
.card-action-btn:hover { color: #4ECCA3; border-color: #3FA796; background: rgba(63,167,150,0.15); }
.card-action-btn.del:hover { color: #FF6F3C; border-color: #E8622C; background: rgba(232,98,44,0.15); }

.empty { color: #787062; font-size: 13px; padding: 32px 0; text-align: center; border: 1px dashed rgba(255,255,255,0.1); border-radius: 16px; background: #141311; width: 100%; }
body.theme-light .empty { background: #FAFAFA; border-color: #D6D0C4; }

.chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; border-radius: 14px; padding: 12px 10px 8px; border: 1px solid rgba(255,255,255,0.07); overflow-x: auto; box-shadow: 0 6px 20px rgba(0,0,0,0.25); width: 100%; }
body.theme-dark .chart { background: #161513; border-color: rgba(255,255,255,0.07); }
body.theme-light .chart { background: #FFFFFF; border-color: #E2DDD5; }

.chartcol { flex: 1; min-width: 28px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.chartbarwrap { flex: 1; display: flex; align-items: flex-end; width: 100%; max-width: 18px; }
.chartbar { width: 100%; background: linear-gradient(180deg, #FF6F3C, #E8622C); border-radius: 6px 6px 0 0; min-height: 4px; box-shadow: 0 0 12px rgba(232,98,44,0.4); }
.chartval { font-size: 8.5px; margin-top: 4px; height: 14px; font-weight: 750; white-space: nowrap; }
.chartlbl { font-size: 9.5px; color: #8F8777; margin-top: 2px; font-weight: 550; }

.printlist { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.printrow { 
  border-radius: 15px; 
  padding: 14px 16px; 
  display: flex; 
  flex-direction: column;
  gap: 12px; 
  border: 1px solid rgba(255,255,255,0.07); 
  box-shadow: 0 6px 22px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  min-width: 0;
  transition: all 0.2s ease;
}
@media (min-width: 768px) {
  .printrow { flex-direction: row; align-items: center; justify-content: space-between; }
}
body.theme-dark .printrow { background: #161513; border-color: rgba(255,255,255,0.07); }
body.theme-light .printrow { background: #FFFFFF; border-color: #E2DDD5; }

.printrow.failed { border-color: #8C381E; background: #1F1511; }
.printrow .row-main { display: flex; align-items: flex-start; gap: 12px; flex: 1; flex-direction: column; min-width: 0; width: 100%; }
@media (min-width: 768px) { .printrow .row-main { flex-direction: row; align-items: center; gap: 16px; } }

.printrow .model { font-weight: 750; font-size: 14.5px; display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; word-break: break-all; }
@media (min-width: 768px) { .printrow .model { min-width: 170px; width: auto; } }

.printrow .pmeta { font-family: 'JetBrains Mono'; font-size: 11.5px; color: #C2BBB0; word-break: break-all; }
.printrow .pdel { background: #1F1D1A; border: 1px solid rgba(255,255,255,0.08); color: #8F8777; cursor: pointer; padding: 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; transition: all 0.15s; flex-shrink: 0; }
.printrow .pdel:hover { color: #FF6F3C; border-color: #E8622C; background: rgba(232,98,44,0.15); }

.modalbg { position: fixed; inset: 0; background: rgba(10,9,8,0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 12px; }
.modal { border-radius: 20px; padding: 20px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 25px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05); }
@media (min-width: 768px) { .modal { padding: 28px; } }
body.theme-dark .modal { background: #161513; border-color: rgba(255,255,255,0.1); }
body.theme-light .modal { background: #FFFFFF; border-color: #D6D0C4; }

.modal h3 { font-family: 'Space Grotesk'; margin: 0 0 16px; font-size: 17.5px; font-weight: 750; display: flex; justify-content: space-between; align-items: center; letter-spacing: 0.1px; }
.modal .xbtn { background: #1F1D1A; border: 1px solid rgba(255,255,255,0.08); color: #8F8777; cursor: pointer; padding: 6px; border-radius: 8px; transition: all 0.15s; }
.modal .xbtn:hover { color: #F4F1EA; border-color: #8F8777; }

.field { margin-bottom: 12px; width: 100%; min-width: 0; }
.field label { display: block; font-size: 11.5px; color: #8F8777; margin-bottom: 5px; font-weight: 650; letter-spacing: 0.1px; }
.field input, .field select, .field textarea { width: 100%; border-radius: 10px; padding: 11px 13px; font-family: 'Inter'; font-size: 13.5px; border: 1px solid rgba(255,255,255,0.1); outline: none; transition: all 0.2s ease; min-width: 0; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #3FA796; box-shadow: 0 0 0 3px rgba(63,167,150,0.2); background: #181715; }
body.theme-dark .field input, body.theme-dark .field select, body.theme-dark .field textarea { background: #131210; color: #F4F1EA; border-color: rgba(255,255,255,0.1); }
body.theme-light .field input, body.theme-light .field select, body.theme-light .field textarea { background: #F8F7F4; color: #171614; border-color: #D6D0C4; }
.field input:disabled, .field textarea:disabled { opacity: 0.75; cursor: not-allowed; background: rgba(63,167,150,0.06); border-color: #3FA796; }

.row2 { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
@media (min-width: 540px) { .row2 { grid-template-columns: 1fr 1fr; } }

.row3 { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
@media (min-width: 540px) { .row3 { grid-template-columns: 1fr 1fr 1fr; } }

.submitbtn { width: 100%; background: linear-gradient(135deg, #FF6F3C 0%, #E8622C 100%); border: none; color: #121110; font-weight: 750; padding: 12px; border-radius: 10px; font-size: 14px; cursor: pointer; margin-top: 6px; transition: all 0.2s ease; box-shadow: 0 4px 18px rgba(232,98,44,0.35), inset 0 1px 0 rgba(255,255,255,0.25); letter-spacing: 0.2px; }
.submitbtn:hover { background: linear-gradient(135deg, #FF7E4F 0%, #F2764B 100%); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,98,44,0.5), inset 0 1px 0 rgba(255,255,255,0.3); }

.progress-bar-bg { width: 100%; height: 8px; background: #11100E; border-radius: 5px; overflow: hidden; margin-top: 8px; border: 1px solid rgba(255,255,255,0.08); }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #3FA796, #4ECCA3); transition: width 0.4s ease; border-radius: 4px; box-shadow: 0 0 10px rgba(63,167,150,0.4); }
.progress-bar-fill.warn { background: linear-gradient(90deg, #E8622C, #FF6F3C); box-shadow: 0 0 10px rgba(232,98,44,0.4); }

.calc-box { border-radius: 18px; padding: 18px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); width: 100%; min-width: 0; }
@media (min-width: 768px) { .calc-box { padding: 24px; } }
body.theme-dark .calc-box { background: #161513; border-color: rgba(255,255,255,0.08); }
body.theme-light .calc-box { background: #FFFFFF; border-color: #E2DDD5; }

.calc-result-card { border-radius: 16px; padding: 18px; margin-top: 18px; text-align: center; border: 1px solid rgba(63,167,150,0.45); box-shadow: 0 6px 26px rgba(63,167,150,0.15), inset 0 1px 0 rgba(255,255,255,0.08); width: 100%; }
body.theme-dark .calc-result-card { background: linear-gradient(180deg, rgba(63, 167, 150, 0.12) 0%, rgba(18, 17, 15, 0.95) 100%); }
body.theme-light .calc-result-card { background: #F2FAF8; }

.calc-price { font-family: 'JetBrains Mono'; font-size: 28px; font-weight: 800; color: #4ECCA3; margin: 6px 0; letter-spacing: -1px; word-break: break-all; text-shadow: 0 0 20px rgba(78, 204, 163, 0.25); }
@media (min-width: 768px) { .calc-price { font-size: 36px; } }

.calc-breakdown { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 12px; font-size: 12px; color: #C2BBB0; text-align: left; }
@media (min-width: 640px) { .calc-breakdown { display: flex; justify-content: space-around; text-align: center; } }

.purge-selector { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; padding-bottom: 4px; width: 100%; }
.purge-btn { flex: 1; border: 1px solid rgba(255,255,255,0.09); padding: 8px 6px; border-radius: 8px; font-size: 11px; cursor: pointer; text-align: center; white-space: nowrap; transition: all 0.15s; font-weight: 550; }
body.theme-dark .purge-btn { background: #131210; color: #C2BBB0; }
body.theme-light .purge-btn { background: #F8F7F4; color: #4A463E; }
.purge-btn.active { border-color: #3FA796 !important; background: rgba(63,167,150,0.15) !important; color: #4ECCA3 !important; font-weight: 750; box-shadow: 0 0 10px rgba(63,167,150,0.25); }

.part-picker-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; width: 100%; }

.deduct-btn { background: linear-gradient(135deg, #45B8A4 0%, #3FA796 100%); border: none; color: #0E0D0C; font-weight: 750; padding: 12px 18px; border-radius: 10px; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; width: 100%; transition: all 0.2s ease; box-shadow: 0 4px 18px rgba(63,167,150,0.35), inset 0 1px 0 rgba(255,255,255,0.25); }
@media (min-width: 640px) { .deduct-btn { width: auto; } }
.deduct-btn:hover { background: linear-gradient(135deg, #4ECCA3 0%, #45B8A4 100%); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(63,167,150,0.5); }

.mode-tab { display: flex; gap: 6px; margin-bottom: 14px; width: 100%; }
.mode-btn { flex: 1; padding: 8px 6px; border: 1px solid rgba(255,255,255,0.08); color: #C2BBB0; border-radius: 9px; font-size: 12px; font-weight: 650; cursor: pointer; text-align: center; transition: all 0.2s; white-space: nowrap; }
body.theme-dark .mode-btn { background: #131210; }
body.theme-light .mode-btn { background: #F8F7F4; }
.mode-btn.active { background: linear-gradient(135deg, #FF6F3C 0%, #E8622C 100%) !important; border-color: #E8622C !important; color: #121110 !important; font-weight: 750; box-shadow: 0 4px 16px rgba(232,98,44,0.35); }

.spool-multi-row { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; padding: 8px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.08); width: 100%; min-width: 0; }
body.theme-dark .spool-multi-row { background: #131210; }
body.theme-light .spool-multi-row { background: #F8F7F4; }

.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }

.receipt-box { border: 1px solid #3FA796; border-radius: 14px; padding: 18px; font-family: 'Inter', sans-serif; width: 100%; max-width: 80mm; margin: 0 auto; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
@media (min-width: 768px) { .receipt-box { padding: 24px; } }
body.theme-dark .receipt-box { background: #131210; color: #F4F1EA; }
body.theme-light .receipt-box { background: #FAFAFA; color: #171614; }

.receipt-header { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 12px; margin-bottom: 12px; text-align: center; }
.receipt-title { font-family: 'Space Grotesk'; font-size: 17px; font-weight: 750; color: #4ECCA3; letter-spacing: 0.5px; }
.receipt-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.04); gap: 8px; }
.receipt-total { border-top: 2px solid #3FA796; margin-top: 12px; padding-top: 10px; font-size: 16.5px; font-weight: 750; color: #4ECCA3; display: flex; justify-content: space-between; }

.toggle-options { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.07); margin-bottom: 12px; width: 100%; }
body.theme-dark .toggle-options { background: #131210; }
body.theme-light .toggle-options { background: #F8F7F4; }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #C2BBB0; cursor: pointer; font-weight: 550; }

.settings-layout { display: flex; flex-direction: column; gap: 16px; border-radius: 18px; padding: 18px; min-height: 450px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 8px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); width: 100%; min-width: 0; }
@media (min-width: 768px) { .settings-layout { flex-direction: row; padding: 24px; gap: 24px; } }
body.theme-dark .settings-layout { background: #161513; border-color: rgba(255,255,255,0.08); }
body.theme-light .settings-layout { background: #FFFFFF; border-color: #E2DDD5; }

.settings-sidebar { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 12px; display: flex; flex-direction: row; overflow-x: auto; gap: 6px; flex-shrink: 0; }
@media (min-width: 768px) { .settings-sidebar { width: 220px; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.07); padding-bottom: 0; padding-right: 16px; flex-direction: column; overflow-x: visible; } }
body.theme-light .settings-sidebar { border-right-color: #E2DDD5; border-bottom-color: #E2DDD5; }

.settings-nav-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid transparent; color: #C2BBB0; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 550; cursor: pointer; text-align: left; white-space: nowrap; transition: all 0.2s ease; }
@media (min-width: 768px) { .settings-nav-btn { padding: 10px 12px; font-size: 13px; } }
body.theme-light .settings-nav-btn { color: #4A463E; }
.settings-nav-btn:hover { color: #FF6F3C; background: #1F1D1A; }
.settings-nav-btn.active { border-color: #E8622C; color: #E8622C; font-weight: 750; }
body.theme-dark .settings-nav-btn.active { background: rgba(232,98,44,0.12); border-color: rgba(232,98,44,0.4); }
body.theme-light .settings-nav-btn.active { background: #FAF2EC; }

.settings-main { flex: 1; padding-left: 0; min-width: 0; width: 100%; }
@media (min-width: 768px) { .settings-main { padding-left: 6px; } }

.receipt-qr-box { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-top: 10px; border-top: 1px dashed rgba(255,255,255,0.08); padding-top: 8px; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.toast-item { animation: toastIn 0.22s ease; }

/* YAZDIRMA DÜZELTMESİ (Sadece aktif fiş veya etiketi gösterir, gerisini gizler) */
@media print {
  @page {
    margin: 0;
    size: auto;
  }
  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body * {
    visibility: hidden !important;
  }
  #printable-receipt, #printable-receipt *,
  #printable-label, #printable-label *,
  #printable-spool-qr, #printable-spool-qr *,
  #printable-bulk-spool-qr, #printable-bulk-spool-qr *,
  .bulk-print-sheet, .bulk-print-sheet * {
    visibility: visible !important;
  }
  #printable-receipt {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 80mm !important;
    height: auto !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 5px !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }
  #printable-spool-qr {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 48mm !important;
    height: 48mm !important;
    max-width: 48mm !important;
    max-height: 48mm !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1.5px solid #000 !important;
    border-radius: 6px !important;
    margin: 0 !important;
    padding: 2.5mm 2mm !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  #printable-bulk-spool-qr, .bulk-print-sheet {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #000000 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .bulk-sticker-card {
    width: 48mm !important;
    height: 48mm !important;
    max-width: 48mm !important;
    max-height: 48mm !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1.5px solid #000 !important;
    border-radius: 6px !important;
    padding: 2mm 1.5mm !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    page-break-after: always !important;
    break-after: page !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }
  .bulk-print-sheet.grid-mode {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3mm !important;
    padding: 3mm !important;
  }
  .bulk-print-sheet.grid-mode .bulk-sticker-card {
    page-break-after: auto !important;
    break-after: auto !important;
    margin: 0 !important;
  }
  #printable-label {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100mm !important;
    height: 65mm !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 8px !important;
    page-break-after: avoid !important;
    page-break-inside: avoid !important;
  }
}

.bulk-print-sheet {
  display: none;
}

/* ============================================================
   GÖRSEL YENİLEME KATMANI — animasyon, mikro-etkileşim, modernlik
   ============================================================ */
:root { --ease-smooth: cubic-bezier(.22,1,.36,1); }

/* Kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3A362F; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #E8622C; background-clip: padding-box; }
body.theme-light ::-webkit-scrollbar-thumb { background: #D6D0C4; }
body.theme-light ::-webkit-scrollbar-thumb:hover { background: #E8622C; }
* { scrollbar-width: thin; }

/* Erişilebilir odak halkası */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #E8622C; outline-offset: 2px; border-radius: 6px;
}

/* Yapışkan, bulanık üst başlık */
.header {
  position: sticky; top: 0; z-index: 40;
  padding-top: 14px;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px;
  transition: box-shadow 0.3s var(--ease-smooth), border-color 0.3s ease;
}
@media (min-width: 768px) { .header { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; } }
body.theme-dark .header { background: rgba(18,17,16,0.78); }
body.theme-light .header { background: rgba(244,243,238,0.82); }
.header.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
body.theme-light .header.scrolled { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* Görünüm geçiş animasyonu */
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.content > * { animation: viewFadeIn 0.4s var(--ease-smooth); }

/* Kart / satır / istatistik: sıralı giriş animasyonu */
@keyframes cardPop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.grid > .card, .stat-mini-grid > .stat, .finance-grid > .fin-card, .printlist > .printrow {
  animation: cardPop 0.45s var(--ease-smooth) backwards;
}
.grid > *:nth-child(1), .stat-mini-grid > *:nth-child(1), .finance-grid > *:nth-child(1), .printlist > *:nth-child(1) { animation-delay: .02s; }
.grid > *:nth-child(2), .stat-mini-grid > *:nth-child(2), .finance-grid > *:nth-child(2), .printlist > *:nth-child(2) { animation-delay: .06s; }
.grid > *:nth-child(3), .stat-mini-grid > *:nth-child(3), .finance-grid > *:nth-child(3), .printlist > *:nth-child(3) { animation-delay: .10s; }
.grid > *:nth-child(4), .finance-grid > *:nth-child(4), .printlist > *:nth-child(4) { animation-delay: .14s; }
.grid > *:nth-child(5), .printlist > *:nth-child(5) { animation-delay: .18s; }
.grid > *:nth-child(6), .printlist > *:nth-child(6) { animation-delay: .22s; }
.grid > *:nth-child(n+7), .printlist > *:nth-child(n+7) { animation-delay: .26s; }

/* Buton mikro-etkileşimleri */
.addbtn, .nav-direct-btn, .nav-dropbtn, .submitbtn, .deduct-btn, .card-action-btn, .pdel, .alert-bell-btn, .mode-btn, .purge-btn, .settings-nav-btn {
  transition: transform 0.16s var(--ease-smooth), box-shadow 0.2s var(--ease-smooth), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}
.addbtn:hover, .nav-dropbtn:hover, .nav-direct-btn:hover:not(.active) { transform: translateY(-1px); }
.addbtn:active, .submitbtn:active, .deduct-btn:active, .nav-direct-btn:active, .mode-btn:active, .purge-btn:active { transform: scale(0.96) !important; }
.card-action-btn:active, .pdel:active, .alert-bell-btn:active { transform: scale(0.86) !important; }

/* Kart hover derinliği */
.card, .stat, .fin-card, .printrow, .calc-box, .settings-layout {
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), border-color 0.3s ease !important;
}
.card:hover, .fin-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.32); }
body.theme-light .card:hover, body.theme-light .fin-card:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.1); }
.printrow:hover { border-color: #3FA796; transform: translateY(-1px); }

/* Modal açılış animasyonu */
@keyframes modalBgIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modalbg { animation: modalBgIn 0.2s ease; }
.modal { animation: modalPop 0.3s var(--ease-smooth); }

/* Bildirim (toast) aksiyon düğmesi */
.toast-action-btn { background: transparent; border: 1px solid currentColor; color: inherit; font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 7px; cursor: pointer; white-space: nowrap; transition: all 0.15s ease; flex-shrink: 0; }
.toast-action-btn:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }

/* Arama kutuları */
.search-input-wrap { position: relative; flex: 1; min-width: 160px; max-width: 320px; display: flex; align-items: center; }
.search-input-wrap .search-icon { position: absolute; left: 10px; opacity: 0.5; pointer-events: none; display: flex; }
.search-input { width: 100%; border-radius: 9px; padding: 9px 12px 9px 32px; font-family: 'Inter'; font-size: 12.5px; border: 1px solid #322F2A; outline: none; transition: all 0.2s var(--ease-smooth); }
.search-input:focus { border-color: #3FA796; box-shadow: 0 0 0 3px rgba(63,167,150,0.15); }
body.theme-dark .search-input { background: #1B1917; color: #F4F1EA; }
body.theme-light .search-input { background: #FFFFFF; color: #171614; border-color: #D6D0C4; }
body.theme-light .search-input::placeholder { color: #9C9686; }
.search-input::placeholder { color: #71695C; }

/* Boş durum */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: viewFadeIn 0.45s var(--ease-smooth); }
.empty .empty-icon { opacity: 0.4; animation: emptyFloat 3s ease-in-out infinite; color: #8F8777; }
@keyframes emptyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* Rozet nabız animasyonu */
.alert-badge { animation: badgePulse 2.2s ease-in-out infinite; }
@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,98,44,0.55); } 50% { box-shadow: 0 0 0 6px rgba(232,98,44,0); } }

/* İlerleme / donut dolum animasyonu */
.progress-bar-fill { transition: width 0.7s var(--ease-smooth) !important; }
.num, .fin-val, .calc-price { font-variant-numeric: tabular-nums; }

/* Nav aktif geçiş */
.nav-direct-btn.active { animation: activePop 0.3s var(--ease-smooth); }
@keyframes activePop { from { transform: scale(0.94); } to { transform: scale(1); } }

/* QR Tarayıcı Lazer ve Vizör Efektleri */
.scanner-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 280px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scanner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.scanner-reticle {
  position: absolute;
  inset: 14%;
  pointer-events: none;
  border-radius: 16px;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.45);
}
.scanner-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #3FA796;
  border-style: solid;
  border-width: 0;
  filter: drop-shadow(0 0 6px #3FA796);
}
.scanner-corner.tl { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 12px; }
.scanner-corner.tr { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 12px; }
.scanner-corner.bl { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 12px; }
.scanner-corner.br { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 12px; }

.scanner-laser {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #3FA796, #E8622C, transparent);
  box-shadow: 0 0 14px 2px rgba(63, 167, 150, 0.9);
  animation: laserScan 2.2s ease-in-out infinite alternate;
}
@keyframes laserScan {
  0% { top: 8%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 90%; opacity: 0.3; }
}

.scanner-controls {
  position: absolute;
  bottom: 12px;
  display: flex;
  gap: 10px;
  z-index: 10;
}
.scanner-tool-btn {
  background: rgba(27, 25, 23, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.scanner-tool-btn:hover {
  background: rgba(63, 167, 150, 0.85);
  transform: scale(1.08);
}
.scanner-tool-btn.active {
  background: #E8622C;
  border-color: #E8622C;
  box-shadow: 0 0 12px rgba(232, 98, 44, 0.6);
}

/* ============================================================
   MOBİL GÖRÜNÜM & ERGONOMİ GELİŞTİRMELERİ (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  .wrap {
    padding: 10px 10px 70px !important;
  }
  .header {
    margin-left: -10px !important;
    margin-right: -10px !important;
    padding: 10px 12px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .logo-area {
    gap: 10px;
  }
  h1.display {
    font-size: 16px !important;
  }
  .sub {
    font-size: 10.5px !important;
  }
  .sectionhead {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin: 14px 0 10px;
  }
  .sectionhead > div:last-child {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .sectionhead > div:last-child::-webkit-scrollbar {
    display: none;
  }
  .search-input-wrap {
    min-width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 4px;
  }
  .search-input {
    font-size: 14px !important;
    padding: 10px 12px 10px 32px !important;
  }
  .addbtn {
    padding: 8px 12px !important;
    font-size: 11.5px !important;
    border-radius: 8px !important;
  }
  .grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .card {
    padding: 14px !important;
    gap: 12px !important;
    border-radius: 14px !important;
  }
  .card .material {
    font-size: 15px !important;
  }
  .card .weightrow {
    font-size: 11.5px !important;
  }
  .card-actions {
    opacity: 1 !important;
    top: 8px !important;
    right: 8px !important;
  }
  .card-action-btn {
    padding: 7px !important;
    border-radius: 7px !important;
  }
  .modalbg {
    padding: 8px !important;
    align-items: flex-end !important;
  }
  .modal {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 10px 10px !important;
    padding: 18px 16px !important;
    max-height: 88vh !important;
  }
  .field label {
    font-size: 11.5px !important;
  }
  .field input, .field select, .field textarea {
    font-size: 15px !important; /* iOS zoom engelleme */
    padding: 11px 12px !important;
    border-radius: 9px !important;
  }
  .submitbtn {
    padding: 13px !important;
    font-size: 14.5px !important;
    border-radius: 10px !important;
  }
  .printrow {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  .calc-box {
    padding: 16px !important;
    border-radius: 14px !important;
  }
  .calc-price {
    font-size: 28px !important;
  }
  .stat-mini-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .stat {
    padding: 10px 12px !important;
  }
  .stat .num {
    font-size: 17px !important;
  }
}

/* G-Code Sürükle-Bırak Dropzone */
.gcode-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(63, 167, 150, 0.05);
  border: 1.5px dashed #3FA796;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.gcode-dropzone:hover, .gcode-dropzone.dragging {
  background: rgba(63, 167, 150, 0.12);
  border-color: #3FA796;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(63, 167, 150, 0.15);
}
body.theme-light .gcode-dropzone {
  background: rgba(63, 167, 150, 0.08);
  border-color: #3FA796;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}