@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --accent: #B66A45;
  --bg: #F2F3F5;
  --ink: #252A31;
  --muted: #69717D;
  --line: #E1E5EA;
  --surface: #fff;
  --danger: #dc2626;
  --success: #16a34a
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 28%), var(--bg);
  color: var(--ink);
  font: 15px Inter, system-ui, sans-serif
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 270px;
  padding: 24px 18px;
  background: linear-gradient(180deg, #20252B, #272E36);
  color: white;
  display: flex;
  flex-direction: column;
  z-index: 20;
  box-shadow: 20px 0 50px #21162d18
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 28px
}

.brand>span,
.brand img {
  width: 120px;
  height: 60px;
  border-radius: 14px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #ffffff);
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 20%, transparent)
}

.brand b {
  display: block;
  font-size: 18px
}

.brand small,
.profile small {
  display: block;
  color: #AAB2BD;
  margin-top: 3px;
  font-size: 11px
}

nav {
  display: grid;
  gap: 7px
}

nav a {
  display: flex;
  gap: 13px;
  align-items: center;
  color: #D3D9E1;
  text-decoration: none;
  padding: 13px 14px;
  border-radius: 13px;
  font-weight: 600;
  transition: .22s
}

nav a:hover,
nav a.active {
  color: white;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), #ffffff0b);
  transform: translateX(3px)
}

.profile {
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid #ffffff16;
  display: flex;
  align-items: center;
  gap: 10px
}

.avatar {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #ffffff16;
  display: grid;
  place-items: center;
  font-weight: 800
}

.profile div:nth-child(2) {
  flex: 1
}

.profile b {
  font-size: 12px
}

.profile form,
.profile button {
  margin: 0
}

.profile button {
  background: none;
  border: 0;
  color: #bbb;
  cursor: pointer;
  font-size: 20px
}

main {
  min-height: 100vh;
  margin-left: 270px;
  padding: 28px 34px 50px
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px
}

.top h1 {
  font-size: 28px;
  margin: 3px 0
}

.top small {
  color: var(--muted)
}

.live {
  background: white;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 20px #35263d0a;
  font-size: 12px
}

.live i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  box-shadow: 0 0 0 5px #22c55e18
}

.card {
  background: linear-gradient(145deg, #fff, #FFFFFF);
  border: 1px solid #E1E5EA;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 12px 35px #3d2d4a0b;
  transition: .25s
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px #3d2d4a13
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px
}

.kpi {
  position: relative;
  overflow: hidden
}

.kpi:after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: -25px;
  top: -25px;
  background: color-mix(in srgb, var(--accent) 12%, transparent)
}

.kpi b {
  display: block;
  font-size: 39px;
  letter-spacing: -2px
}

.kpi span {
  color: var(--muted)
}

.kpi small {
  display: block;
  color: var(--success);
  margin-top: 12px
}

.panel {
  margin-top: 20px
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px
}

.panel-head h2 {
  margin: 0;
  font-size: 18px
}

.rank {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line)
}

.rank:last-child {
  border: 0
}

.rank .num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #F7EAE3;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--accent)
}

button,
.button,
input,
select {
  font: inherit;
  border-radius: 12px;
  padding: 12px 14px
}

button,
.button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #8C4B2E));
  color: white;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 22%, transparent);
  transition: .2s
}

button:hover,
.button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px)
}

button.secondary,
.button.secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none
}

button.danger {
  background: #fff1f2;
  color: #be123c;
  box-shadow: none
}

.inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px
}

.field {
  display: grid;
  gap: 7px
}

.field.full {
  grid-column: 1/-1
}

.field label {
  font-weight: 650;
  font-size: 13px
}

.field small {
  color: var(--muted)
}

input,
select {
  width: 100%;
  background: #F8F9FB;
  border: 1px solid var(--line);
  outline: none;
  color: var(--ink)
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  background: white
}

.table-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.table-card h2 {
  margin: 8px 0 4px;
  font-size: 32px;
  line-height: 1.1;
}

.table-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 12px;
}

.qr {
  width: 180px;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line)
}

.badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 99px;
  background: #ecfdf3;
  color: #15803d;
  font-size: 11px;
  font-weight: 800
}

