/* JetKopi shared styles. Tokens match the demo screens (CLAUDE.md §9). */
:root {
  --yellow: #FF8A1F;
  --yellow-edge: #D9650A;
  --ink: #0A1F4F;
  --ink-2: #15306B;
  --muted: #4B5160;
  --muted-2: #5B6270;
  --line: #E3E5EA;
  --line-2: #EEF0F3;
  --ground: #F3F4F6;
  --card: #FFFFFF;
  --green: #1E9E55;
  --green-ink: #11663A;
  --green-bg: #E5F5EA;
  --orange-ink: #A04A00;
  --red: #B42318;
  --link: #1F3FBF;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 20px;
  --tap: 44px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--link); }

h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.1; }

.wrap { max-width: 480px; margin: 0 auto; padding: 0 16px; }


.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px; border-radius: 14px; border: 1px solid #C9CDD6;
  background: var(--card); color: var(--ink); font: 600 16px var(--font-body);
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--yellow); border: none; box-shadow: 0 3px 0 var(--yellow-edge); font-family: var(--font-display); font-weight: 900; }
.btn-dark { background: var(--ink); color: #fff; border: none; }
.btn-danger { background: var(--red); color: #fff; border: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.code { font-family: var(--font-display); font-weight: 900; letter-spacing: .12em; }

.muted { color: var(--muted-2); }

:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Customer screen (send.html: /s/:token and /uye) ----------
   One screen: top bar, the navy card (JetKopi or the shop), then what to do under it. One orange main button
   (.c-primary), white secondary buttons (.c-secondary), quiet text buttons (.c-link), one message box (.c-note). */

.send-page .phone {
  max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; gap: 14px;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom));
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 4px 0; min-height: 62px; }

/* The account in the top bar: "Üye girişi" for guests, the member's name with a menu */
.acct { position: relative; flex: none; }
.acct-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font: 700 15px var(--font-body); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.acct-btn:active { background: #F7F8FA; }
.acct-me { padding: 0 10px 0 12px; }
.acct-me[aria-expanded="true"] { background: var(--ink); color: #fff; }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 240px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(10, 31, 79, .18);
  display: flex; flex-direction: column;
}
.acct-who { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-who b { font-size: 16px; overflow-wrap: anywhere; }
.acct-who span { font-size: 14px; color: var(--muted); }
.acct-item {
  min-height: var(--tap); padding: 0 12px; border: none; border-radius: 10px; background: transparent;
  color: var(--ink); font: 600 15px var(--font-body); text-align: left; cursor: pointer;
}
.acct-item:active, .acct-item:hover { background: var(--ground); }
.acct-danger { color: var(--red); }

.area { display: flex; flex-direction: column; gap: 14px; }
.view-center { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 16px; }
.loading { flex: 1; min-height: 220px; }
.grow { flex: 1; }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted-2); }

.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--ink);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

/* The shop card */
.sc { background: var(--ink); color: #fff; border-radius: 22px; padding: 16px 18px; box-shadow: 0 8px 24px rgba(10, 31, 79, .18); }
.sc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #AFC0E6; }
.sc-name { font: 900 26px/1.1 var(--font-display); text-transform: uppercase; margin-top: 4px; overflow-wrap: anywhere; }
.sc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 14px; color: #C9CDD6; }
.sc-state { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; color: #7EE2A8; font-weight: 700; }
.sc-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.sc-state.off { color: #FF9C8F; }
.sc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.sc-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; color: #C9CDD6; }
.sc-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #fff; }
.sc-code { font-size: 48px; line-height: 1; color: var(--yellow); letter-spacing: .14em; margin-right: -.14em; }
.sc-steps { margin-top: 14px; }
.sc-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sc-bars span { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .16); transition: background .3s; }
.sc-bars span.on { background: var(--yellow); }
.sc-step-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; font-size: 13px; color: #8E9BBD; }
.sc-step-labels span.on { color: #fff; }
.sc-step-labels span.now { font-weight: 700; }
.sc-status { margin-top: 10px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.sc-status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; flex: none; background: #8E9BBD; }
.sc-status[data-tone="wait"]::before { background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 138, 31, .25); animation: sc-pulse 1.6s ease-in-out infinite; }
.sc-status[data-tone="ok"]::before { background: #7EE2A8; }
@keyframes sc-pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 138, 31, .08); } }

/* "Tamamlandı": a check pops into an orange circle in the code's place, sparks fly out. */
.sc-badge {
  position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 7px rgba(255, 138, 31, .2);
  animation: sc-pop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.sc-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: sc-draw .45s .45s ease-out forwards; }
.sc-spark {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%;
  background: var(--yellow); opacity: 0; animation: sc-spark .9s .35s ease-out forwards;
}
.sc-spark:nth-child(even) { background: #7BE3A6; width: 6px; height: 6px; margin: -3px; }
.s1 { --x: 0; --y: -52px; } .s2 { --x: 46px; --y: -26px; } .s3 { --x: 46px; --y: 26px; }
.s4 { --x: 0; --y: 52px; } .s5 { --x: -46px; --y: 26px; } .s6 { --x: -46px; --y: -26px; }
@keyframes sc-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
@keyframes sc-spark {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.4); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-badge, .sc-spark, .sc-status::before { animation: none !important; }
  .sc-check path { animation: none; stroke-dashoffset: 0; }
}

/* Buttons */
.c-primary {
  width: 100%; min-height: 60px; padding: 10px 18px; border: none; border-radius: 16px;
  background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-edge);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 900 21px var(--font-display); text-align: center; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.c-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-edge); }
