/* =========================================================
   Usta Berber — Yönetim paneli stilleri
   ========================================================= */

:root {
    --paper: #f6f4ef;
    --white: #ffffff;
    --ink: #17171c;
    --text: #2d2a30;
    --muted: #6f6a60;
    --dim: #8d877c;
    --border: #e6e1d7;
    --border-soft: #f0ece3;
    --gold: #c9a227;
    --gold-dark: #8a6d1a;
    --gold-soft: #faf3dd;
    --ok: #1f8a5a;
    --danger: #b03a2e;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

svg {
    display: block;
    max-width: 100%;
}

.icon {
    display: inline-block;
    vertical-align: middle;
    flex: none;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ---------- Butonlar ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: #17130a;
    box-shadow: 0 8px 18px rgba(201, 162, 39, 0.18);
}

.btn-primary:hover {
    background: #b8941f;
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--white);
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.btn-sm {
    padding: 8px 13px;
    font-size: 0.78rem;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn.is-disabled {
    pointer-events: none;
    opacity: 0.4;
}

/* ---------- Uyarılar ---------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 15px;
    border-radius: 11px;
    font-size: 0.86rem;
    margin-bottom: 16px;
}

.alert .icon {
    margin-top: 1px;
}

.alert-success {
    background: #e9f6ee;
    border: 1px solid #c3e6d2;
    color: #1c6e49;
}

.alert-error {
    background: #fdeeec;
    border: 1px solid #f1c9c3;
    color: #a3352b;
}

/* ---------- Ana yerleşim ---------- */

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-side {
    position: fixed;
    inset: 0 auto 0 0;
    width: 252px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 22px 16px;
    background: #111114;
    border-right: 1px solid #232329;
    color: #e9e5dc;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 8px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-brand-mark {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #e6c86b;
    background: rgba(201, 162, 39, 0.12);
    border: 1px solid rgba(201, 162, 39, 0.28);
}

.admin-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.admin-brand-text strong {
    font-family: var(--font-display);
    font-size: 1.04rem;
    color: #f4f0e8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-brand-text small {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7d7870;
    margin-top: 3px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-nav-label {
    padding: 0 11px 8px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6b6660;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 9px;
    color: #b6b0a6;
    font-size: 0.86rem;
    transition: background 0.2s, color 0.2s;
}

.admin-nav a .icon {
    color: #8d877c;
    transition: color 0.2s;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-nav a.is-active {
    background: rgba(201, 162, 39, 0.13);
    color: #e9cd77;
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.2);
}

.admin-nav a.is-active .icon {
    color: #e6c86b;
}

.admin-side-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-side-foot a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #8f8a81;
    font-size: 0.81rem;
    transition: background 0.2s, color 0.2s;
}

.admin-side-foot a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.admin-main {
    flex: 1;
    margin-left: 252px;
    min-width: 0;
}

.admin-top {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 72px;
    padding: 0 26px;
    background: rgba(246, 244, 239, 0.9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.admin-burger {
    display: none;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
}

.admin-top h1 {
    flex: 1;
    font-size: 1.24rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.82rem;
    color: var(--muted);
}

.admin-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--gold-dark);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 26px;
}

/* ---------- İstatistikler ---------- */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(23, 23, 28, 0.06);
    border-color: #ddd6c8;
}

.stat-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    margin-bottom: 6px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
    color: var(--ink);
}

.stat-label {
    font-size: 0.76rem;
    color: var(--muted);
}

.stat-arrow {
    position: absolute;
    top: 18px;
    right: 18px;
    color: #c9c3b8;
}

/* ---------- Paneller ---------- */

.panel {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(23, 23, 28, 0.025);
}

.panel-narrow {
    max-width: 640px;
}

.admin-form > .panel {
    margin-bottom: 20px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-head h2 {
    font-size: 1.18rem;
    color: var(--ink);
}

.panel-head p {
    margin-top: 4px;
    font-size: 0.79rem;
    color: var(--muted);
}

.panel-link {
    flex: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold-dark);
}

.panel-link:hover {
    text-decoration: underline;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    align-items: start;
}

/* ---------- Tablolar ---------- */

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.table th {
    padding: 9px 12px;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text);
}

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

.table .strong {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.sub-link {
    display: block;
    margin-top: 2px;
    font-size: 0.76rem;
    color: var(--muted);
}

a.sub-link:hover {
    color: var(--gold-dark);
}

.sub-note {
    display: block;
    margin-top: 4px;
    max-width: 230px;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--dim);
}

.th-actions {
    text-align: right !important;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: nowrap;
}