.badge.off {
  background: #f1f1f1;
  color: #777
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.actions .danger {
  grid-column: 1 / -1;
}

.actions form {
  display: contents;
}

.actions button,
.actions .button {
  font-size: 12px;
  padding: 9px 11px
}

.staff-card {
  text-align: center;
  position: relative
}

.staff-photo {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  object-fit: cover;
  margin: auto;
  background: linear-gradient(135deg, #F7EAE3, #FFF8F3);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  box-shadow: 0 10px 25px #B66A4520
}

.staff-card h3 {
  margin: 15px 0 5px
}

.staff-card p {
  color: var(--muted);
  margin: 0
}

.break {
  border: 2px solid #fb7185;
  background: #fff7f7
}

.timer {
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums
}

.public {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 30%), linear-gradient(145deg, #F2F3F5, #E8ECF1)
}

.auth {
  width: min(920px, 95vw);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: 0;
  overflow: hidden
}

.auth-hero {
  padding: 60px;
  color: white;
  background: linear-gradient(145deg, var(--accent), #20252B);
  position: relative
}

.auth-hero h1 {
  font-size: 44px;
  margin: 80px 0 15px;
  line-height: 1.05
}

.auth-hero p {
  color: #F4E5DD;
  line-height: 1.7
}

.auth-form {
  padding: 50px;
  background: white
}

.auth-form h2 {
  font-size: 28px
}

.customer {
  width: min(520px, 94vw);
  text-align: center;
  padding: 40px
}

.call-orb {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  font-size: 22px;
  margin: 30px auto;
  background: radial-gradient(circle at 35% 30%, #fff8, var(--accent) 32%, color-mix(in srgb, var(--accent) 70%, #111));
  box-shadow: 0 0 0 15px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 0 30px color-mix(in srgb, var(--accent) 6%, transparent), 0 25px 60px color-mix(in srgb, var(--accent) 45%, transparent);
  animation: pulse 2.2s infinite
}

.toast {
  padding: 14px 18px;
  background: #ecfdf3;
  color: #166534;
  border-radius: 14px;
  margin-bottom: 18px
}

.toast.bad {
  background: #fff1f2;
  color: #be123c
}

.print-only {
  display: none
}

@keyframes pulse {
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 0 22px color-mix(in srgb, var(--accent) 8%, transparent), 0 0 0 42px transparent, 0 28px 70px color-mix(in srgb, var(--accent) 50%, transparent)
  }
}

@media(max-width:900px) {
  .sidebar {
    position: static;
    width: auto
  }

  .profile {
    margin-top: 20px
  }

  main {
    margin: 0;
    padding: 18px
  }

  .auth {
    grid-template-columns: 1fr
  }

  .auth-hero {
    display: none
  }

  .form-grid {
    grid-template-columns: 1fr
  }

  .table-card {
    grid-template-columns: 1fr
  }

  .top {
    align-items: flex-start
  }

  .live {
    display: none
  }
}

@media print {

  .sidebar,
  .top,
  .no-print,
  .toast {
    display: none !important
  }

  main {
    margin: 0;
    padding: 0
  }

  .print-only {
    display: block
  }

  .grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .card {
    box-shadow: none;
    break-inside: avoid;
    border: 1px solid #bbb
  }

  .actions {
    display: none
  }
}
/* =========================================================
   REV-002: Mola Raporu
   ========================================================= */

.section-description {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.break-report-filter .panel-head {
    gap: 20px;
}

.report-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(170px, 0.8fr)
        minmax(170px, 0.8fr)
        minmax(240px, 1.4fr)
        minmax(150px, 0.6fr);
    gap: 14px;
    align-items: end;
}

.report-filter-button button {
    width: 100%;
    min-height: 46px;
}

.report-kpi-grid {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.report-kpi-grid .kpi b {
    font-size: clamp(22px, 2vw, 36px);
    line-height: 1.15;
    word-break: break-word;
}

.active-break-kpi {
    border-color: color-mix(in srgb, var(--accent) 35%, #ffffff);
    background:
        radial-gradient(
            circle at 90% 10%,
            color-mix(in srgb, var(--accent) 18%, transparent),
            transparent 40%
        ),
        linear-gradient(145deg, #ffffff, #FFFFFF);
}

.report-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.report-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
    background: #ffffff;
}

.report-table th,
.report-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.report-table th {
    background: #F5F7FA;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.report-table td {
    color: var(--ink);
    font-size: 13px;
}

.report-table tbody tr {
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.report-table tbody tr:hover {
    background: color-mix(
        in srgb,
        var(--accent) 4%,
        #ffffff
    );
}

.report-table tbody tr:last-child td {
    border-bottom: 0;
}

.report-rank {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: color-mix(
        in srgb,
        var(--accent) 10%,
        #ffffff
    );
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
}

.text-muted {
    color: var(--muted);
}

.empty-state {
    padding: 38px 20px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: #F8F9FB;
}

.empty-state strong {
    display: block;
    margin-bottom: 7px;
    font-size: 17px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
}

/* Tablet */
@media (max-width: 1250px) {
    .report-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-kpi-grid {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }
}

/* Mobil */
@media (max-width: 700px) {
    .break-report-filter .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-filter-grid {
        grid-template-columns: 1fr;
    }

    .report-kpi-grid {
        grid-template-columns: 1fr;
    }

    .report-table th,
    .report-table td {
        padding: 12px;
    }
}

/* PERSONEL KARTLARINI PAS力FE ALMA */
.staff-card{
    position:relative;
}

.staff-delete-form{
    position:absolute;
    top:10px;
    right:10px;
    z-index:5;
}

.staff-delete-btn{
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    background:#dc2626;
    color:#fff;
    font-size:22px;
    line-height:1;
    cursor:pointer;
    font-weight:700;
}

.staff-delete-btn:hover{
    background:#b91c1c;
}
/* MOLA KARTLARI CSS */
  .break-card-form {
            display: block;
            min-width: 0;
            margin: 0;
        }

        .break-card-form > .break-card-button {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            gap: 14px;

            width: 100%;
            height: 100%;
            min-height: 290px;
            margin: 0;
            padding: 28px 22px;

            border: 1px solid var(--line, #E1E5EA);
            border-radius: 20px;

            background: #ffffff;
            color: var(--ink, #252A31);

            font: inherit;
            text-align: center;
            white-space: normal;

            box-shadow: 0 12px 35px rgba(61, 45, 74, 0.06);
            cursor: pointer;
            touch-action: manipulation;

            transition:
                transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
        }

        .break-card-form > .break-card-button:hover {
            transform: translateY(-3px);
            border-color: var(--accent, #B66A45);
            box-shadow: 0 18px 42px rgba(61, 45, 74, 0.12);
            filter: none;
        }

        .break-card-form > .break-card-button:active {
            transform: scale(0.98);
        }

        .break-card-form > .break-card-button:focus-visible {
            outline: 3px solid var(--accent, #B66A45);
            outline-offset: 4px;
        }

        .break-card-form > .break-card-button.is-on-break {
            border: 2px solid var(--accent, #B66A45);
            background: #F7EAE3;
        }

        .break-card-button .staff-photo {
            flex-shrink: 0;
            margin: 0;
        }

        .break-card-name {
            display: block;
            max-width: 100%;
            font-size: 18px;
            font-weight: 700;
            overflow-wrap: anywhere;
        }

        .break-card-sicil {
            display: block;
            color: var(--muted, #69717D);
            font-size: 13px;
        }

        .break-card-button .timer {
            display: block;
            margin: 0;
            font-size: 28px;
            font-weight: 800;
            font-variant-numeric: tabular-nums;
        }

        .break-card-action {
            display: block;
            width: 100%;
            margin-top: auto;
            padding: 12px 16px;
            border-radius: 12px;

            background: var(--accent, #B66A45);
            color: #ffffff;

            font-size: 14px;
            font-weight: 700;
        }

        .break-card-hint {
            display: block;
            color: var(--muted, #69717D);
            font-size: 11px;
        }

        @media (prefers-reduced-motion: reduce) {
            .break-card-form > .break-card-button {
                transition: none;
            }
        }
/* AÇILIR KAPANIR MENÜ İÇİN CSS */
/* Açılır / kapanır sol menü */

body.sidebar-ready .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 270px;
    height: 100dvh;
    overflow-y: auto;
    z-index: 1100;
    transition: transform 0.25s ease;
}

body.sidebar-ready > main:not(.public) {
    margin-left: 270px;
    padding-top: 82px;
    transition: margin-left 0.25s ease;
}

body.sidebar-ready.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
}

body.sidebar-ready.sidebar-collapsed > main:not(.public) {
    margin-left: 0;
}

.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 290px;
    z-index: 1200;

    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid var(--accent, #B66A45);
    border-radius: 14px;
    background: #ffffff;
    color: var(--accent, #B66A45);
    box-shadow: 0 8px 24px rgba(23, 20, 31, 0.12);

    cursor: pointer;
    touch-action: manipulation;

    transition:
        left 0.25s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.sidebar-toggle:hover {
    background: var(--accent, #B66A45);
    color: #ffffff;
    transform: none;
}

.sidebar-toggle:focus-visible {
    outline: 3px solid var(--accent, #B66A45);
    outline-offset: 3px;
}

.sidebar-toggle svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

body.sidebar-collapsed .sidebar-toggle {
    left: 20px;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(17, 13, 25, 0.48);
}

.sidebar-backdrop[hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    body.sidebar-ready > main:not(.public) {
        margin-left: 0;
        padding-top: 82px;
    }

    body.sidebar-ready .sidebar-toggle {
        left: 20px;
    }

    body.sidebar-ready:not(.sidebar-collapsed) .sidebar-toggle {
        left: 284px;
    }

    body.sidebar-ready .sidebar-backdrop:not([hidden]) {
        display: block;
    }

    body.sidebar-mobile-open {
        overflow: hidden;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.sidebar-ready .sidebar,
    body.sidebar-ready > main:not(.public),
    .sidebar-toggle {
        transition: none;
    }
}

@media print {
    .sidebar-toggle,
    .sidebar-backdrop {
        display: none !important;
    }

    body.sidebar-ready > main:not(.public) {
        margin-left: 0;
        padding-top: 0;
    }
}

.customer .customer-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: 20px;
    padding: 14px 20px;
    border: 1px solid var(--accent, #B66A45);
    border-radius: 14px;
    color: var(--accent, #B66A45);
    background: #ffffff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}
.customer .customer-menu-button:hover {
    background: var(--accent, #B66A45);
    color: #ffffff;
}
.customer .customer-menu-button:focus-visible {
    outline: 3px solid var(--accent, #B66A45);
    outline-offset: 3px;
}
/* Menü düğmesi: açıkken menünün içinde, kapalıyken sol üstte */

body.sidebar-ready:not(.sidebar-collapsed) .sidebar-toggle {
    top: 20px;
    left: 212px;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    box-shadow: none;
}

body.sidebar-ready:not(.sidebar-collapsed) .sidebar-toggle:hover {
    background: var(--accent, #B66A45);
    border-color: var(--accent, #B66A45);
    color: #ffffff;
    transform: none;
}

body.sidebar-ready.sidebar-collapsed .sidebar-toggle {
    top: 20px;
    left: 20px;

    width: 44px;
    height: 44px;

    border: 1px solid var(--accent, #B66A45);
    border-radius: 13px;

    background: #ffffff;
    color: var(--accent, #B66A45);

    box-shadow: 0 8px 24px rgba(23, 20, 31, 0.12);
}

body.sidebar-ready.sidebar-collapsed .sidebar-toggle:hover {
    background: var(--accent, #B66A45);
    color: #ffffff;
    transform: none;
}

/* Logo ve işletme adı, düğmenin altında kalmasın. */

body.sidebar-ready .sidebar .brand {
    padding-right: 52px;
}

body.sidebar-ready .sidebar .brand > div {
    min-width: 0;
}

body.sidebar-ready .sidebar .brand b {
    overflow-wrap: anywhere;
}

body.sidebar-ready .sidebar .brand > img,
body.sidebar-ready .sidebar .brand > span {
    flex-shrink: 0;
}

/* Mobilde de açık düğme menünün içinde kalır. */

@media (max-width: 900px) {
    body.sidebar-ready:not(.sidebar-collapsed) .sidebar-toggle {
        left: 212px;
    }

    body.sidebar-ready.sidebar-collapsed .sidebar-toggle {
        left: 20px;
    }
}

/* Sol menü: bağımsız üst düğme ve arka plansız logo */

/* Açık menüde düğme sağ üstte kalır. */
body.sidebar-ready:not(.sidebar-collapsed) .sidebar-toggle {
    top: 14px;
    left: 212px;
    width: 44px;
    height: 44px;
}

/* Mobildeki eski konum kuralını da geçersiz kılar. */
@media (max-width: 900px) {
    body.sidebar-ready:not(.sidebar-collapsed) .sidebar-toggle {
        top: 14px;
        left: 212px;
    }
}

/*
 * İlk 58 px düğmeye ayrılır.
 * Logo ve işletme adı bu alanın altında başlar.
 */
body.sidebar-ready .sidebar .brand {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-width: 0;

    margin-top: 46px;
    padding: 12px 6px 24px;
}

/* Logo: renkli kutu, ışık, gölge ve kırpma kaldırılır. */
body.sidebar-ready .sidebar .brand > img {
    display: block;
    flex: 0 0 84px;

    width: 84px;
    height: 84px;
    max-width: 84px;
    margin: 0;
    padding: 0;

    object-fit: contain;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    filter: none;
}

/* İşletme adına yeterli alan bırakılır. */
body.sidebar-ready .sidebar .brand > div {
    flex: 1 1 0;
    min-width: 0;
}

body.sidebar-ready .sidebar .brand b {
    display: block;
    margin: 0;

    font-size: 17px;
    line-height: 1.3;

    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

body.sidebar-ready .sidebar .brand small {
    display: block;
    margin-top: 5px;

    font-size: 11px;
    line-height: 1.5;

    white-space: normal;
    word-break: normal;
}
/* Anthracite and copper: final overrides */
body { background: var(--bg); }
.sidebar { background: linear-gradient(180deg,#20252B,#272E36); color:#E8EDF3; border-right:1px solid #343C46; }
.sidebar nav a { color:#D3D9E1; }
.sidebar nav a:hover,.sidebar nav a.active { color:#FFFFFF; background:color-mix(in srgb,var(--accent) 22%,#20252B); }
.sidebar nav a.active { box-shadow:inset 3px 0 0 var(--accent); }
.sidebar .brand b,.sidebar .profile b { color:#F4F6F9; }
.sidebar .brand small,.sidebar .profile small { color:#AAB2BD; }
.sidebar .profile { border-top-color:#3A424D; }
.sidebar .avatar { background:#353D47; color:#E9B99F; }
.sidebar .profile button { background:transparent; color:#D3D9E1; box-shadow:none; }
.sidebar .brand > img { background:transparent; box-shadow:none; border:0; border-radius:0; object-fit:contain; }
.sidebar .brand > span { background:#353D47; color:#E9B99F; box-shadow:none; }
.card { background:#FFFFFF; border-color:var(--line); }
body.sidebar-ready:not(.sidebar-collapsed) .sidebar-toggle { top:14px; left:212px; background:#303842; color:#E8EDF3; border:1px solid #48515D; box-shadow:none; }
body.sidebar-ready:not(.sidebar-collapsed) .sidebar-toggle:hover { background:var(--accent); border-color:var(--accent); color:#FFFFFF; }
.staff-delete-btn { background:#F7EAE3; color:#8C4B2E; }
.staff-delete-btn:hover { background:var(--accent); color:#FFFFFF; }
.portal-user-avatar,.portal-user-role { background:#F7EAE3 !important; }
.break-card-form > .break-card-button.is-on-break { background:#F7EAE3 !important; }
.customer .staff-photo { background:transparent; box-shadow:none; object-fit:contain; }
.table-card-content { width:100%; min-width:0; }
.csv-download-button { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
button:disabled { opacity:.65; cursor:not-allowed; }
@media (prefers-reduced-motion:reduce) { .call-orb { animation:none; } }

/* Mobil: Login ve Garson Çağır kartlarını ortala */

@media (max-width: 900px) {
    main.public {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        align-items: center;

        width: 100%;
        min-width: 0;
        min-height: 100vh;
        min-height: 100dvh;

        margin: 0;
        padding: 24px 16px;
    }

    main.public .auth,
    main.public .customer {
        width: 100%;
        max-width: 520px;
        min-width: 0;

        margin-left: auto;
        margin-right: auto;
        justify-self: center;
    }

    main.public .auth {
        grid-template-columns: minmax(0, 1fr);
    }

    main.public .auth-form {
        min-width: 0;
        padding: 28px 24px;
    }

    main.public .customer {
        padding: 32px 24px;
    }

    main.public .call-orb {
        display: block;

        width: min(220px, 100%);
        height: auto;
        aspect-ratio: 1 / 1;

        margin: 30px auto;
    }
}
/* Canlı Çağrılar: bekleyen kartlarda nabız efekti */

#calls.live-call-grid > .card.live-call-pulse {
    position: relative;
    transform-origin: center;
    animation: liveCallHeartbeat 1.2s ease-in-out infinite;
}

@keyframes liveCallHeartbeat {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 12px 35px rgba(32, 37, 43, 0.07);
    }

    50% {
        transform: scale(1.07);
        box-shadow:
            0 16px 38px rgba(32, 37, 43, 0.12),
            0 0 0 5px color-mix(
                in srgb,
                var(--accent, #B66A45) 30%,
                transparent
            );
    }
}

/* İşlem sırasında kartı sabitle. */
#calls.live-call-grid > .card.live-call-pulse:hover,
#calls.live-call-grid > .card.live-call-pulse:focus-within {
    animation: none;
    transform: scale(1);
}

/* Hareket azaltma tercihini koru. */
@media (prefers-reduced-motion: reduce) {
    #calls.live-call-grid > .card.live-call-pulse {
        animation: none;
        transform: none;
        border-color: var(--accent, #B66A45);
    }
}

/* Yazdırmada animasyon uygulanmaz. */
@media print {
    #calls.live-call-grid > .card.live-call-pulse {
        animation: none;
        transform: none;
        box-shadow: none;
    }
}


/* Bekleyen çağrı kartı: belirgin ve sürekli nabız */

#calls > .card.live-call-pulse,
#calls > .card.live-call-pulse:hover,
#calls > .card.live-call-pulse:focus-within {
    transform-origin: center;
    animation: pendingCallPulse 1.2s ease-in-out infinite !important;
}

@keyframes pendingCallPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 12px 30px rgba(32, 37, 43, 0.08);
    }

    50% {
        transform: scale(1.05);
        box-shadow:
            0 18px 40px rgba(32, 37, 43, 0.16),
            0 0 0 5px rgba(182, 106, 69, 0.30);
    }
}

/* Cihazın hareket azaltma tercihini koru. */
@media (prefers-reduced-motion: reduce) {
    #calls > .card.live-call-pulse,
    #calls > .card.live-call-pulse:hover,
    #calls > .card.live-call-pulse:focus-within {
        animation: none !important;
        transform: none !important;
        border: 2px solid var(--accent, #B66A45);
    }
}

@media print {
    #calls > .card.live-call-pulse,
    #calls > .card.live-call-pulse:hover,
    #calls > .card.live-call-pulse:focus-within {
        animation: none !important;
        transform: none !important;
        box-shadow: none;
    }
}

/* Canlı Çağrılar: başlığın sağındaki ses ve sistem göstergesi */

.top .call-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;

    margin-left: auto;
    flex-shrink: 0;
}

.call-header-actions .call-sound-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 10px 14px;

    border: 1px solid var(--line, #E1E5EA);
    border-radius: 999px;

    background: #FFFFFF;
    color: var(--ink, #252A31);

    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: none;
}

.call-header-actions .call-sound-toggle[aria-pressed="true"] {
    border-color: var(--accent, #B66A45);
    color: var(--accent, #B66A45);
}

.call-header-actions .call-sound-toggle:hover {
    background: var(--accent, #B66A45);
    border-color: var(--accent, #B66A45);
    color: #FFFFFF;
    transform: none;
}

.call-header-actions .live {
    margin: 0;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .top:has(.call-header-actions) {
        flex-wrap: wrap;
        gap: 14px;
    }

    .top .call-header-actions {
        max-width: 100%;
    }
}

@media print {
    .call-header-actions {
        display: none !important;
    }
}
/* Kısa ekranlarda sol menüyü kompakt hale getir */

@media (max-height: 800px) {
    body.sidebar-ready .sidebar {
        padding: 14px 14px;
    }

    body.sidebar-ready .sidebar .brand {
        margin-top: 46px;
        padding: 6px 4px 14px;
        gap: 10px;
        flex-shrink: 0;
    }

    body.sidebar-ready .sidebar .brand > img {
        flex: 0 0 64px;
        width: 64px;
        height: 64px;
        max-width: 64px;
    }

    body.sidebar-ready .sidebar .brand b {
        font-size: 15px;
        line-height: 1.25;
    }

    body.sidebar-ready .sidebar .brand small {
        font-size: 10px;
        margin-top: 3px;
    }

    body.sidebar-ready .sidebar nav {
        gap: 3px;
        flex-shrink: 0;
    }

    body.sidebar-ready .sidebar nav a {
        min-height: 38px;
        padding: 8px 12px;
        gap: 10px;
        font-size: 13px;
        line-height: 1.4;
    }

    body.sidebar-ready .sidebar .profile {
        margin-top: auto;
        padding: 10px 4px 0;
        gap: 8px;
        flex-shrink: 0;
    }

    body.sidebar-ready .sidebar .avatar {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }
}

/* Daha kısa laptop ekranları ve yatay mobil görünüm */

@media (max-height: 650px) {
    body.sidebar-ready .sidebar {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.sidebar-ready .sidebar .brand {
        margin-top: 48px;
        padding-bottom: 10px;
    }

    body.sidebar-ready .sidebar .brand > img {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        max-width: 48px;
    }

    body.sidebar-ready .sidebar nav {
        gap: 2px;
    }

    body.sidebar-ready .sidebar nav a {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 12px;
    }

    body.sidebar-ready .sidebar .profile {
        padding-top: 8px;
    }
}