.c-primary:disabled { opacity: .5; cursor: not-allowed; }
.c-primary-title { font: 900 21px var(--font-display); }
.c-primary-sub { font: 500 13px var(--font-body); color: #4A2200; }
.c-secondary {
  width: 100%; min-height: 52px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 16px;
  background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px var(--font-body); text-align: center; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.c-secondary:active { transform: translateY(1px); background: #F7F8FA; }
.c-link {
  align-self: center; min-height: var(--tap); padding: 0 16px; border: none; background: transparent;
  color: var(--ink); font: 700 16px var(--font-body); text-decoration: underline; text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer;
}

/* Messages: one box, four tones */
.c-note { margin: 0; border-radius: 14px; padding: 12px 14px; font-size: 15px; overflow-wrap: anywhere; }
.c-note-ok { background: var(--green-bg); color: var(--green-ink); font-weight: 600; }
.c-note-wait { background: #FFF4EA; color: var(--orange-ink); font-weight: 600; }
.c-note-info { background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.c-note-err { background: #FDECEA; color: #8A1C12; }
.c-note-icon { display: flex; align-items: center; gap: 12px; font-weight: 400; }
.c-note-icon > svg { flex: none; }
.c-note-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 14px; }
.c-note-text b { font-size: 16px; }
.c-note-text a { color: inherit; font-weight: 800; }
.c-note-btn { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; font: inherit; font-size: 14px; border: 2px dashed var(--yellow); cursor: pointer; }
.c-note-btn b { font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }

/* White panels, headings */
.c-panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.c-title { font: 900 24px/1.15 var(--font-display); }
.c-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 2px 4px 0; }
.c-h2 { font: 800 18px/1.2 var(--font-display); }
.c-block { display: flex; flex-direction: column; gap: 10px; }
.c-msg { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 24px 18px; }
.c-msg-icon { width: 52px; height: 52px; border-radius: 50%; background: #FDECEA; color: var(--red); display: grid; place-items: center; }
.c-msg-title { font: 900 21px/1.2 var(--font-display); }
.c-msg-text { margin: 0; color: var(--muted); }
.upload-panel { display: flex; flex-direction: column; gap: 14px; }
.upload-panel .info { padding: 0; }

/* The shop: two equal action tiles, membership in one row */
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-tile {
  min-height: 150px; border-radius: 20px; padding: 16px 10px; cursor: pointer; font: inherit; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink);
}
.home-tile > svg { flex: none; }
.home-tile-text { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.home-tile-send { background: var(--yellow); border: none; box-shadow: 0 4px 0 var(--yellow-edge); }
.home-tile-send:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--yellow-edge); }
.home-tile-receive { background: #fff; border: 2px solid var(--ink); }
.home-tile-receive:active { transform: translateY(2px); }
.home-tile-title { font: 900 clamp(17px, 5.4vw, 21px)/1.1 var(--font-display); white-space: nowrap; }
.home-tile-sub { font-size: 13px; font-weight: 500; }
.home-tile-send .home-tile-sub { color: #4A2200; }
.home-tile-receive .home-tile-sub { color: var(--muted); }
/* Once the job is on screen the tiles shrink to one row, so its files show under them. */
.home-actions.compact .home-tile { min-height: 76px; flex-direction: row; gap: 10px; padding: 10px 12px; text-align: left; }
.home-actions.compact .home-tile > svg { width: 26px; height: 26px; }
.home-actions.compact .home-tile-text { align-items: flex-start; gap: 1px; }
.home-actions.compact .home-tile-title { font-size: clamp(16px, 4.6vw, 19px); }
.home-actions.compact .home-tile-sub { font-size: 12px; line-height: 1.25; white-space: normal; }
/* "Dosya al" pressed: the customer is waiting for files from the shop. */
.home-tile-receive[aria-pressed="true"] { background: var(--ink); color: #fff; }
.home-tile-receive[aria-pressed="true"] .home-tile-sub { color: #C9CDD6; }
/* Files from the shop not saved yet: "Tümünü kaydet" is the one orange button. */
.home-actions.quiet .home-tile-send { background: #fff; border: 2px solid var(--ink); box-shadow: none; }
.home-actions.quiet .home-tile-send .home-tile-sub { color: var(--muted); }
.home-member { display: flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 6px 4px 4px; }
.home-member:not(:has(> :not([hidden]))) { display: none; }
.home-member-invite {
  flex: 1; min-width: 0; min-height: var(--tap); display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: none; background: transparent; font: inherit; color: var(--ink); text-align: left; cursor: pointer; border-radius: 12px;
}
.home-member-invite > svg { flex: none; color: var(--yellow); }
.home-member-text { display: flex; flex-direction: column; gap: 1px; font-size: 15px; }
.home-member-text b { font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.home-member-sub { font-size: 12px; color: var(--muted); }
@media (max-width: 360px) {
  .home-actions { grid-template-columns: 1fr; }
  .home-tile { min-height: 110px; }
  .sc-name { font-size: 22px; }
  .sc-code { font-size: 40px; }
}
.trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--green-ink); text-align: center; }

/* "JetKopi'yi telefonunuza ekleyin" (PWA install) */
.install-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: var(--tap); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.install-row img { flex: none; border-radius: 9px; }
.install-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.install-row-text b { font-size: 15px; color: var(--ink); }
.install-row-go { flex: none; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; }
.install-help { padding: 0 4px; }
.pbar-install { border-color: var(--yellow); }
@media (max-width: 900px) { .pbar-install { display: none; } }

.alert { margin: 0; background: #FDECEA; color: #8A1C12; border-radius: 14px; padding: 12px 14px; font-size: 15px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 4px 0; }
.section-head h2 { font-size: 22px; font-weight: 800; }

/* File lists */
.file-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 12px 8px 12px 14px; }
.file-row + .file-row { border-top: 1px solid var(--line-2); }
.file-badge { width: 46px; height: 52px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.badge-pdf { background: #FDECEA; color: #A8231A; }
.badge-img { background: #E6EEFF; color: #1F3FBF; }
.badge-word { background: #E3F0FB; color: #0B4F8A; }
.badge-excel { background: #E5F5EA; color: #11663A; }
.badge-ppt { background: #FFF0E0; color: #8A4300; }
.file-text { flex: 1; min-width: 0; }
.file-name { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 14px; color: var(--muted-2); margin-top: 2px; }
.file-note { color: var(--green-ink); }
.icon-btn { width: var(--tap); height: var(--tap); border: none; background: transparent; border-radius: 12px; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.file-row .btn { flex-shrink: 0; }
.in-ok { flex-shrink: 0; padding: 4px 9px; border-radius: 999px; background: var(--green-bg); color: var(--green-ink); font-size: 13px; font-weight: 800; white-space: nowrap; }
.in-removed { flex-shrink: 0; padding: 4px 9px; border-radius: 999px; background: #F1F2F5; color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.file-removed .file-badge, .file-removed .file-text { opacity: .5; }
.file-removed .file-name { text-decoration: line-through; }
.btn-saved { background: var(--green-bg); color: var(--green-ink); border-color: #9FD9B4; font-weight: 700; }

.meter { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.meter-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); gap: 12px; }
.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-big { height: 14px; width: 100%; }
.bar-fill { height: 100%; width: 0; border-radius: 99px; transition: width .2s ease; }
.bar-ink { background: var(--ink); }
.bar-yellow { background: var(--yellow); }

.link-btn { min-height: var(--tap); border: none; background: transparent; color: var(--muted); font: 600 15px var(--font-body); cursor: pointer; }
.link-danger { color: var(--red); align-self: center; }
.link-strong { color: var(--ink); font-weight: 800; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; padding: 0 4px; }
.info { margin: 0; font-size: 14px; color: var(--muted); padding: 0 6px; }
.legal { text-align: center; font-size: 13px; color: var(--muted-2); padding: 4px 8px; margin: 0; }

/* "Üyeliğiniz onaylandı!" — slides in at the top of any customer screen */
.member-toast {
  position: fixed; top: 12px; left: 50%; z-index: 60; transform: translateX(-50%);
  width: min(440px, calc(100% - 24px)); display: flex; align-items: flex-start; gap: 12px; text-align: left;
  padding: 14px 16px; border: none; border-radius: 18px; background: var(--green, #1E9E55); color: #fff;
  box-shadow: 0 10px 30px rgba(10, 31, 79, .3); font: inherit; cursor: pointer;
  animation: member-toast-in .35s ease-out;
}
.member-toast svg { flex-shrink: 0; color: var(--yellow); fill: var(--yellow); }
.member-toast-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.member-toast-text b { font: 900 19px var(--font-display); }
@keyframes member-toast-in { from { opacity: 0; transform: translate(-50%, -16px); } }
@media (prefers-reduced-motion: reduce) { .member-toast { animation: none; } }

/* Membership forms */
.regular-card { display: flex; flex-direction: column; gap: 14px; }
.regular-lead { margin: 0; color: var(--muted); }
.regular-step { display: flex; flex-direction: column; gap: 14px; }
.regular-step .info { padding: 0; }
.regular-switch { margin: 0; text-align: center; font-size: 15px; color: var(--muted); }
.regular-sent { align-items: center; text-align: center; gap: 8px; padding: 4px 0; }
.regular-sent b { font: 900 22px var(--font-display); }
.regular-sent > span:not(.regular-sent-icon) { color: var(--muted); }
.regular-sent .c-primary { margin-top: 8px; }
.regular-sent-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; margin-bottom: 4px; }
.regular-who { display: flex; flex-direction: column; gap: 2px; background: var(--ground); border-radius: 14px; padding: 12px 14px; }
.regular-who b { font-size: 18px; }
.field-hint { font-weight: 500; font-size: 13px; color: var(--muted); }
.pass { position: relative; display: block; }
.pass input { width: 100%; padding-right: 52px; }
.pass-eye {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px;
  border: none; border-radius: 10px; cursor: pointer; background: transparent no-repeat center / 22px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.pass-eye.on {
  background-color: var(--ground);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1F4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E");
}

/* Notes on files (member ⇄ shop): a short thread under the file, a box to write the next note */
.file-row-notes { flex-wrap: wrap; }
.notes { flex-basis: 100%; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 4px 2px; }
.note-b { display: flex; flex-direction: column; gap: 1px; max-width: 92%; padding: 7px 10px; border-radius: 12px; font-size: 14px; }
.note-mine { align-self: flex-end; }
.note-theirs { align-self: flex-start; }
.note-customer { background: #FFF4EA; }
.note-shop { background: var(--green-bg); }
.note-customer .note-who { color: var(--orange-ink); }
.note-shop .note-who { color: var(--green-ink); }
.note-who { font-size: 12px; font-weight: 700; }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.note-add {
  align-self: flex-start; min-height: 36px; padding: 0 2px; border: none; background: none; cursor: pointer;
  color: var(--link); font: 700 14px var(--font-body);
}
.note-form { display: flex; flex-direction: column; gap: 6px; }
.note-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 700; color: var(--orange-ink); }
.note-area {
  width: 100%; min-height: 56px; resize: vertical; padding: 8px 10px; border: 1.5px solid var(--yellow); border-radius: 10px;
  background: #fff; color: var(--ink); font: 15px/1.4 var(--font-body);
}
.note-send {
  align-self: flex-end; min-height: 40px; padding: 0 18px; border: none; border-radius: 10px; cursor: pointer;
  background: var(--ink); color: #fff; font: 700 14px var(--font-body);
}
.note-send:disabled { opacity: .6; cursor: default; }
.note-msg { margin: 0; color: var(--red); font-size: 13px; }

/* "Bekleyen evraklarım": a member's other jobs at this shop */
.mine { display: flex; flex-direction: column; gap: 8px; }
.mine-title { font: 800 18px/1.2 var(--font-display); padding: 2px 4px 0; }
.mine-row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; font: inherit; color: var(--ink);
  text-align: left; cursor: pointer;
}
.mine-code { background: var(--ink); color: var(--yellow); border-radius: 10px; padding: 6px 10px; font-size: 22px; letter-spacing: .08em; }
.mine-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mine-text span { font-size: 14px; color: var(--muted); }

/* Choosing a shop (/uye): the member's shops listed under the camera button; a tap opens the shop on the same screen */
.uye-head { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
.uye-head p { margin: 0; }
.uye-shops { display: flex; flex-direction: column; gap: 8px; }
.uye-row {
  display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 12px 10px 10px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
a.uye-row:active { background: #F7F8FA; }
.uye-row-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; }
.uye-row-wait .uye-row-icon { background: var(--ground); color: var(--muted); }
.uye-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.uye-row-name { font: 900 17px/1.15 var(--font-display); text-transform: uppercase; overflow-wrap: anywhere; }
.uye-row-meta { font-size: 13px; color: var(--muted); }
.uye-row-line { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.uye-row-line::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; background: #C9CDD6; }
.uye-row-line[data-tone="ok"] { color: var(--green-ink); }
.uye-row-line[data-tone="ok"]::before { background: var(--green); }
.uye-row-line[data-tone="wait"] { color: var(--orange-ink); }
.uye-row-line[data-tone="wait"]::before { background: var(--yellow); }
.uye-row-go { flex: none; color: var(--ink); }
.sc-text { margin: 10px 0 0; font-size: 14px; color: #C9CDD6; }

/* No shop chosen yet: big logo in the navy card, the camera button */
.is-home .top-logo { visibility: hidden; }
.home-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px 22px; background: #021747; } /* the dark logo's background */
.home-hero-logo { width: min(248px, 70%); height: auto; }
.home-hero .sc-text { margin-top: 14px; font-size: 15px; max-width: 320px; }
.home-scan { min-height: 168px; gap: 6px; border-radius: 22px; box-shadow: 0 4px 0 var(--yellow-edge); }
.home-scan .c-primary-title { font-size: 26px; }
.home-scan .c-primary-sub { font-size: 14px; }
.c-small { width: auto; align-self: center; min-height: var(--tap); padding: 0 24px; font-size: 15px; border-width: 1.5px; }

/* "QR kodu okut": the camera fills the screen, the code goes into the orange frame */
.scan {
  position: fixed; inset: 0; z-index: 70; background: #061233; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: calc(28px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));
}
.scan-open { overflow: hidden; }
.scan-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.scan-title { font: 900 24px var(--font-display); }
.scan-sub { font-size: 15px; color: #C9CDD6; min-height: 22px; }
.scan-frame {
  position: relative; width: min(100%, 420px, 62vh); aspect-ratio: 1; margin: auto 0;
  border-radius: 26px; overflow: hidden; background: #000;
}
.scan-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-corner { position: absolute; width: 46px; height: 46px; border: 5px solid var(--yellow); }
.scan-tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.scan-tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.scan-bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.scan-br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.scan-line {
  position: absolute; left: 12%; right: 12%; top: 14%; height: 3px; border-radius: 3px;
  background: var(--yellow); box-shadow: 0 0 14px var(--yellow); animation: scan-sweep 2.2s ease-in-out infinite alternate;
}
@keyframes scan-sweep { to { top: 86%; } }
@media (prefers-reduced-motion: reduce) { .scan-line { animation: none; top: 50%; } }
.scan-msg { width: 100%; max-width: 420px; text-align: center; font-weight: 700; }
.scan-cancel { max-width: 420px; background: transparent; color: #fff; border-color: #fff; }
.scan-cancel:active { background: rgba(255, 255, 255, .1); }

/* ---------- Shared small pieces ---------- */

.small { font-size: 13px; }
.center { text-align: center; }
.btn-sm { min-height: var(--tap); padding: 0 14px; font-size: 15px; }
.btn-xl { min-height: 64px; padding: 0 32px; font-size: 22px; color: var(--ink); }
.notice { margin: 0; background: var(--green-bg); color: var(--green-ink); border-radius: 14px; padding: 12px 14px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Privacy notice ---------- */

.legal-page { max-width: 760px; padding: 28px 16px 56px; display: flex; flex-direction: column; gap: 16px; }
.legal-page h1 { font-size: 30px; font-weight: 900; margin-top: 8px; }
.legal-page h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.legal-page p { margin: 0 0 8px; }
.legal-page ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- QR poster (qr.html), printed on A4 ---------- */

.qr-page { background: var(--ground); }
.qr-bar-shop::before { content: " · "; color: #6F86BF; }
.qr-bar-shop:empty::before { content: none; }

/* Poster on the left, scaled by qr.js to fit the window; actions on the right. */
.qr-layout {
  max-width: 1280px; margin: 0 auto; padding: 24px; display: grid;
  grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start;
}
.qr-stage {
  min-width: 0; display: grid; place-items: center; padding: 24px; border-radius: 24px;
  background: radial-gradient(70% 60% at 50% 30%, #E9ECF2 0%, #D3D8E2 100%);
}
.poster-fit { position: relative; width: calc(210mm * var(--s, .5)); height: calc(297mm * var(--s, .5)); }
.poster-fit .poster { position: absolute; top: 0; left: 0; transform: scale(var(--s, .5)); transform-origin: top left; }

.qr-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.qr-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.qr-title { font-size: 28px; font-weight: 900; }
.qr-lead { margin: -6px 0 0; color: var(--muted); font-size: 15px; }
.qr-print {
  min-height: 60px; border: none; border-radius: 16px; background: var(--yellow); color: var(--ink); cursor: pointer;
  box-shadow: 0 3px 0 var(--yellow-edge); font: 900 22px var(--font-display);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.qr-print:hover { filter: brightness(1.04); }
.qr-print:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-edge); }
.qr-print:disabled { opacity: .5; cursor: progress; }
.qr-field { display: flex; flex-direction: column; gap: 8px; }
.qr-label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ground); }
.seg button {
  min-height: 44px; border: none; border-radius: 11px; background: transparent; cursor: pointer;
  font: 700 15px var(--font-body); color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(10, 31, 79, .16); }
.seg-dot { width: 14px; height: 14px; border-radius: 50%; }
.seg-dot-color { background: conic-gradient(var(--yellow) 0 50%, var(--ink) 0); }
.seg-dot-bw { background: conic-gradient(#000 0 50%, #fff 0); box-shadow: inset 0 0 0 1.5px #000; }
.qr-tips { margin: 0; padding: 14px 16px 14px 34px; border-radius: 14px; background: #FFF4EA; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.qr-tips li::marker { color: var(--yellow-edge); }
.qr-small { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.qr-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--ground); }
.qr-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px ui-monospace, monospace; }
.qr-danger {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  border: 1px dashed #E3B4AF; background: #FFF8F7;
}
.qr-danger b { font-size: 15px; }
.qr-danger p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.qr-danger .btn { flex: none; }

@media screen and (max-width: 1000px) {
  .qr-layout { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .qr-side { position: static; order: -1; }
  .qr-stage { padding: 16px; }
}

.poster {
  width: 210mm; height: 297mm; background: #fff; color: var(--ink);
  box-shadow: 0 18px 50px rgba(10, 31, 79, .28); box-sizing: border-box; padding: 14mm 16mm 12mm;
  display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.poster-logo { height: 20mm; width: auto; }
.poster-logo-bw { display: none; height: 26mm; }
.poster-band {
  width: 100%; margin-top: 8mm; padding: 7mm 6mm; border-radius: 6mm; background: var(--yellow); color: var(--ink);
}
.poster-call { font: 800 15pt var(--font-body); letter-spacing: .08em; }
.poster-name { font: 900 34pt/1.05 var(--font-display); margin-top: 2mm; text-transform: uppercase; overflow-wrap: anywhere; }
.poster-district { font: 500 15pt var(--font-body); margin-top: 1.5mm; }
.poster-qr-frame { margin-top: 9mm; padding: 6mm; border: 2mm solid var(--ink); border-radius: 7mm; background: #fff; }
.poster-qr { width: 112mm; height: 112mm; }
.poster-qr svg { display: block; width: 100%; height: 100%; }
.poster-url { margin-top: 3mm; font: 600 11pt var(--font-body); color: var(--muted); letter-spacing: .02em; }
.poster-steps {
  list-style: none; margin: 9mm 0 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5mm;
}
.poster-steps li { display: flex; flex-direction: column; align-items: center; gap: 3mm; font: 700 14pt var(--font-body); }
.poster-num {
  width: 13mm; height: 13mm; border-radius: 50%; background: var(--ink); color: var(--yellow);
  display: grid; place-items: center; font: 900 18pt var(--font-display);
}
.poster-claim { margin-top: auto; font: 800 20pt var(--font-display); }
.poster-note { margin-top: 2mm; font: 500 12pt var(--font-body); color: var(--muted); }

/* Black & white printers: no colour fills, black outlines instead. */
.bw .poster-logo-color { display: none; }
.bw .poster-logo-bw { display: block; }
.bw .poster { color: #000; }
.bw .poster-band { background: #fff; border: 1.2mm solid #000; color: #000; }
.bw .poster-qr-frame { border-color: #000; }
.bw .poster-num { background: #000; color: #fff; }
.bw .poster-url, .bw .poster-note { color: #333; }

@page { size: A4 portrait; margin: 0; }
@media print {
  html, body, .qr-page { background: #fff; }
  .no-print { display: none !important; }
  .qr-layout, .qr-stage { display: block; padding: 0; margin: 0; max-width: none; background: none; border-radius: 0; }
  .poster-fit { width: auto; height: auto; }
  .poster-fit .poster { position: static; transform: none; }
  .poster { margin: 0; box-shadow: none; page-break-after: avoid; }
}

/* ---------- Form fields (admin) ---------- */

.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field input, .field select {
  min-height: 46px; border: 1.5px solid #D5D9E1; border-radius: 12px; padding: 0 12px;
  font: 500 16px var(--font-body); color: var(--ink); background-color: #FAFBFC;
}
.field select {
  appearance: none; cursor: pointer; padding-right: 36px;
  background: #FAFBFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230A1F4F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); background-color: #fff; box-shadow: 0 0 0 4px rgba(255, 138, 31, .35); }

/* ---------- Panel ---------- */

.brand-logo { display: block; height: 32px; width: auto; }
.brand-logo-dark { display: block; height: 40px; width: auto; }

.pbar { background: #021747; color: #fff; } /* matches the dark logo's background */
.pbar-in { max-width: 1280px; margin: 0 auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.pbar-sep { width: 1px; height: 22px; background: #24427F; }
.pbar-shop { font-size: 17px; font-weight: 600; }
.pbar-btn {
  min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #24427F; background: transparent;
  color: #fff; font: 600 15px var(--font-body); display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}

/* Evrak alımı AÇIK / KAPALI: green on, red off; the label keeps its width so the bar does not jump. */
.accept-switch {
  min-height: 40px; padding: 0 6px 0 14px; border-radius: 999px; border: none; background: var(--green); color: #fff;
  font: 800 14px var(--font-body); letter-spacing: .08em; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
}
#accepting-text { min-width: 58px; text-align: center; }
.accept-switch.off { background: var(--red); }
.accept-switch:disabled { opacity: .7; cursor: progress; }
.accept-track { width: 44px; height: 26px; border-radius: 99px; background: #fff; display: flex; align-items: center; padding: 0 3px; box-sizing: border-box; justify-content: flex-end; }
.accept-switch.off .accept-track { justify-content: flex-start; }
.accept-knob { width: 20px; height: 20px; border-radius: 50%; background: var(--green); }
.accept-switch.off .accept-knob { background: var(--red); }
a.pbar-btn { text-decoration: none; }
.pbar-icon { width: 40px; padding: 0; justify-content: center; }
.pbar-btn:hover { border-color: #4B6BB0; }

/* Ayarlar: a sheet over the panel (gear in the top bar). */
.sheet {
  border: none; border-radius: 22px; padding: 0; width: calc(100% - 32px); max-width: 520px;
  max-height: calc(100vh - 48px); color: var(--ink); overflow-y: auto;
}
.sheet::backdrop { background: rgba(10, 31, 79, .55); }
.sheet-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 12px 24px; background: #fff; border-bottom: 1px solid var(--line);
}
.sheet-head h2 { font-size: 24px; font-weight: 900; }
.sheet-sec { display: flex; flex-direction: column; gap: 10px; padding: 18px 24px; }
.sheet-sec + .sheet-sec { border-top: 1px solid var(--line-2); }
.sheet-sec h3 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.sheet-sec > .btn { align-self: flex-start; }
.sheet-info { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.sheet-info dt { color: var(--muted); }
/* Yardım window: the guide page in a frame */
.help-sheet { max-width: 900px; height: calc(100vh - 48px); display: flex; flex-direction: column; overflow: hidden; }
.help-sheet:not([open]) { display: none; }
.help-frame { flex: 1; width: 100%; border: 0; background: #F3F4F6; }

/* QR afişi window: poster preview on the left, actions on the right (stacked on phones). */
.qr-sheet { max-width: 980px; }
.qr-dlg-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding: 18px 24px 24px; align-items: start; }
.qr-dlg-preview { display: grid; place-items: center; padding: 16px; border-radius: 18px; background: #DCDFE5; }
.qr-canvas { display: block; width: min(100%, 420px); height: auto; aspect-ratio: 210 / 297; background: #fff; box-shadow: 0 10px 30px rgba(10, 31, 79, .25); }
.qr-dlg-side { display: flex; flex-direction: column; gap: 14px; }
.qr-dlg-side .qr-lead { margin: 0; }
.qr-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qr-dl .btn { justify-content: center; gap: 6px; font-size: 14px; padding-inline: 8px; }
.qr-link-box { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) {
  .qr-dlg-body { grid-template-columns: 1fr; padding: 14px; }
  .qr-dlg-side { order: -1; }
  .qr-canvas { width: min(100%, 320px); }
}
.sheet-info dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

.overlay-card.welcome-card { max-width: 540px; gap: 12px; padding: 26px 26px 24px; }
.welcome-icon { background: var(--green-bg); color: var(--green); }
.welcome-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; text-align: left; align-self: stretch; }
.welcome-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--ground); font-size: 14px; color: var(--muted); }
.welcome-list b { display: block; color: var(--ink); font-size: 15px; }
.welcome-list b.inline { display: inline; font-size: inherit; }
.welcome-li-icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--ink); display: grid; place-items: center; }
.welcome-ok { min-width: 200px; letter-spacing: .04em; }

/* Files cannot reach the computer (no folder, no permission, failed save): a strip under the top bar. */
.dl-bar { display: flex; align-items: center; justify-content: center; gap: 8px 14px; padding: 8px 16px; background: #FFF4D6; color: #6B4600; border-bottom: 1px solid #F2D58A; font-size: 15px; font-weight: 700; }
.dl-bar[hidden] { display: none; }
.dl-bar[data-kind="error"] { background: #FDECEA; color: #8A1C12; border-bottom-color: #F3B8B1; }
.dl-bar-text { flex: 0 1 auto; min-width: 0; text-align: center; }
.dl-bar-x { flex: none; }
.dl-bar-btn { min-height: 36px; padding: 0 16px; border: none; border-radius: 10px; background: var(--ink); color: #fff; font: 800 14px var(--font-body, Inter, sans-serif); cursor: pointer; white-space: nowrap; }
.dl-bar-btn:hover { filter: brightness(1.2); }
.dl-bar-x { width: 36px; height: 36px; border: none; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.dl-bar-x:hover { background: rgba(0, 0, 0, .06); }
/* Balance: the button in the top bar, and the packages (sheet and "QR stopped" screen) */
.kontor-pill { font-weight: 700; }
.kontor-pill[hidden] { display: none; }
.kontor-pill b { font: 900 16px var(--font-display); }
.kontor-pill[data-tone="low"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.kontor-pill[data-tone="out"] { background: var(--red); border-color: var(--red); color: #fff; }
.kontor-pill[data-tone="free"] { border-color: #4B6BB0; }
.pkg-now { display: flex; align-items: center; gap: 18px; }
.pkg-now-num { font: 900 54px/1 var(--font-display); }
.pkg-now-num[data-tone="ok"] { color: var(--green-ink); }
.pkg-now-num[data-tone="low"] { color: var(--orange-ink); }
.pkg-now-num[data-tone="out"] { color: var(--red); }
.pkg-now-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.pkg-now-side b { color: var(--ink); font-size: 16px; }
.pkg-now-side .kontor-bar { flex: none; height: 10px; }
.pkg-now-note { color: var(--red); font-weight: 700; }
.state-pkgs { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.state-pkgs[hidden] { display: none; }
.state-pkgs .dlg-h3 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin: 0; }
.state-pkgs p { margin: 0; }
.pkg-cards { display: flex; flex-direction: column; gap: 10px; }
.pkg-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pkg-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pkg-card-main b { font: 900 22px var(--font-display); overflow-wrap: anywhere; }
.pkg-card-main span { font-size: 13px; color: var(--muted-2); font-weight: 500; }
.pkg-card-price { font: 900 22px var(--font-display); white-space: nowrap; }
.pkg-pick { min-height: 44px; padding: 0 20px; }
.pkg-wait { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #FFF4EA; border: 1px solid #F6C9A1; color: #7A3A00; }
.pkg-wait b { font-size: 16px; }
.pkg-pay-box { padding: 12px 14px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
.pkg-call { color: var(--ink); font-weight: 800; }
.pkg-cancel { align-self: flex-start; }
@media (max-width: 640px) {
  .pkg-card { flex-wrap: wrap; }
  .pkg-card-main { flex-basis: 60%; }
  .pkg-pick { flex: 1 0 100%; }
}
.stopped-bar { background: var(--red); color: #fff; text-align: center; font-weight: 700; padding: 8px 16px; font-size: 15px; }

.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(10, 31, 79, .55);
  display: grid; place-items: center; padding: 16px; overflow-y: auto;
}
.overlay-card { max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 32px 28px; }
.overlay-card h1 { font-size: 30px; font-weight: 900; }
.overlay-card p { margin: 0; }
.overlay-icon { width: 72px; height: 72px; border-radius: 50%; background: #FFEBD9; display: grid; place-items: center; }

/* Account not usable yet (pending approval, suspended, licence ended) */
.panel-blocked .tabbar, .panel-blocked #btn-accepting, .panel-blocked #pbar-qr, .panel-blocked #btn-kontor { display: none !important; }
.acct { display: grid; place-items: center; padding: 32px 0; }
.acct-card { max-width: 560px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 36px 32px; }
.acct-card h1 { font-size: 30px; font-weight: 900; }
.acct-text { margin: 0; color: var(--muted); font-size: 17px; }
.acct-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #FFEBD9; color: #C25400; }
.acct-icon[data-state="suspended"], .acct-icon[data-state="expired"] { background: #FDECEA; color: var(--red); }
.acct-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 6px 0 0; padding: 16px 18px; width: 100%; text-align: left; background: var(--ground); border-radius: 14px; font-size: 15px; }
.acct-info dt { color: var(--muted-2); font-weight: 600; }
.acct-info dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.acct-card .small { margin: 0; }
.acct-call {
  min-height: 56px; padding: 0 26px; border-radius: 16px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-edge);
  font: 900 24px var(--font-display); letter-spacing: .02em; text-decoration: none;
}
.pending-bar { background: #FFEBD9; color: #7A3A00; text-align: center; font-weight: 700; padding: 10px 16px; font-size: 15px; border-bottom: 1px solid #F6C9A1; }
.pending-bar a { color: var(--ink); font-weight: 900; white-space: nowrap; }

/* ---------- Admin ---------- */

.btn-google { min-height: 52px; padding: 0 22px; gap: 12px; font-size: 17px; }
.btn-google svg { background: #fff; border-radius: 50%; padding: 3px; width: 26px; height: 26px; }
.admin { display: flex; flex-direction: column; gap: 16px; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.admin-head h1 { font-size: 30px; font-weight: 900; }
.admin-search {
  min-height: 44px; width: min(360px, 100%); padding: 0 14px; border: 1.5px solid #D5D9E1; border-radius: 12px;
  font: 500 15px var(--font-body); color: var(--ink); background: #fff;
}
.admin-search:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 138, 31, .35); }
.admin-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-filters button {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font: 600 14px var(--font-body); color: var(--ink); display: inline-flex; align-items: center; gap: 8px;
}
.admin-filters button b { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px; background: var(--ground); display: grid; place-items: center; font-size: 13px; }
.admin-filters button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-filters button[aria-selected="true"] b { background: var(--yellow); color: var(--ink); }
.admin-filters [data-filter="pending"] b:not(:empty), .admin-filters [data-filter="request"] b:not(:empty), .admin-filters [data-filter="ending"] b:not(:empty) { background: #FFEBD9; color: #A04A00; }
.admin-filters [data-filter="expired"] b:not(:empty) { background: #FDECEA; color: #8A1C12; }
.admin-filters button[aria-selected="true"] b:not(:empty) { background: var(--yellow); color: var(--ink); }

.admin-measure { margin: 0; font-size: 13px; color: var(--muted-2); }
.admin-measure b { color: var(--ink); }
.admin-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.admin-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 16px; padding: 18px 20px;
}
.admin-row-pending { border-left-color: var(--yellow); }
.admin-row-suspended, .admin-row-expired { border-left-color: var(--red); }
.admin-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.admin-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.admin-title b { font: 900 20px var(--font-display); }
.admin-district { color: var(--muted-2); font-size: 14px; }
.admin-badge { border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.admin-badge-active { background: var(--green-bg); color: var(--green-ink); }
.admin-badge-pending { background: #FFEBD9; color: #A04A00; }
.admin-badge-suspended, .admin-badge-expired { background: #FDECEA; color: #8A1C12; }
.admin-badge-muted { background: var(--ground); color: var(--muted); }
.admin-info { display: grid; grid-template-columns: repeat(5, auto); grid-auto-flow: column; grid-template-rows: auto auto; justify-content: start; gap: 2px 28px; margin: 10px 0 0; font-size: 14px; }
.admin-info dt { color: var(--muted-2); font-size: 12px; font-weight: 600; }
.admin-info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.admin-info a { color: var(--link); text-decoration: none; }
.admin-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 360px; }
.btn-ghost-danger { color: var(--red); border-color: #F1C4BF; }
.btn-ghost-danger:hover { background: #FDECEA; }
.admin-empty { text-align: center; color: var(--muted); padding: 40px 0; margin: 0; }

/* Two classes: .confirm further down would otherwise win. The head and the buttons stay, the middle scrolls. */
.confirm.admin-dlg { max-width: 460px; }
.confirm.admin-dlg-wide { max-width: 620px; }
.confirm.admin-dlg-xl { max-width: 720px; }
.admin-dlg form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
.admin-dlg .confirm-head { flex: none; }
.admin-dlg .confirm-head h2 { min-width: 0; }
.admin-dlg .confirm-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 22px 14px; }
.admin-dlg-xl .admin-form { gap: 10px; }
.admin-dlg .confirm-body:focus, .admin-dlg .confirm-body:focus-visible { outline: none; }
.admin-dlg-foot { flex: none; margin: 0; padding: 12px 22px 14px; border-top: 1px solid var(--line-2); background: #fff; }
.dlg-x { flex: none; margin-left: auto; width: 40px; height: 40px; border: none; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.dlg-x:hover { background: rgba(255, 255, 255, .14); }
.admin-form { display: flex; flex-direction: column; gap: 14px; }
.admin-form h2 { margin: 0; }
.admin-form > p { margin: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.admin-grid-full { grid-column: 1 / -1; }
.lic-quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lic-quick .btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }
.lic-quick .btn { white-space: nowrap; padding-inline: 6px; }
.lic-quick .btn[aria-pressed="true"]::before { content: '✓'; margin-right: 4px; color: var(--yellow); font-weight: 900; }
.lic-end { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--green-bg); color: var(--green-ink); font-weight: 700; }
.lic-end.flash { animation: lic-flash .6s ease-out; }
@keyframes lic-flash { from { background: #FFE6CF; color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .lic-end.flash { animation: none; } }
/* A shop's package request: the top of its row */
.req-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; padding: 10px 14px;
  border-radius: 12px; background: #FFF4EA; border: 1px solid #F6C9A1; color: #7A3A00; font-weight: 700; font-size: 15px;
}
.req-icon { flex: none; display: grid; place-items: center; }
.req-strip .grow { flex: 1; }
.req-strip small { font-weight: 500; font-size: 13px; }
/* Balance on a shop's row */
.kontor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 12px; padding: 12px 16px; border-radius: 14px; background: var(--ground); }
.kontor-left { display: flex; flex-direction: column; min-width: 92px; }
.kontor-left span { font-size: 12px; font-weight: 700; color: var(--muted-2); }
.kontor-left b { font: 900 30px/1.05 var(--font-display); color: var(--green-ink); }
.kontor[data-tone="low"] .kontor-left b { color: var(--orange-ink); }
.kontor[data-tone="out"] .kontor-left b { color: var(--red); }
.kontor-bar { flex: 1 1 160px; min-width: 120px; height: 12px; border-radius: 99px; background: #DADDE3; overflow: hidden; }
.kontor-bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.kontor[data-tone="low"] .kontor-bar i, .pkg-now-side[data-tone="low"] .kontor-bar i { background: var(--yellow); }
.kontor[data-tone="out"] .kontor-bar i, .pkg-now-side[data-tone="out"] .kontor-bar i { background: var(--red); }
.kontor-nums { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; font-size: 14px; }
.kontor-nums div { display: flex; flex-direction: column; }
.kontor-nums dt { color: var(--muted-2); font-size: 12px; font-weight: 600; }
.kontor-nums dd { margin: 0; font-weight: 700; }
.kontor-free { font-weight: 700; flex: 1 1 220px; }
.kontor-free span { display: block; font-weight: 500; font-size: 13px; color: var(--muted-2); }
.kontor-note { flex-basis: 100%; margin: 0; font-size: 13px; font-weight: 700; }
.kontor[data-tone="low"] .kontor-note { color: var(--orange-ink); }
.kontor[data-tone="out"] .kontor-note { color: var(--red); }
/* Admin: packages and rules */
.pkg-table, .pkg-rows { display: flex; flex-direction: column; gap: 8px; }
.pkg-head, .pkg-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 92px 92px 82px 54px 40px; gap: 8px; align-items: center; }
.pkg-head { font-size: 12px; font-weight: 700; color: var(--muted-2); padding: 0 2px; }
.pkg-row input[type="text"], .pkg-row input[type="number"], .pkg-rule input {
  width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #C9CDD6; border-radius: 10px; font: 600 15px var(--font-body); color: var(--ink); background: #fff;
}
.pkg-row .per { font-size: 13px; font-weight: 600; color: var(--muted-2); }
.pkg-cell { display: block; min-width: 0; }
.pkg-cell-label { display: none; font-size: 12px; font-weight: 700; color: var(--muted-2); margin-bottom: 4px; }
.pkg-cell-check { display: grid; place-items: center; }
.pkg-row input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--ink); }
.pkg-del { width: 40px; height: 40px; border: 1px solid #F1C4BF; border-radius: 10px; background: #fff; color: var(--red); display: grid; place-items: center; cursor: pointer; }
.pkg-add { align-self: flex-start; }
.pkg-rules { display: flex; flex-direction: column; gap: 6px; }
.pkg-rule { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 600; }
.pkg-rule input { flex: none; width: 96px; min-height: 40px; }
.pkg-pay-wrap summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.pkg-pay { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--muted-2); }
.pkg-pay textarea { width: 100%; min-height: 104px; padding: 10px; border: 1px solid #C9CDD6; border-radius: 10px; font: 500 15px var(--font-body); color: var(--ink); resize: vertical; }
.dlg-rule { height: 1px; background: var(--line-2); border: 0; margin: 2px 0; width: 100%; }
.dlg-h3 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin: 0; }
/* Admin: load a shop's balance */
.load-now { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--ground); border-radius: 12px; padding: 12px 14px; }
.load-now div { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; color: var(--muted-2); }
.load-now b { font: 900 22px var(--font-display); color: var(--ink); }
.load-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.load-tile { min-height: 62px; border: 1px solid #C9CDD6; border-radius: 12px; background: #fff; color: var(--ink); font: 700 15px var(--font-body); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 6px; }
.load-tile small { font-weight: 500; font-size: 13px; color: var(--muted-2); }
.load-tile[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }
.load-tile[aria-pressed="true"] small { color: #CFD8EC; }
.load-hist { margin: 0; padding: 0; list-style: none; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.load-hist li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
#load-history { display: flex; flex-direction: column; gap: 10px; }
#load-history[hidden] { display: none; }
.link-box { width: 100%; border: 1.5px solid #D5D9E1; border-radius: 12px; padding: 10px 12px; font: 500 13px ui-monospace, monospace; color: var(--ink); background: var(--ground); resize: none; }

@media (max-width: 900px) {
  .admin-row { grid-template-columns: 1fr; }
  .admin-actions { justify-content: flex-start; max-width: none; }
  .admin-info { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: auto 1fr; gap: 4px 16px; }
}
@media (max-width: 720px) {
  .pkg-head { display: none; }
  .pkg-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
  .pkg-cell-label { display: block; }
  .pkg-cell-name { grid-column: 1 / -1; }
  .pkg-cell-check { display: flex; align-items: center; gap: 10px; }
  .pkg-cell-check .pkg-cell-label { margin: 0; order: 2; }
}
@media (max-width: 560px) {
  .admin-grid { grid-template-columns: 1fr; }
  .lic-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kontor-left b { font-size: 26px; }
}

.pwrap { max-width: 1280px; margin: 0 auto; padding: 24px 24px 48px; display: flex; flex-direction: column; gap: 18px; }
#v-job { display: flex; flex-direction: column; gap: 20px; }
#v-job[hidden] { display: none; }
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  border-radius: 14px; padding: 12px 18px; font-size: 16px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(10, 31, 79, .3);
}

/* Tab bar: one tab per waiting job, labelled with its code. */
.tabbar { background: #fff; border-bottom: 1px solid var(--line); }
/* The bar: the small name plate (as wide as the file list), the section buttons, then the job tabs, which
   go to a second row when the window leaves them too little room. */
.tabbar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 24px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; flex: 1 1 200px; min-width: 0; padding: 8px 2px 4px; scrollbar-width: thin; }
.tab {
  flex-shrink: 0; position: relative; min-height: 56px; border: 1px solid var(--line); background: var(--ground);
  border-radius: 14px; padding: 6px 14px; display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; cursor: pointer; color: var(--ink); font: inherit; text-align: left;
}
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
/* Mouse clicks leave no focus ring on tabs; keyboard focus gets a soft orange one. */
.tab:focus:not(:focus-visible) { outline: none; }
.tab:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.tab-code { font-size: 26px; line-height: 1; letter-spacing: .08em; }
.tab.active .tab-code { color: var(--yellow); }
.tab-sub { font-size: 12px; color: var(--muted-2); margin-top: 3px; white-space: nowrap; }
.tab.active .tab-sub { color: #C9CDD6; }
.tab-warn:not(.active) { border-color: #F2A7A0; background: #FDECEA; }
.tab-warn:not(.active) .tab-sub { color: var(--red); font-weight: 700; }
.tab-new:not(.active) { background: #FFEBD9; border: 2px solid var(--yellow); animation: tab-pulse 1.2s ease-in-out 3; }
.tab-badge {
  position: absolute; top: -8px; right: -6px; background: var(--yellow); color: var(--ink);
  font-size: 10px; font-weight: 800; letter-spacing: .04em; border-radius: 6px; padding: 2px 5px;
}
@keyframes tab-pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 138, 31, .45); } }
@media (prefers-reduced-motion: reduce) { .tab-new:not(.active) { animation: none; } }
/* Section switch: "Müşteriden dosya al" / "Müşteriye dosya gönder". The current one is navy with an
   orange underline; the other is white with a thin frame. Both carry the document logo + arrow badge. */
.modes { flex-shrink: 0; display: inline-flex; gap: 4px; padding: 4px; margin-top: 4px; border-radius: 16px; background: var(--ground); }
.mode {
  min-height: 52px; display: inline-flex; align-items: center; gap: 11px; padding: 6px 14px 6px 10px;
  border-radius: 12px; border: 1px solid #C9CDD6; background: #fff; color: var(--ink); cursor: pointer;
  font: 700 15px var(--font-body); white-space: nowrap; transition: border-color .15s, background .15s;
}
.mode:hover:not(.active) { border-color: var(--ink); }
.mode.active { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }
.mode:focus:not(:focus-visible) { outline: none; }
.mode:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.mode-doc { position: relative; width: 30px; height: 30px; flex: none; }
.mode-doc img { display: block; width: 30px; height: 30px; }
.mode-arr {
  position: absolute; right: -6px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff; box-shadow: 0 0 0 2px #fff;
}
.mode.active .mode-arr { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.mode-count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 800;
}

/* "Üyeler": third button, opens the member list. */
.mode-people {
  width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center;
  background: #FFF4EA; color: var(--ink);
}
.mode.active .mode-people { background: var(--yellow); }

.members-search {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px;
  border: 1.5px solid #D5D9E1; background: #FAFBFC; color: var(--muted);
}
.members-search:focus-within { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(255, 138, 31, .35); }
.members-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font: 500 17px var(--font-body); color: var(--ink); }
.members-sheet .sheet-sec > .muted.small { margin: 0; }
.members-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.member-row {
  width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
}
.member-row:hover { border-color: var(--ink); background: #FAFAFB; }
.member-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.member-row-text b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row-text span { font-size: 13px; color: var(--muted); }
.member-avatar {
  width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--yellow); font: 900 20px var(--font-display); letter-spacing: .02em;
}
.member-avatar-sm { width: 40px; height: 40px; font-size: 15px; }
.member-chip { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; }
.member-chevron { flex: none; color: var(--muted-2); }

/* Member screen: same layout as a job, the preview pane is shared. */
.member-head { display: flex; align-items: center; gap: 14px; padding: 16px; }
.member-id { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.member-name { font-size: 26px; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.member-sec { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.member-sec h2 { font-size: 16px; font-weight: 800; }
.member-jobs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.member-job {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: #FFF4EA;
  border: 2px solid var(--yellow); color: var(--ink); text-decoration: none;
}
.member-job-code { background: var(--ink); color: var(--yellow); border-radius: 9px; padding: 4px 10px; font-size: 22px; letter-spacing: .08em; }
.member-job-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.member-job-text b { color: var(--ink); font-size: 15px; }
.member-job-open { font-weight: 800; }
.member-files-sec { flex: 1 1 auto; min-height: 0; }
.member-files-head { display: flex; flex-direction: column; gap: 2px; }
.member-folder { font: 600 12px ui-monospace, monospace; color: var(--muted); overflow-wrap: anywhere; }
.member-files { margin: 0 -12px; min-height: 0; }
.member-files:empty { display: none; }
#member-files-note { margin: 0; }
.member-remove { align-self: center; }
.member-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.member-pass { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.temp-pass form { display: flex; flex-direction: column; gap: 12px; }
.temp-pass p { margin: 0; }
.temp-pass-code {
  align-self: center; background: var(--ink); color: var(--yellow); border-radius: 16px;
  padding: 10px 22px; font-size: 48px; letter-spacing: .14em; user-select: all;
}

/* "Koda dosya gönder" view */
#v-send { display: flex; flex-direction: column; }
#v-send[hidden] { display: none; }
.send-layout { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
.send-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.send-title { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.send-code { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.send-code-input {
  width: 100%; height: 76px; border: 3px solid var(--ink); border-radius: 16px; background: #fff; color: var(--ink);
  font-size: 48px; text-align: center; letter-spacing: .3em; padding: 0 0 0 .3em;
}
.send-code-input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; }
.send-match {
  border-radius: 14px; padding: 10px 14px; background: var(--ground); color: var(--muted);
  display: flex; flex-direction: column; gap: 2px; font-size: 14px;
}
.send-note { margin: 0; }
.send-files { min-width: 0; }
.send-files:has(.send-list:empty) .drop { min-height: 320px; }
.send-list { overflow-y: auto; }
.send-list:empty { display: none; }
.send-match-ok { background: var(--green-bg); color: var(--green-ink); }
.send-match-ok b { color: #0E5530; font-size: 16px; }
.send-match-bad { background: #FDECEA; color: #8A1C12; font-weight: 600; }
.send-files { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.drop {
  min-height: 120px; border: 2px dashed #B9BEC8; border-radius: 16px; background: #FAFAFB; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
  text-align: center; padding: 12px; position: relative; overflow: hidden;
}
.drop:hover, .drop.drop-hover { border-color: var(--ink); background: #FFF2E6; }

/* "Dosyaları buraya sürükleyin": orange core with rings rippling out, the area breathing,
   while nothing is picked yet. Calms down once files are listed or the user prefers less motion. */
.drop-wave { position: relative; width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 10px; }
.drop-core {
  position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-edge);
  animation: drop-bob 2.4s ease-in-out infinite;
}
.drop-ring {
  position: absolute; inset: 6px; border-radius: 50%; border: 2px solid var(--yellow); opacity: 0;
  animation: drop-ripple 2.4s cubic-bezier(.2, .6, .35, 1) infinite;
}
.drop-ring:nth-child(2) { animation-delay: .8s; }
.drop-ring:nth-child(3) { animation-delay: 1.6s; }
@keyframes drop-ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes drop-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.send-files:has(.send-list:empty) .drop:not(:hover):not(.drop-hover) { animation: drop-breathe 3.2s ease-in-out infinite; }
@keyframes drop-breathe {
  0%, 100% { background: #FAFAFB; border-color: #B9BEC8; }
  50% { background: #FFF4EA; border-color: var(--yellow); }
}
.drop:hover .drop-core, .drop.drop-hover .drop-core { animation: none; transform: scale(1.08); }
.send-files:not(:has(.send-list:empty)) .drop-ring { display: none; }
.send-files:not(:has(.send-list:empty)) .drop-core { animation: none; width: 48px; height: 48px; }
.send-files:not(:has(.send-list:empty)) .drop-wave { width: 56px; height: 56px; margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) {
  .drop-core, .drop-ring, .send-files .drop { animation: none !important; }
  .drop-ring { display: none; }
}
.send-list { list-style: none; margin: 0; padding: 0; }
.send-row { cursor: default; border-top: 1px solid var(--line-2); }
.send-out-btn {
  min-height: 64px; border: none; border-radius: 18px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 900 22px var(--font-display); cursor: pointer;
}
.send-out-btn:disabled { opacity: .45; cursor: not-allowed; }
.sent-box { display: flex; flex-direction: column; gap: 8px; }
.sent-list { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }

/* "Müşteriye gönder" inside the job screen: the drop tile sits next to "A4'e yerleştir"; the files picked or
   sent show in the card under them, which is hidden while it has nothing to show. */
.job-out { display: flex; flex-direction: column; gap: 8px; padding: 8px; flex-shrink: 0; }
#job-main .job-out:not(:has(> :not([hidden]):not(:empty))) { display: none; }

/* No job open: the screen keeps its layout and waits. The code card goes (the list starts at the top), the
   list says how many jobs wait, the job's buttons rest and the preview pane shows the name plate. */
.job-main.idle .job-head { display: none; }
.jfiles-empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.jfiles-empty.waiting { color: var(--orange-ink); font-weight: 700; }
.job-main.idle .job-dl, .job-main.idle .job-tools, .job-main.idle .done-btn, .job-main.idle .done-note { opacity: .45; pointer-events: none; }
.preview.idle .preview-head, .preview.idle .preview-body { display: none; }
.idle { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.idle-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 28px 20px; border-radius: 16px; border: 2px dashed #D3D8E4; background: #fff;
}
.idle-body b { font: 800 22px var(--font-display); }
.idle-body span { color: var(--muted); max-width: 440px; }
.job-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex-shrink: 0; }
.job-tools > * { min-width: 0; }
.job-tools .tile { flex-direction: column; justify-content: center; text-align: center; gap: 8px; min-height: 150px; padding: 12px; }
.job-tools .tile .combine-btn-text, .job-tools .tile .job-drop-text { align-items: center; }
.job-tools .tile .job-drop-icon { width: 44px; height: 44px; border-radius: 13px; }
.job-tools .combine-btn svg { width: 44px; height: 44px; padding: 7px; border-radius: 13px; background: #FFE0C2; }
.job-tools .tile .job-drop-text b { font: 800 17px var(--font-display); }
.job-drop {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer;
  border: 2px dashed #C9CDD6; background: #FAFAFB; transition: border-color .15s, background .15s;
}
.job-drop:hover, .job-drop.drop-hover { border-color: var(--yellow); background: #FFF4EA; }
.job-drop-icon {
  width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); box-shadow: 0 2px 0 var(--yellow-edge);
}
.job-drop-text { display: flex; flex-direction: column; min-width: 0; }
.job-drop-text b { font-size: 15px; }
.job-drop-text span { font-size: 13px; color: var(--muted); }
.job-out-list { max-height: 150px; }
.job-out-btn {
  min-height: 48px; border: none; border-radius: 12px; background: var(--ink); color: #fff; cursor: pointer;
  font: 800 16px var(--font-body);
}
.job-out-btn:disabled { opacity: .6; cursor: progress; }
.job-out-sent { padding: 6px 10px 4px; font-size: 13px; }
.job-out-sent b { color: var(--green-ink); }
.job-out-sent ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); max-height: 72px; overflow-y: auto; }
.job-out-sent li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.jfile .jfile-notes { grid-column: 1 / -1; padding: 2px 0 6px; cursor: default; }
.jfile .note-b { font-size: 13px; }
.jfile .note-customer { background: #fff; box-shadow: inset 0 0 0 1.5px #FFC48F; }
.job-out-sent ul.has-notes { list-style: none; padding-left: 0; max-height: 240px; }
.job-out-sent ul.has-notes li { white-space: normal; padding: 4px 0; color: var(--ink); }
.job-out-sent ul.has-notes li + li { border-top: 1px solid var(--line-2); }


/* Name plate (small, at the start of the bar, see .nameplate-sm): deep navy, a gold frame inside the edge
   with a flourish in each corner, only the shop's name. One corner drawing, mirrored for the other three. */
.nameplate {
  position: relative; border-radius: 22px; padding: 40px 60px; text-align: center; color: #fff;
  background: radial-gradient(90% 140% at 50% 0%, #12306E 0%, #0A1F4F 55%, #061537 100%);
  border: 1.5px solid #B8963E;
  box-shadow: 0 10px 30px rgba(10, 31, 79, .18);
}
.nameplate::before {
  content: ""; position: absolute; inset: 7px; border-radius: 16px; pointer-events: none;
  border: 2.5px solid #D6B25E;
}
.np-corner {
  position: absolute; width: 112px; height: 56px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 48' fill='none' stroke='%23D6B25E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12C24 12 31 5 44 6.5C53 7.5 55 16 48 17.2C43.5 18 41.8 13.6 45.2 12.6'/%3E%3Cpath d='M44 6.5C56 4.6 66 10 80 8.6'/%3E%3Cpath d='M12 12C12 19 8.6 23 9.4 29.5C10.2 35.5 16.6 36.5 17.6 32C18.2 29.2 14.8 28.4 14.3 30.8'/%3E%3Cpath d='M26 10.6C28.5 14.2 33 15.4 36.5 13.6' stroke-width='1.2'/%3E%3Cpath d='M12 6.2L17.8 12L12 17.8L6.2 12Z' fill='%23D6B25E' stroke='none'/%3E%3Ccircle cx='85' cy='8.2' r='1.9' fill='%23D6B25E' stroke='none'/%3E%3Ccircle cx='9.6' cy='39' r='1.6' fill='%23D6B25E' stroke='none'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
.np-tl { top: 14px; left: 14px; }
.np-tr { top: 14px; right: 14px; transform: scaleX(-1); }
.np-bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.np-br { bottom: 14px; right: 14px; transform: scale(-1); }
@media (max-width: 600px) {
  .nameplate { padding: 36px 44px; }
  .np-corner { width: 72px; height: 36px; }
}
.nameplate-name {
  position: relative; margin: 0; font: 900 clamp(28px, 4vw, 44px)/1.1 var(--font-display);
  letter-spacing: .04em; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2E6C4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* The same plate, small, at the start of the bar: as wide as the file list column and as tall as the buttons. */
.nameplate-sm {
  flex: 0 0 500px; align-self: stretch; margin-top: 4px; min-height: 60px; padding: 6px 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; min-width: 0; box-shadow: 0 4px 14px rgba(10, 31, 79, .18);
}
.nameplate-sm::before { inset: 5px; border-radius: 11px; border-width: 2px; }
.nameplate-sm .np-corner { width: 54px; height: 27px; }
.nameplate-sm .np-tl { top: 10px; left: 10px; }
.nameplate-sm .np-tr { top: 10px; right: 10px; }
.nameplate-sm .np-bl { bottom: 10px; left: 10px; }
.nameplate-sm .np-br { bottom: 10px; right: 10px; }
.nameplate-sm .nameplate-name { font-size: 24px; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-pulse { position: relative; width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 6px; }
.empty-pulse img { position: relative; z-index: 1; }
.empty-pulse::before, .empty-pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(255, 138, 31, .22);
  animation: pulse-ring 2.4s ease-out infinite;
}
.empty-pulse::after { animation-delay: 1.2s; }
@keyframes pulse-ring { 0% { transform: scale(.55); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .empty-pulse::before, .empty-pulse::after { animation: none; opacity: .5; } }



/* Regular-customer requests and approved regulars */
.regulars-list { list-style: none; margin: 0; padding: 0; }
.reg-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.reg-row-wait { background: #FFF8F1; margin: 0 -12px; padding: 10px 12px; border-radius: 12px; border-top-color: transparent; }
.reg-text { display: flex; flex-direction: column; min-width: 0; }
.reg-text span { font-size: 13px; color: var(--muted); }
.reg-contact { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.reg-contact a { font-size: 14px; font-weight: 600; color: var(--ink); }
.reg-actions { display: flex; gap: 8px; }
.btn-approve { background: var(--green); border-color: var(--green); color: #fff; }
.job-who { color: var(--green-ink) !important; font-weight: 700; }

.settings-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.settings-label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.settings-label b { color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; min-height: var(--tap); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }


/* Job detail: narrow work column on the left, preview fills the rest of the screen. */
.panel-page.job-open .pwrap { max-width: none; padding-top: 10px; padding-bottom: 12px; gap: 8px; }
#v-job { gap: 10px; }
.job-layout { display: grid; grid-template-columns: minmax(360px, 500px) minmax(0, 1fr); gap: 14px; align-items: start; }
.job-main { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.job-head { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.job-head-row { display: flex; align-items: center; gap: 14px; }
.job-code { font-size: 42px; line-height: 1; letter-spacing: .08em; }
.job-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--muted); }
.job-meta span:first-child { color: var(--ink); font-weight: 600; font-size: 15px; }

.dl-btn {
  min-height: 52px; border: none; border-radius: 14px; background: var(--yellow); color: var(--ink);
  box-shadow: 0 3px 0 var(--yellow-edge); display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 6px 14px; cursor: pointer; text-align: left;
}
.dl-btn:disabled { opacity: .6; cursor: progress; }
.dl-text { display: flex; flex-direction: column; min-width: 0; }
.dl-title { font: 900 19px var(--font-display); }
.dl-path { font: 500 12px var(--font-body); color: #4A2200; overflow-wrap: anywhere; }
.job-dl { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.job-dl .notice { padding: 8px 12px; font-size: 14px; }

.job-files { list-style: none; margin: 0; padding: 4px 0; max-height: calc(100vh - 470px); min-height: 120px; overflow-y: auto; }
/* The job's list keeps room for several files and scrolls on its own; narrow, the buttons go under the name. */
#job-files { min-height: 300px; max-height: max(300px, calc(100vh - 480px)); container-type: inline-size; }
@container (max-width: 430px) {
  #job-files .jfile-actions { grid-column: 2 / -1; padding-bottom: 4px; }
}
.jfile {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 5px 10px 5px 12px; cursor: pointer;
}
.jfile + .jfile { border-top: 1px solid var(--line-2); }
.jfile:hover { background: #FAFAFB; }
.jfile.active { background: #FFEBD9; }
.jfile .file-badge { width: 38px; height: 40px; font-size: 10px; border-radius: 7px; }
.jfile-text { min-width: 0; }
/* Long names wrap to two lines instead of being cut; the full name is in the tooltip. */
.jfile-name {
  font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.jfile-meta { font-size: 12px; color: var(--muted-2); }
.jfile-new { box-shadow: inset 4px 0 0 var(--yellow); }
.jfile-new-badge { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: var(--yellow); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.jfile-actions { display: flex; gap: 6px; }
.mini-btn {
  min-height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid #C9CDD6; background: #fff; color: var(--ink);
  font: 600 13px var(--font-body); display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
}
.mini-btn:hover { border-color: var(--ink); }
.mini-btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.mini-btn-icon { width: 36px; padding: 0; justify-content: center; }
.mini-btn-danger { color: var(--red); border-color: #E7B4AE; }
.mini-btn-danger:hover { border-color: var(--red); background: #FDF1F0; }
.mini-btn:disabled { opacity: .6; cursor: progress; }
.jfile-note { font-size: 12px; color: var(--muted); background: var(--ground); border-radius: 8px; padding: 6px 8px; white-space: nowrap; }

.done-btn {
  min-height: 56px; border: none; border-radius: 16px; background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 900 20px var(--font-display); cursor: pointer;
}
.done-btn:disabled { opacity: .6; cursor: progress; }
.done-note { margin: 0; }

.preview {
  position: sticky; top: 10px; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px;
  height: calc(100vh - 96px); min-height: 480px;
}
.preview-head { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 4px; }
.preview-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-body {
  position: relative; flex: 1; min-height: 0; background: #DCDFE5; border-radius: 10px;
  display: grid; place-items: center; overflow: hidden;
}
.preview-body > p { padding: 16px; }
.preview-hint {
  position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 5px 10px; border-radius: 8px;
  background: rgba(10, 31, 79, .82); color: #fff; font-size: 12px; font-weight: 600; pointer-events: none;
}
.no-preview { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 360px; padding: 24px; text-align: center; color: var(--muted); font-size: 15px; }
.no-preview b { color: var(--ink); font-size: 18px; }
.no-preview-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); margin-bottom: 4px; }
.preview-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }

.zoom-bar { display: flex; align-items: center; gap: 6px; }
.zoom-level { min-width: 52px; text-align: center; font: 700 13px var(--font-body); color: var(--muted); }
.zoom-box {
  position: absolute; inset: 0; overflow: auto; display: flex; overscroll-behavior: contain;
}
.zoom-img {
  display: block; margin: auto; max-width: none; background: #fff; flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(10, 31, 79, .15); user-select: none; -webkit-user-drag: none;
}
.zoom-box.pannable { cursor: grab; }
.zoom-box.panning { cursor: grabbing; }

/* "A4'e yerleştir": photos on one A4 page (ID card front + back), crop, real size, moved and resized by hand. */
.combine-btn {
  flex-shrink: 0; min-height: 60px; border: 2px dashed var(--yellow); border-radius: 14px; background: #FFF4EA;
  color: var(--ink); display: flex; align-items: center; gap: 12px; padding: 8px 14px; cursor: pointer; text-align: left; font: inherit;
}
.combine-btn:not(:disabled):hover, .combine-btn.active { background: #FFE6CF; border-style: solid; }
.combine-btn:disabled { opacity: .5; cursor: default; }
.combine-btn svg { flex-shrink: 0; color: var(--ink); }
.combine-btn-text { display: flex; flex-direction: column; min-width: 0; }
.combine-btn-text b { font: 800 17px var(--font-display); }
.combine-btn-text span { font-size: 12px; color: var(--muted); }

.combine { position: absolute; inset: 0; display: grid; grid-template-columns: 280px minmax(0, 1fr); }
/* Sidebar: title and close, page settings, print, photos (the page gets the whole height). */
.combine-side { min-height: 0; display: flex; flex-direction: column; background: #EEF0F3; border-right: 1px solid var(--line); }
.combine-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 0 12px; }
.combine-title { font: 900 17px var(--font-display); }
.combine-close { font-size: 26px; line-height: 1; }
.combine-bar { display: flex; flex-direction: column; gap: 10px; padding: 6px 12px 12px; border-bottom: 1px solid var(--line); }
.combine-editing .combine-side { opacity: .45; }
.combine-field { display: flex; flex-direction: column; gap: 4px; }
.combine-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.combine-bar .seg { grid-template-columns: 1fr 1fr; background: #fff; padding: 3px; border-radius: 12px; }
.combine-bar .seg button { min-height: 38px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.combine-print {
  justify-content: center; min-height: 52px; padding: 0 22px; border: none; border-radius: 14px;
  background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-edge);
  display: inline-flex; align-items: center; gap: 8px; font: 900 19px var(--font-display); cursor: pointer;
}
.combine-print:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-edge); }
.combine-print:disabled { opacity: .5; cursor: progress; }
.combine-msg { flex-basis: 100%; margin: 0; color: var(--red); font-size: 14px; font-weight: 600; }

.combine-items {
  flex: 1; min-height: 0; list-style: none; margin: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
}
.citem {
  display: grid; grid-template-columns: auto 52px minmax(0, 1fr); align-items: center; gap: 8px;
  padding: 8px; border-radius: 12px; background: #fff; border: 2px solid transparent;
}
.citem.on { border-color: var(--ink); }
.citem.off .citem-thumb, .citem.off .citem-text { opacity: .55; }
.citem-check { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.citem-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.citem-num {
  min-width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font: 900 13px var(--font-display);
}
.citem-num:empty { visibility: hidden; }
.citem-thumb { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: var(--ground); transition: transform .2s; }
.citem-text { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.citem-name { font-size: 13px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.citem-chip { padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.citem-chip-ok { background: var(--green-bg); color: var(--green-ink); }
.citem-chip-warn { background: #FFE6CF; color: var(--orange-ink); }
.citem-actions { grid-column: 1 / -1; display: flex; gap: 6px; }
.citem-actions .mini-btn { min-height: 34px; padding: 0 9px; }
.citem-actions .mini-btn-icon { width: 34px; padding: 0; margin-left: auto; }
.citem-actions .mini-btn:disabled { opacity: .4; cursor: default; }

.combine-stage { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.combine-stage > p { padding: 16px; }
.combine-page { display: block; background: #fff; box-shadow: 0 4px 18px rgba(10, 31, 79, .18); }
.combine-reset { min-height: 40px; justify-content: center; }
.preview:has(.combine) .preview-head { display: none; }

/* Each photo on the page: corner handles resize it (the canvas below draws the photo). */
.combine-sheet { position: relative; }
.combine-boxes { position: absolute; inset: 0; }
.cbox { position: absolute; outline: 1.5px dashed rgba(255, 138, 31, .55); outline-offset: 0; cursor: move; touch-action: none; }
.cbox:hover, .cbox.resizing, .cbox.moving { outline: 2px solid var(--yellow); }
.cbox-h {
  position: absolute; width: 14px; height: 14px; background: #fff; border: 2.5px solid var(--yellow);
  border-radius: 4px; box-shadow: 0 1px 3px rgba(10, 31, 79, .3); touch-action: none; z-index: 1;
}
.cbox-h::before { content: ''; position: absolute; inset: -12px; }
.cbox-h-nw { left: -8px; top: -8px; cursor: nwse-resize; }
.cbox-h-ne { right: -8px; top: -8px; cursor: nesw-resize; }
.cbox-h-sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.cbox-h-se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.cbox-size {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 3px 8px; border-radius: 6px;
  background: rgba(10, 31, 79, .85); color: #fff; font: 700 12px var(--font-body); white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .15s;
}
.cbox:hover .cbox-size, .cbox.resizing .cbox-size, .cbox.moving .cbox-size { opacity: 1; }

.crop { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.crop-area { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.crop-wrap { position: relative; overflow: hidden; touch-action: none; box-shadow: 0 4px 18px rgba(10, 31, 79, .18); }
.crop-img { display: block; width: 100%; height: 100%; }
.crop-rect {
  position: absolute; border: 2px solid var(--yellow); cursor: move; touch-action: none;
  box-shadow: 0 0 0 9999px rgba(10, 31, 79, .55);
}
.crop-h {
  position: absolute; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow);
  border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.crop-h-nw { left: -13px; top: -13px; cursor: nwse-resize; }
.crop-h-ne { right: -13px; top: -13px; cursor: nesw-resize; }
.crop-h-sw { left: -13px; bottom: -13px; cursor: nesw-resize; }
.crop-h-se { right: -13px; bottom: -13px; cursor: nwse-resize; }
.crop-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px;
  background: #fff; border-top: 1px solid var(--line);
}
.crop-text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.crop-text b { color: var(--ink); font: 800 16px var(--font-display); }
.crop-ok {
  min-height: 44px; padding: 0 20px; border: none; border-radius: 12px; background: var(--yellow); color: var(--ink);
  box-shadow: 0 3px 0 var(--yellow-edge); font: 900 17px var(--font-display); cursor: pointer;
}

/* Desktop job view fills the window exactly: file list and preview stretch to the bottom edge. */
@media (min-width: 901px) {
  body.panel-page.job-open { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
  body.job-open .pwrap { flex: 1; min-height: 0; width: 100%; }
  body.job-open #v-job { flex: 1; min-height: 0; }
  body.job-open .job-layout { flex: 1; min-height: 0; align-items: stretch; }
  body.job-open .job-main { min-height: 0; }
  body.job-open .job-files { flex: 1 1 auto; min-height: 0; max-height: none; }
  body.job-open #member-main { overflow-y: auto; }
  body.job-open .member-files-sec { display: flex; }
  body.job-open .preview { position: static; height: auto; min-height: 0; }
  /* A customer's job is not held to the window: the file list keeps room for several files and the preview
     runs at least as long as the left column; the page scrolls when the window is short. */
  body.panel-page.job-open:has(#v-job:not([hidden]) #job-main:not([hidden])) { height: auto; overflow: visible; }
  body.job-open .job-layout:has(> #job-main:not([hidden])) > .preview { min-height: max(640px, calc(100vh - 190px)); }
  /* "A4'e yerleştir" gets a tall working area: the page scrolls instead of fitting the window. */
  body.panel-page.job-open:has(.combine) { height: auto; overflow: visible; }
  body.job-open .job-layout:has(.combine) { grid-template-columns: minmax(0, 1fr); align-items: start; }
  body.job-open .job-layout:has(.combine) > .job-main { display: none; }
  body.job-open .preview:has(.combine) { height: max(calc(100vh - 24px), 1100px); }
  body.job-open #v-send { flex: 1; min-height: 0; }
  body.job-open .send-layout { flex: 1; min-height: 0; align-items: stretch; }
  body.job-open .send-side { min-height: 0; overflow-y: auto; }
  body.job-open .send-files { display: flex; flex-direction: column; min-height: 0; }
  body.job-open .send-files .drop { flex-shrink: 0; }
  body.job-open .send-files:has(.send-list:empty) .drop { flex: 1; }
  body.job-open .send-list { flex: 1; min-height: 0; }
}

@media (max-width: 900px) {
  .job-layout, .send-layout { grid-template-columns: 1fr; }
  .job-files { max-height: none; }
  .preview { position: static; height: 75vh; }
  .zoom-bar #zoom-100 { display: none; }
  .preview:has(.combine) { height: 92vh; }
  .combine { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .combine-side { min-width: 0; border-right: none; border-bottom: 1px solid var(--line); }
  .combine-bar .combine-field { flex: 1 1 150px; min-width: 0; }
  .combine-bar { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .combine-items { flex: none; flex-direction: row; overflow-x: auto; }
  .citem { flex: 0 0 230px; }
  .combine-print { flex: 1 1 100%; }
  /* While cropping on a phone the editor takes the whole pane. */
  .combine.combine-editing { grid-template-rows: minmax(0, 1fr); }
  .combine-editing .combine-side { display: none; }
  .tabbar-in { padding: 6px 16px; }
  /* The name plate and the section switch take a full row each; job tabs scroll below them. */
  .nameplate-sm { flex: 1 1 100%; min-height: 52px; }
  .modes { flex: 1 1 100%; display: grid; grid-template-columns: 1fr 1fr auto; }
  .mode-members { padding: 6px 10px; }
  .mode-members .mode-label { display: none; }
  .mode { justify-content: center; white-space: normal; text-align: left; line-height: 1.2; font-size: 14px; }
}

/* Confirm dialogs (panel, admin, QR page): a navy head with an icon and the title over an orange line, like
   the section buttons; the question below; "Vazgeç" white with a navy frame, the action red with a raised
   edge, orange when nothing is lost (data-tone="primary"). Focus rings are orange. */
.confirm {
  border: none; border-radius: 22px; padding: 0; max-width: 440px; width: calc(100% - 32px); overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 31, 79, .35);
}
.confirm::backdrop { background: rgba(10, 31, 79, .55); }
.confirm-head {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px;
  background: radial-gradient(120% 160% at 0% 0%, #12306E 0%, #0A1F4F 60%, #061537 100%);
  box-shadow: inset 0 -3px 0 var(--yellow);
}
.confirm-icon {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  background: #FDECEA; color: var(--red);
}
.confirm-icon:empty { display: none; }
.confirm[data-tone="primary"] .confirm-icon { background: #FFF4EA; color: var(--orange-ink); }
.confirm h2 { color: #fff; font: 900 21px/1.25 var(--font-display); overflow-wrap: anywhere; }
.confirm-body { padding: 18px 22px 22px; }
.confirm-text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.confirm-actions .btn { min-height: 48px; padding: 0 22px; border-radius: 14px; }
.confirm-cancel { border: 1.5px solid var(--ink); color: var(--ink); font-weight: 700; }
.confirm-cancel:hover { background: var(--ground); }
.confirm-ok { border: none; background: var(--red); color: #fff; box-shadow: 0 3px 0 #7A1A12; font: 900 17px var(--font-display); }
.confirm-ok:hover { filter: brightness(1.06); }
.confirm[data-tone="primary"] .confirm-ok { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-edge); }
.confirm :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

@media (max-width: 600px) {
  .pbar-in, .pwrap { padding-left: 16px; padding-right: 16px; }
  .job-code { font-size: 60px; }
}