.action-btn {
    display: inline-grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.action-btn:hover {
    border-color: var(--gold);
    background: #fffdf6;
    color: var(--gold-dark);
}

.action-btn.is-ok:hover {
    border-color: #9fd3b8;
    background: #eefaf3;
    color: var(--ok);
}

.action-btn.is-warn:hover {
    border-color: #e8c98d;
    background: #fdf7ea;
    color: #a97a19;
}

.action-btn.is-danger:hover {
    border-color: #e3b5ad;
    background: #fdf3f1;
    color: var(--danger);
}

.table-service {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.table-icon {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.cell-clip {
    max-width: 330px;
    font-size: 0.8rem;
    color: var(--muted) !important;
}

/* ---------- Etiketler ---------- */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: #f0ece3;
    color: var(--muted);
}

.badge-pending {
    background: #fdf3dc;
    color: #8a6d1a;
}

.badge-confirmed {
    background: #e5f2ea;
    color: var(--ok);
}

.badge-completed {
    background: #e8eef8;
    color: #315c9e;
}

.badge-cancelled {
    background: #fbe9e7;
    color: var(--danger);
}

.badge-active {
    background: #e5f2ea;
    color: var(--ok);
}

.badge-muted {
    background: #f0ece3;
    color: var(--dim);
}

/* ---------- Formlar ---------- */

.admin-form {
    display: block;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.field label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.field .check {
    font-size: 0.86rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text);
}

.input {
    width: 100%;
    padding: 11px 13px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder {
    color: #b3ada2;
}

.input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14);
}

textarea.input {
    min-height: 84px;
    resize: vertical;
}

select.input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236f6a60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 6 8 10 12 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}

.input-color {
    height: 46px;
    padding: 5px;
    cursor: pointer;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.help {
    font-size: 0.73rem;
    color: var(--dim);
    line-height: 1.5;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.86rem;
    color: var(--text);
    cursor: pointer;
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
    cursor: pointer;
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin: 0;
    padding: 14px 0;
    background: rgba(246, 244, 239, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
}

/* ---------- İkon seçici ---------- */

.icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 8px;
    max-height: 248px;
    padding: 10px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #faf9f5;
}

.icon-picker label {
    position: relative;
    display: grid;
    place-items: center;
    height: 44px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.icon-picker label:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.icon-picker label:has(input:checked) {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold-dark);
    box-shadow: inset 0 0 0 1px var(--gold);
}

.icon-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ---------- Filtreler / çipler ---------- */

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.chip-link {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fbfaf7;
    color: var(--muted);
    font-size: 0.77rem;
    font-weight: 500;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.chip-link:hover {
    border-color: var(--gold);
    color: var(--gold-dark);
}

.chip-link.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.filter-form {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #faf9f5;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.filter-grow {
    flex: 1;
    min-width: 180px;
}

.filter-field label {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.filter-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ---------- Sayfalama ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    font-size: 0.79rem;
    color: var(--muted);
}

/* ---------- Hızlı işlemler ---------- */

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

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fbfaf7;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.quick-link .icon {
    color: var(--gold-dark);
}

.quick-link:hover {
    border-color: var(--gold);
    background: #fffdf6;
    transform: translateY(-1px);
}

/* ---------- Yaklaşan randevular ---------- */

.appt-mini-list {
    display: flex;
    flex-direction: column;
}

.appt-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-soft);
}

.appt-mini:last-child {
    border-bottom: 0;
}

.appt-mini-date {
    width: 44px;
    height: 48px;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--gold-soft);
    color: var(--gold-dark);
    line-height: 1;
}

.appt-mini-date strong {
    font-size: 1rem;
}

.appt-mini-date small {
    margin-top: 3px;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.appt-mini-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.appt-mini-main strong {
    font-size: 0.85rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appt-mini-main small {
    font-size: 0.73rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.appt-mini-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text);
}

/* ---------- Boş durum ---------- */

.admin-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
}

.admin-empty .icon {
    margin: 0 auto 10px;
    color: var(--gold);
}

.admin-empty p {
    margin-bottom: 12px;
    font-size: 0.86rem;
}

/* ---------- Çalışma saatleri editörü ---------- */

.hours-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-editor-row {
    display: grid;
    grid-template-columns: 150px 100px 1fr 16px 1fr;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fbfaf7;
}

.hours-editor-day {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
}

.hours-editor-row .check {
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.hours-sep {
    text-align: center;
    color: #b0a99d;
}

/* ---------- Giriş ---------- */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at 72% 8%, #26210f 0%, #0c0c0e 44%, #08080a 100%);
    color: #f0ede6;
}

.login-card {
    width: min(430px, 100%);
    padding: 34px;
    border-radius: 20px;
    background: #151519;
    border: 1px solid rgba(201, 162, 39, 0.24);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
}

.login-brand {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-card h1 {
    margin-bottom: 8px;
    font-size: 1.7rem;
    color: #fff;
}

.login-sub {
    margin-bottom: 22px;
    font-size: 0.87rem;
    color: #9d978d;
}

.login-card .field label {
    color: #8f8a81;
}

.login-card .input {
    background: #101013;
    border-color: #2a2a31;
    color: #f0ede6;
    color-scheme: dark;
}

.login-card .input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    font-size: 0.79rem;
    color: #8f8a81;
}

.login-back .icon {
    transform: rotate(180deg);
}

.login-back:hover {
    color: #e6c86b;
}

/* ---------- Duyarlı ---------- */

@media (max-width: 1080px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-side {
        transform: translateX(-100%);
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
    }

    .admin-side.is-open {
        transform: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-burger {
        display: inline-grid;
    }
}

@media (max-width: 720px) {
    .admin-content {
        padding: 18px;
    }

    .admin-top {
        padding: 0 18px;
        height: 64px;
    }

    .admin-user-name {
        display: none;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hours-editor-row {
        grid-template-columns: 1fr 1fr;
    }

    .hours-editor-day {
        grid-column: 1 / -1;
    }

    .hours-sep {
        display: none;
    }

    .panel {
        padding: 18px;
    }

    .login-card {
        padding: 26px;
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Usta paneli ---------- */

.admin-user-role {
    display: block;
    margin-top: 2px;
    font-size: 0.66rem;
    line-height: 1.2;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 190px;
}

.barber-info-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.barber-info-strip > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.barber-info-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.barber-info-strip strong {
    font-size: 0.86rem;
    color: var(--ink);
    word-break: break-word;
}

.barber-info-strip .btn {
    margin-left: auto;
}

.block-list {
    display: flex;
    flex-direction: column;
}

.block-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border-soft);
}

.block-item:last-child {
    border-bottom: 0;
}

.block-icon {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--gold-soft);
    color: var(--gold-dark);
}

.block-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.block-main strong {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 0.85rem;
    color: var(--ink);
}

.block-day {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--muted);
}

.block-main small {
    font-size: 0.73rem;
    color: var(--muted);
}

.block-item form {
    flex: none;
}

.detail-list {
    display: flex;
    flex-direction: column;
}

.detail-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.83rem;
    color: var(--muted);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row strong,
.detail-row > a {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

.detail-row > a:hover {
    color: var(--gold-dark);
}

.detail-row-note {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.detail-row-note strong {
    text-align: left;
    font-weight: 500;
    color: var(--text);
}

.slot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 44px;
    padding: 4px 0;
}

.slot {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fbfaf7;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.slot:hover {
    border-color: var(--gold);
    background: #fffdf6;
}

.slot.is-active {
    background: var(--gold);
    border-color: var(--gold);
    color: #17130a;
    font-weight: 600;
}

.slot-hint {
    font-size: 0.8rem;
    color: var(--muted);
    padding: 6px 0;
}

.field-error {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--danger);
}

.field-inline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.field-inline > div:first-child {
    flex: 1;
    min-width: 220px;
}

.interval-preview {
    min-width: 250px;
    padding: 12px 16px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #fbfaf7;
}

.interval-preview-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.interval-preview-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.interval-preview-times span {
    padding: 4px 9px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    font-size: 0.75rem;
    color: var(--ink);
}

.hours-day-hint {
    display: block;
    margin-top: 2px;
    font-size: 0.66rem;
    font-weight: 400;
    color: var(--muted);
}

.hours-editor-row.is-salon-closed {
    background: #f4f1eb;
    opacity: 0.72;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.info-grid-stack {
    grid-template-columns: 1fr;
}

.info-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fbfaf7;
}

.info-tile .icon {
    color: var(--gold-dark);
}

.info-tile strong {
    font-size: 0.84rem;
    color: var(--ink);
}

.info-tile p {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--muted);
}

.info-tile code {
    padding: 1px 5px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
    font-size: 0.76rem;
    color: var(--text);
}

.info-tile .inline-link {
    color: var(--gold-dark);
    text-decoration: underline;
}

.info-tile.is-ok {
    border-color: #c3e6d2;
    background: #f3faf6;
}

.info-tile.is-ok .icon {
    color: var(--ok);
}

.info-tile.is-off {
    border-color: #f1c9c3;
    background: #fdf5f4;
}

.info-tile.is-off .icon {
    color: var(--danger);
}

.mail-log {
    max-height: 340px;
    margin: 0;
    padding: 14px 16px;
    overflow: auto;
    border-radius: 11px;
    background: #111114;
    color: #cfc9bd;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
    font-size: 0.72rem;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.barber-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fbfaf7;
}

.barber-profile-head > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.barber-profile-head strong {
    font-size: 0.95rem;
    color: var(--ink);
}

.barber-profile-head small {
    font-size: 0.75rem;
    color: var(--muted);
}

.admin-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.check-inline {
    margin: 8px 0 0;
    font-size: 0.76rem;
}

@media (max-width: 1080px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .barber-info-strip .btn {
        margin-left: 0;
    }

    .field-inline {
        flex-direction: column;
    }

    .interval-preview {
        width: 100%;
        min-width: 0;
    }
}
