/* =========================================================
   Güzellik Merkezi Otomasyonu
   Premium sol menü + responsive yönetim paneli
   ========================================================= */

:root {
    --sidebar-width: 278px;

    --background: #f5eff5;
    --surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.88);
    --surface-soft: #fbf8fb;

    --text: #24152f;
    --muted: #7c7282;
    --border: rgba(113, 70, 119, 0.15);

    --primary: #914a98;
    --primary-dark: #713777;
    --primary-light: #b76abb;
    --primary-soft: #f4e6f5;

    --success: #13b963;
    --success-dark: #0c914a;
    --success-soft: #e7f9ef;

    --warning: #efb319;
    --warning-soft: #fff6dc;

    --danger: #ef4d55;
    --danger-soft: #ffebec;

    --secondary: #6f7e9d;
    --secondary-dark: #596783;

    --cancelled: #9b97a2;
    --cancelled-soft: #efedf2;

    --shadow-sm: 0 8px 22px rgba(61, 31, 72, 0.07);
    --shadow-md: 0 15px 36px rgba(61, 31, 72, 0.10);
    --shadow-lg: 0 26px 70px rgba(61, 31, 72, 0.14);

    --radius-sm: 11px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
}

/* =========================================================
   Reset ve temel görünüm
   ========================================================= */

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

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

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background:
        radial-gradient(circle at 10% 8%, rgba(184, 102, 178, 0.15), transparent 28%),
        radial-gradient(circle at 91% 88%, rgba(91, 74, 142, 0.11), transparent 30%),
        radial-gradient(circle at 70% 5%, rgba(255, 255, 255, 0.94), transparent 22%),
        linear-gradient(135deg, #f8f2f7 0%, #f3edf5 48%, #eee9f2 100%);
    background-attachment: fixed;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(5px);
}

body::before {
    width: 340px;
    height: 340px;
    top: 18%;
    right: -170px;
    background: rgba(172, 92, 169, 0.09);
}

body::after {
    width: 280px;
    height: 280px;
    bottom: -120px;
    left: 28%;
    background: rgba(90, 72, 137, 0.07);
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   Masaüstü sol menü
   ========================================================= */

.sidebar {
    position: fixed;
    z-index: 120;
    inset: 18px auto 18px 18px;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    color: #fff;
    background:
        linear-gradient(165deg, rgba(55, 25, 66, 0.98), rgba(34, 20, 49, 0.99));
    box-shadow:
        0 28px 65px rgba(39, 19, 49, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar-decoration {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.sidebar-decoration-one {
    width: 210px;
    height: 210px;
    top: -95px;
    right: -95px;
    background: rgba(197, 94, 189, 0.20);
    filter: blur(2px);
}

.sidebar-decoration-two {
    width: 170px;
    height: 170px;
    bottom: 80px;
    left: -110px;
    background: rgba(124, 100, 192, 0.16);
}

.sidebar-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 24px 20px 20px;
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo,
.mobile-brand-logo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    background:
        linear-gradient(145deg, rgba(204, 103, 196, 0.92), rgba(129, 72, 151, 0.96));
    box-shadow:
        0 12px 28px rgba(192, 86, 181, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    font-weight: 950;
    letter-spacing: 0.02em;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 15px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.03em;
}

.sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    position: relative;
    flex: 0 0 38px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-close span {
    position: absolute;
    top: 18px;
    left: 10px;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
}

.sidebar-close span:first-child {
    transform: rotate(45deg);
}

.sidebar-close span:last-child {
    transform: rotate(-45deg);
}

.sidebar-section-label {
    position: relative;
    z-index: 2;
    padding: 7px 23px 9px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.18em;
}

.sidebar-nav {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    padding: 0 13px 18px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}

.sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 49px;
    padding: 10px 13px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 14px;
    font-weight: 760;
    transition:
        color 0.17s ease,
        background 0.17s ease,
        border-color 0.17s ease,
        transform 0.17s ease;
}

.sidebar-link::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: transparent;
}

.sidebar-link:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
}

.sidebar-link.is-active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.11);
    background:
        linear-gradient(90deg, rgba(196, 92, 187, 0.25), rgba(255, 255, 255, 0.08));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 10px 26px rgba(18, 8, 25, 0.16);
}

.sidebar-link.is-active::before {
    background: #d477ce;
    box-shadow: 0 0 12px rgba(212, 119, 206, 0.75);
}

.sidebar-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 11px;
    color: currentColor;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-link.is-active .sidebar-icon {
    background: rgba(255, 255, 255, 0.11);
}

.sidebar-icon svg,
.sidebar-logout svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-footer {
    position: relative;
    z-index: 2;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(14, 8, 22, 0.18);
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 8px 7px 13px;
}

.profile-avatar {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(171, 78, 166, 0.90), rgba(104, 63, 137, 0.92));
    font-size: 14px;
    font-weight: 900;
}

.profile-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.profile-copy strong,
.profile-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-copy strong {
    color: #fff;
    font-size: 13px;
}

.profile-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 10px;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 128, 135, 0.11);
    border-radius: 13px;
    color: #ffc7ca;
    background: rgba(239, 77, 85, 0.08);
    font-size: 12px;
    font-weight: 800;
    transition:
        color 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.sidebar-logout:hover {
    color: #fff;
    border-color: rgba(255, 128, 135, 0.19);
    background: rgba(239, 77, 85, 0.15);
}

.sidebar-logout svg {
    width: 17px;
    height: 17px;
}

/* =========================================================
   Mobil üst bar ve kaplama
   ========================================================= */

.mobile-topbar,
.sidebar-overlay {
    display: none;
}

.container {
    width: calc(100% - var(--sidebar-width) - 74px);
    max-width: 1500px;
    margin: 28px 28px 42px calc(var(--sidebar-width) + 46px);
}

/* =========================================================
   Genel başlık, buton ve uyarılar
   ========================================================= */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.page-header h1 {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.12;
    letter-spacing: -0.7px;
}

.page-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 17px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-weight: 850;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.btn-primary {
    background: linear-gradient(135deg, #a23eaa, var(--primary));
    box-shadow: 0 10px 22px rgba(145, 74, 152, 0.24);
}

.btn-success {
    background: linear-gradient(135deg, #08cf68, var(--success));
    box-shadow: 0 10px 22px rgba(19, 185, 99, 0.22);
}

.btn-secondary,
.btn-soft {
    background: linear-gradient(180deg, #7d8baa, var(--secondary));
    box-shadow: 0 9px 20px rgba(85, 101, 137, 0.20);
}

.btn-danger {
    background: linear-gradient(135deg, #f5676d, var(--danger));
    box-shadow: 0 9px 20px rgba(239, 77, 85, 0.20);
}

.btn-block {
    width: 100%;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 13px;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

.alert-success {
    color: #11643e;
    border-color: #bde8ce;
    background: #e8f8ef;
}

.alert-danger {
    color: #963239;
    border-color: #f3c0c3;
    background: #fdebed;
}

.alert-warning {
    color: #78570c;
    border-color: #f0dca0;
    background: #fff5d9;
}

/* =========================================================
   Giriş ve form alanları
   ========================================================= */

.auth-wrapper {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 24px 0;
}

.auth-card,
.form-card,
.stat-card,
.table-wrapper {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(252, 248, 252, 0.89));
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.auth-card {
    width: min(460px, 100%);
    padding: 30px;
}

.auth-card h1 {
    margin: 0 0 8px;
}

.auth-card p {
    color: var(--muted);
}

.auth-brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-light));
    box-shadow: 0 12px 25px rgba(125, 76, 120, 0.24);
    font-weight: 900;
}

label {
    display: block;
    margin: 14px 0 7px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(145, 74, 152, 0.12);
}

.form-card {
    padding: 22px;
}

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

.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.check-line input {
    width: auto;
    min-height: auto;
}

.compact-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.user-create-form {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.search-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* =========================================================
   Tablolar, detaylar ve istatistik
   ========================================================= */

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

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    color: #4d4054;
    background: rgba(249, 245, 249, 0.82);
    font-size: 13px;
    font-weight: 850;
}

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

tbody tr:hover {
    background: rgba(250, 245, 250, 0.75);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface-glass);
    box-shadow: var(--shadow-sm);
}

.detail-grid span {
    overflow-wrap: anywhere;
    color: var(--muted);
}

.stat-card {
    width: min(360px, 100%);
    padding: 20px;
    margin-bottom: 20px;
}

.stat-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.stat-card strong {
    font-size: 28px;
}

/* =========================================================
   Takvim üst kartı
   ========================================================= */

.calendar-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calendar-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-width: 0;
    padding: 26px 30px;
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.14);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 95% 0, rgba(175, 90, 169, 0.11), transparent 25%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(250, 244, 250, 0.90));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(17px);
}

.calendar-hero-left {
    min-width: 0;
}

.calendar-mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 13px;
    font-weight: 850;
}

.calendar-hero-left h1 {
    margin: 10px 0 8px;
    color: #28133a;
    font-size: clamp(31px, 3.2vw, 46px);
    line-height: 1.08;
    letter-spacing: -1px;
    white-space: nowrap;
}

.calendar-hero-left p {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: max-content;
    flex-wrap: nowrap;
}

/* =========================================================
   Takvim paneli ve durum etiketleri
   ========================================================= */

.calendar-panel {
    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.14);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 100% 0, rgba(174, 91, 168, 0.07), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(252, 248, 252, 0.91));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(17px);
}

.calendar-panel-head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.calendar-panel-head > div:first-child {
    min-width: 0;
}

.calendar-panel-head h2 {
    margin: 0 0 8px;
    color: #2c173d;
    font-size: clamp(25px, 2.5vw, 32px);
    line-height: 1.15;
}

.calendar-panel-head p {
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: max-content;
    flex-wrap: nowrap;
}

.legend-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.legend-pill::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
}

.legend-waiting {
    color: #8a6000;
    border-color: #f1d274;
    background: var(--warning-soft);
}

.legend-waiting::before {
    background: var(--warning);
}

.legend-arrived {
    color: #087742;
    border-color: #a8e7c5;
    background: var(--success-soft);
}

.legend-arrived::before {
    background: var(--success);
}

.legend-no-show {
    color: #bd3037;
    border-color: #ffb6ba;
    background: var(--danger-soft);
}

.legend-no-show::before {
    background: var(--danger);
}

.legend-cancelled {
    color: #6f6875;
    border-color: #d9d4df;
    background: var(--cancelled-soft);
}

.legend-cancelled::before {
    background: var(--cancelled);
}

.legend-completed {
    color: #087540;
    border-color: #afe2c5;
    background: #e8f8ef;
}

.legend-completed::before {
    background: #08aa59;
}

/* =========================================================
   Takvim kartları
   ========================================================= */

.calendar-board,
.calendar-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    min-width: 0;
}

.calendar-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    min-width: 0;
    min-height: 150px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(125, 76, 120, 0.15);
    border-radius: 19px;
    color: inherit;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.calendar-slot:hover {
    z-index: 2;
    transform: translateY(-4px);
    border-color: rgba(145, 74, 152, 0.30);
    box-shadow: 0 18px 36px rgba(65, 39, 76, 0.13);
}

.calendar-slot strong {
    font-size: 29px;
    line-height: 1;
    letter-spacing: -0.5px;
}

.slot-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.slot-state,
.slot-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #67717c;
    background: #f0f3f7;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.slot-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.slot-main {
    overflow: hidden;
    color: #21132f;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-sub {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-hint {
    margin-top: auto;
    color: var(--primary);
    font-weight: 800;
}

.slot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 5px;
}

.slot-meta span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 6px 9px;
    overflow: hidden;
    border-radius: 999px;
    color: #625668;
    background: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.is-empty {
    background: linear-gradient(180deg, #fff 0%, #fdfbfd 100%);
}

.empty-state {
    color: #66717d;
    background: #eef2f7;
}

.status-waiting {
    border-color: #f0ce70;
    background: linear-gradient(180deg, #fffaf0 0%, #fff2d2 100%);
}

.status-waiting .slot-state,
.status-waiting .slot-status {
    color: #8a6000;
    background: #ffe6a2;
}

.status-arrived {
    border-color: #8dd8ad;
    background: linear-gradient(180deg, #f4fdf8 0%, #def6e8 100%);
}

.status-arrived .slot-state,
.status-arrived .slot-status {
    color: #087342;
    background: #c7efd8;
}

.status-completed {
    border-color: #8bd2a8;
    background: linear-gradient(180deg, #f2fcf6 0%, #dff4e8 100%);
}

.status-completed .slot-state,
.status-completed .slot-status {
    color: #07683b;
    background: #c5ead4;
}

.status-no_show {
    border-color: #f0a3a8;
    background: linear-gradient(180deg, #fff7f7 0%, #fde2e4 100%);
}

.status-no_show .slot-state,
.status-no_show .slot-status {
    color: #b72f36;
    background: #fac8cb;
}

.status-cancelled {
    border-color: #d5d0da;
    background: linear-gradient(180deg, #f8f7f9 0%, #ebe8ee 100%);
}

.status-cancelled .slot-state,
.status-cancelled .slot-status {
    color: #665f6b;
    background: #dcd7e1;
}

/* =========================================================
   Tablet ve mobil
   ========================================================= */

@media (max-width: 1180px) {
    .sidebar {
        inset: 12px auto 12px 12px;
        width: min(320px, calc(100vw - 38px));
        transform: translateX(calc(-100% - 30px));
        transition: transform 0.24s ease;
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-overlay {
        position: fixed;
        z-index: 110;
        inset: 0;
        display: block;
        visibility: hidden;
        border: 0;
        opacity: 0;
        background: rgba(23, 13, 29, 0.50);
        backdrop-filter: blur(3px);
        transition:
            opacity 0.22s ease,
            visibility 0.22s ease;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        visibility: visible;
        opacity: 1;
    }

    .mobile-topbar {
        position: fixed;
        z-index: 100;
        top: 10px;
        right: 12px;
        left: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 64px;
        padding: 9px 11px 9px 13px;
        border: 1px solid rgba(125, 76, 120, 0.13);
        border-radius: 19px;
        background: rgba(255, 255, 255, 0.90);
        box-shadow: 0 14px 34px rgba(55, 29, 65, 0.13);
        backdrop-filter: blur(17px);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .mobile-brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 12px;
    }

    .mobile-brand > span:last-child {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-brand strong,
    .mobile-brand small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-brand strong {
        color: #34203f;
        font-size: 13px;
    }

    .mobile-brand small {
        margin-top: 2px;
        color: var(--muted);
        font-size: 10px;
    }

    .mobile-menu-button {
        width: 43px;
        height: 43px;
        display: flex;
        flex: 0 0 43px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-radius: 13px;
        background: linear-gradient(145deg, var(--primary), var(--primary-dark));
        box-shadow: 0 9px 20px rgba(145, 74, 152, 0.23);
    }

    .mobile-menu-button span {
        width: 19px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
    }

    .container {
        width: min(100% - 28px, 1500px);
        margin: 92px auto 32px;
    }

    .calendar-hero {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .calendar-hero-left p,
    .calendar-panel-head p {
        white-space: normal;
    }

    .calendar-hero-actions {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        min-width: 0;
    }

    .calendar-hero-actions .btn {
        width: 100%;
        min-width: 0;
        padding-inline: 11px;
    }

    .calendar-panel-head {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .status-legend {
        justify-content: flex-start;
        min-width: 0;
        flex-wrap: wrap;
    }

    .calendar-board,
    .calendar-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .compact-form,
    .user-create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .calendar-hero {
        padding: 22px;
        border-radius: 23px;
    }

    .calendar-panel {
        padding: 20px;
        border-radius: 23px;
    }

    .calendar-hero-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calendar-board,
    .calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .calendar-slot {
        min-height: 138px;
        padding: 16px;
    }

    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .container {
        width: min(100% - 18px, 1500px);
        margin: 88px auto 22px;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .header-actions {
        justify-content: flex-start;
    }

    .header-actions .btn,
    .page-header > .btn {
        flex: 1 1 46%;
    }

    .calendar-shell {
        gap: 16px;
    }

    .calendar-hero {
        padding: 19px;
        border-radius: 20px;
    }

    .calendar-mini-badge {
        min-height: 31px;
        padding: 6px 11px;
        font-size: 12px;
    }

    .calendar-hero-left h1 {
        margin-top: 9px;
        font-size: 29px;
        white-space: normal;
    }

    .calendar-hero-left p {
        font-size: 13px;
    }

    .calendar-hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .calendar-hero-actions .btn {
        min-height: 43px;
        padding: 10px 9px;
        font-size: 13px;
    }

    .calendar-panel {
        padding: 17px;
        border-radius: 20px;
    }

    .calendar-panel-head {
        gap: 15px;
        margin-bottom: 18px;
    }

    .calendar-panel-head h2 {
        font-size: 24px;
    }

    .calendar-panel-head p {
        font-size: 13px;
    }

    .legend-pill {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 11px;
    }

    .calendar-board,
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .calendar-slot {
        min-height: 128px;
        padding: 15px;
        border-radius: 16px;
    }

    .calendar-slot strong {
        font-size: 25px;
    }

    .slot-main {
        font-size: 19px;
    }

    .form-grid,
    .compact-form,
    .user-create-form,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .search-form {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .mobile-topbar {
        top: 7px;
        right: 8px;
        left: 8px;
        min-height: 60px;
        border-radius: 17px;
    }

    .mobile-brand-logo {
        width: 39px;
        height: 39px;
    }

    .mobile-brand strong {
        font-size: 12px;
    }

    .mobile-menu-button {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .auth-card {
        padding: 23px 18px;
        border-radius: 18px;
    }

    .calendar-hero-actions {
        grid-template-columns: 1fr;
    }

    .status-legend {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .legend-pill {
        justify-content: center;
        width: 100%;
    }

    .calendar-slot {
        min-height: 122px;
    }
}


/* =========================================================
   Tüm yönetim sayfaları için ortak premium oval yüzey
   Dashboard kendi özel iki panelini kullanmaya devam eder.
   ========================================================= */

.page-surface {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - 70px);
    padding: clamp(20px, 2.3vw, 30px);
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.14);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 100% 0, rgba(175, 90, 169, 0.09), transparent 24%),
        radial-gradient(circle at 0 100%, rgba(101, 78, 151, 0.05), transparent 22%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(251, 247, 251, 0.90));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(17px);
}

.page-surface::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 250px;
    height: 250px;
    top: -145px;
    right: -115px;
    border-radius: 50%;
    background: rgba(171, 88, 165, 0.08);
}

.page-surface::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 190px;
    height: 190px;
    bottom: -125px;
    left: -90px;
    border-radius: 50%;
    background: rgba(88, 70, 137, 0.05);
}

.page-surface > .page-header {
    position: relative;
    margin: -4px -4px 24px;
    padding: 5px 5px 23px;
    border-bottom: 1px solid rgba(124, 74, 130, 0.11);
}

.page-surface > .page-header h1 {
    color: #2b173c;
}

.page-surface .form-card,
.page-surface .table-wrapper,
.page-surface .stat-card,
.page-surface .detail-grid > div {
    border-color: rgba(124, 74, 130, 0.13);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(253, 250, 253, 0.91));
    box-shadow: 0 12px 30px rgba(61, 31, 72, 0.08);
}

.page-surface .search-form {
    padding: 14px;
    border: 1px solid rgba(124, 74, 130, 0.12);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.66);
}

/* =========================================================
   Profesyonel giriş ekranı
   ========================================================= */

.auth-body {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
    background:
        radial-gradient(circle at 12% 13%, rgba(191, 96, 184, 0.22), transparent 28%),
        radial-gradient(circle at 91% 87%, rgba(81, 66, 130, 0.16), transparent 30%),
        linear-gradient(135deg, #f8f1f7 0%, #eee8f2 52%, #e8e3ee 100%);
}

.auth-page-content {
    width: min(1240px, calc(100% - 42px));
    max-width: none;
    min-height: 100vh;
    display: grid;
    align-items: center;
    margin: 0 auto;
    padding: 28px 0;
}

.login-layout {
    width: 100%;
    min-height: min(720px, calc(100vh - 56px));
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(390px, 0.86fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.60);
    box-shadow:
        0 35px 90px rgba(52, 27, 62, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
}

.login-showcase {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    padding: clamp(34px, 5vw, 66px);
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(213, 105, 204, 0.32), transparent 29%),
        radial-gradient(circle at 3% 100%, rgba(120, 92, 189, 0.28), transparent 31%),
        linear-gradient(145deg, #3b1949 0%, #271331 55%, #1e1029 100%);
}

.login-showcase::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.19;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom right, #000, transparent 75%);
}

.login-showcase-decoration {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
}

.login-decoration-one {
    width: 330px;
    height: 330px;
    top: -170px;
    right: -125px;
    background: rgba(210, 105, 201, 0.20);
    box-shadow: 0 0 80px rgba(210, 105, 201, 0.12);
}

.login-decoration-two {
    width: 270px;
    height: 270px;
    bottom: -155px;
    left: -100px;
    background: rgba(119, 91, 182, 0.20);
}

.login-showcase-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    margin-bottom: clamp(45px, 8vh, 78px);
}

.login-brand-logo {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    flex: 0 0 54px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 17px;
    color: #fff;
    background: linear-gradient(145deg, #cd64c3, #874693);
    box-shadow:
        0 14px 34px rgba(202, 92, 191, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    font-size: 14px;
    font-weight: 950;
}

.login-brand > span:last-child {
    display: flex;
    flex-direction: column;
}

.login-brand strong {
    font-size: 16px;
    line-height: 1.2;
}

.login-brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.03em;
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #f1c3ed;
    background: rgba(255, 255, 255, 0.07);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.login-showcase h1 {
    max-width: 620px;
    margin: 19px 0 16px;
    color: #fff;
    font-size: clamp(39px, 5vw, 64px);
    line-height: 1.03;
    letter-spacing: -2px;
}

.login-showcase-content > p {
    max-width: 570px;
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.75;
}

.login-feature-list {
    display: grid;
    gap: 12px;
    margin-top: clamp(32px, 6vh, 55px);
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 590px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(9px);
}

.login-feature-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border-radius: 12px;
    color: #ecc0e8;
    background: rgba(210, 103, 199, 0.13);
}

.login-feature-icon svg,
.login-input-icon svg,
.password-toggle svg,
.login-submit svg,
.login-security-icon svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-feature > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.login-feature strong {
    color: #fff;
    font-size: 13px;
}

.login-feature small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 11px;
    line-height: 1.45;
}

.login-showcase-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding-top: 28px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.login-footer-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 68px);
    background:
        radial-gradient(circle at 100% 0, rgba(183, 102, 178, 0.09), transparent 31%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 250, 0.94));
}

.login-card-header {
    margin-bottom: 28px;
}

.login-card-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 11px;
    font-weight: 850;
}

.login-card-header h2 {
    margin: 16px 0 8px;
    color: #281639;
    font-size: clamp(29px, 3vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.8px;
}

.login-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.login-alert {
    margin-bottom: 20px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-field label {
    margin: 0 0 8px;
    color: #3c2a46;
    font-size: 13px;
}

.login-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.login-label-row > span {
    color: #a095a6;
    font-size: 10px;
    font-weight: 750;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 15px;
    display: grid;
    place-items: center;
    color: #9a8b9f;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input-wrap input {
    min-height: 56px;
    padding: 13px 49px 13px 47px;
    border: 1px solid rgba(117, 75, 122, 0.16);
    border-radius: 15px;
    color: #2e1d39;
    background: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 8px 22px rgba(59, 31, 68, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.login-input-wrap input::placeholder {
    color: #b0a6b3;
}

.login-input-wrap input:focus {
    border-color: rgba(145, 74, 152, 0.55);
    box-shadow:
        0 0 0 4px rgba(145, 74, 152, 0.10),
        0 10px 25px rgba(59, 31, 68, 0.06);
}

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 9px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    color: #8f8294;
    background: transparent;
    transform: translateY(-50%);
    transition:
        color 0.15s ease,
        background 0.15s ease;
}

.password-toggle:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.login-submit {
    justify-content: space-between;
    min-height: 57px;
    margin-top: 3px;
    padding: 13px 18px 13px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #a442aa, #73387b);
    box-shadow:
        0 16px 30px rgba(132, 61, 139, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.login-submit:hover {
    box-shadow:
        0 19px 34px rgba(132, 61, 139, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.login-submit svg {
    width: 20px;
    height: 20px;
}

.login-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 27px;
    padding-top: 22px;
    border-top: 1px solid rgba(119, 74, 124, 0.10);
    color: #958a99;
    font-size: 10px;
    line-height: 1.55;
}

.login-security-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    border-radius: 9px;
    color: var(--success-dark);
    background: var(--success-soft);
}

.login-security-icon svg {
    width: 15px;
    height: 15px;
}

@media (max-width: 980px) {
    .auth-page-content {
        width: min(100% - 28px, 760px);
        padding: 20px 0;
    }

    .login-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        border-radius: 28px;
    }

    .login-showcase {
        min-height: auto;
        padding: 32px;
    }

    .login-brand {
        margin-bottom: 34px;
    }

    .login-showcase h1 {
        max-width: 660px;
        font-size: clamp(37px, 8vw, 54px);
    }

    .login-feature-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 32px;
    }

    .login-feature {
        align-items: flex-start;
        padding: 13px;
    }

    .login-feature small {
        display: none;
    }

    .login-showcase-footer {
        padding-top: 25px;
    }

    .login-card {
        padding: 40px 34px;
    }
}

@media (max-width: 680px) {
    .page-surface {
        min-height: auto;
        padding: 17px;
        border-radius: 20px;
    }

    .page-surface > .page-header {
        margin: 0 0 20px;
        padding: 0 0 18px;
    }

    .auth-page-content {
        width: min(100% - 16px, 760px);
        padding: 8px 0;
    }

    .login-layout {
        border-radius: 22px;
    }

    .login-showcase {
        padding: 25px 21px;
    }

    .login-brand {
        margin-bottom: 28px;
    }

    .login-brand-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .login-eyebrow {
        font-size: 9px;
    }

    .login-showcase h1 {
        margin-top: 15px;
        font-size: 35px;
        letter-spacing: -1.3px;
    }

    .login-showcase-content > p {
        font-size: 13px;
    }

    .login-feature-list {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }

    .login-feature {
        align-items: center;
    }

    .login-feature small {
        display: block;
    }

    .login-showcase-footer {
        display: none;
    }

    .login-card {
        padding: 30px 21px;
    }

    .login-card-header {
        margin-bottom: 23px;
    }

    .login-card-header h2 {
        font-size: 29px;
    }

    .login-input-wrap input {
        min-height: 54px;
    }
}

@media (max-width: 410px) {
    .login-showcase h1 {
        font-size: 31px;
    }

    .login-showcase-content > p {
        line-height: 1.65;
    }

    .login-feature:nth-child(3) {
        display: none;
    }

    .login-card {
        padding: 27px 17px;
    }
}

/* =========================================================
   V3: müşteri-hizmet akışı ve gelişmiş formlar
   ========================================================= */

[hidden] {
    display: none !important;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    margin-bottom: 9px;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.field-help {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.form-section {
    padding: 0 0 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(124, 74, 130, 0.11);
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
}

.form-section-heading > span {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    box-shadow: 0 9px 20px rgba(145, 74, 152, 0.20);
    font-size: 13px;
    font-weight: 900;
}

.form-section-heading h2,
.section-block-header h2 {
    margin: 0 0 5px;
    color: #301940;
    font-size: 20px;
    line-height: 1.2;
}

.form-section-heading p,
.section-block-header p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.compact-heading {
    margin-bottom: 17px;
}

.compact-heading > span {
    width: 35px;
    height: 35px;
    flex-basis: 35px;
}

.form-grid-tight {
    gap: 10px;
}

.field-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.field-title-row label {
    margin-bottom: 2px;
}

.service-multi-select {
    position: relative;
    margin-top: 10px;
}

.service-multi-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid rgba(124, 74, 130, 0.17);
    border-radius: 13px;
    color: #756a7a;
    background: rgba(255, 255, 255, 0.94);
    text-align: left;
    font-weight: 750;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        color 0.16s ease;
}

.service-multi-select.has-selection .service-multi-toggle {
    color: #35213f;
}

.service-multi-select.is-open .service-multi-toggle {
    border-color: rgba(145, 74, 152, 0.55);
    box-shadow: 0 0 0 3px rgba(145, 74, 152, 0.10);
}

.service-multi-select.has-error .service-multi-toggle {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239, 77, 85, 0.09);
}

.service-multi-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.16s ease;
}

.service-multi-select.is-open .service-multi-chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.service-multi-panel {
    margin-top: 9px;
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.15);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 38px rgba(61, 31, 72, 0.12);
}

.service-multi-options {
    max-height: 320px;
    padding: 7px;
    overflow-y: auto;
}

.service-multi-option {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 11px 12px;
    border-radius: 11px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.service-multi-option:hover {
    background: #faf4fa;
}

.service-multi-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.service-multi-check {
    width: 21px;
    height: 21px;
    position: relative;
    flex: 0 0 21px;
    margin-top: 1px;
    border: 1px solid rgba(124, 74, 130, 0.28);
    border-radius: 7px;
    background: #fff;
}

.service-multi-option input:checked + .service-multi-check {
    border-color: var(--primary);
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
}

.service-multi-option input:checked + .service-multi-check::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 4px;
    top: 6px;
    left: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.service-multi-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.service-multi-copy strong {
    color: #34203f;
    font-size: 13px;
    line-height: 1.3;
}

.service-multi-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.service-multi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid rgba(124, 74, 130, 0.10);
    color: var(--muted);
    background: #fbf8fb;
    font-size: 11px;
    font-weight: 750;
}

.service-multi-footer button {
    min-height: 33px;
    padding: 7px 12px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-size: 11px;
    font-weight: 850;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: var(--danger);
    font-size: 11px;
    font-weight: 750;
}

.money-input {
    position: relative;
}

.money-input input {
    padding-right: 50px;
}

.money-input > span {
    position: absolute;
    top: 50%;
    right: 13px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    transform: translateY(-50%);
    pointer-events: none;
}

.consent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 19px;
}

.compact-consent-grid {
    margin-top: 16px;
}

.consent-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid rgba(124, 74, 130, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    cursor: pointer;
}

.consent-card input {
    width: 18px;
    height: 18px;
    min-height: auto;
    flex: 0 0 18px;
    margin: 1px 0 0;
    accent-color: var(--primary);
}

.consent-card > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.consent-card strong {
    color: #3a2844;
    font-size: 12px;
}

.consent-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.existing-customer-notice {
    padding: 13px 15px;
    border: 1px solid #efd47d;
    border-radius: 13px;
    color: #75530b;
    background: #fff7db;
    font-size: 12px;
    line-height: 1.55;
}

.existing-customer-notice a {
    color: var(--primary-dark);
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.customer-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 23px;
}

.mode-option {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.mode-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.mode-option > span {
    display: flex;
    flex-direction: column;
    min-height: 82px;
    padding: 16px;
    border: 1px solid rgba(124, 74, 130, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.69);
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease,
        transform 0.16s ease;
}

.mode-option:hover > span {
    transform: translateY(-2px);
    border-color: rgba(145, 74, 152, 0.27);
}

.mode-option input:checked + span {
    border-color: rgba(145, 74, 152, 0.42);
    background: linear-gradient(145deg, var(--primary-soft), rgba(255, 255, 255, 0.91));
    box-shadow: 0 12px 28px rgba(126, 58, 133, 0.11);
}

.mode-option strong {
    color: #34203f;
    font-size: 14px;
}

.mode-option small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.appointment-customer-panel {
    margin-bottom: 25px;
    padding: 19px;
    border: 1px solid rgba(124, 74, 130, 0.11);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.53);
}

.section-block {
    margin-top: 24px;
}

.section-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.72fr);
    align-items: start;
    gap: 20px;
}

.sticky-form-card {
    position: sticky;
    top: 28px;
}

.section-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(124, 74, 130, 0.13);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(253, 250, 253, 0.91));
    box-shadow: 0 12px 30px rgba(61, 31, 72, 0.08);
}

.table-wrapper-flat {
    border: 0;
    border-radius: 14px;
    box-shadow: none;
}

.table-wrap-cell {
    max-width: 330px;
    white-space: normal;
    line-height: 1.45;
}

.table-subtext {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.table-pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.table-pill-primary {
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.table-pill-success,
.table-pill-completed {
    color: #087342;
    background: var(--success-soft);
}

.table-pill-planned {
    color: #8a6000;
    background: var(--warning-soft);
}

.table-pill-active {
    color: #315f9b;
    background: #e8f1ff;
}

.table-pill-cancelled,
.table-pill-muted {
    color: #706875;
    background: var(--cancelled-soft);
}

.table-action-link {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 6px 10px;
    border: 1px solid rgba(145, 74, 152, 0.16);
    border-radius: 10px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.table-action-link:hover {
    border-color: rgba(145, 74, 152, 0.32);
}

.continuation-slot {
    opacity: 0.90;
}

.continuation-slot::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: currentColor;
    opacity: 0.15;
}

@media (max-width: 1180px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .sticky-form-card {
        position: static;
    }
}

@media (max-width: 780px) {
    .customer-mode-switch,
    .consent-grid {
        grid-template-columns: 1fr;
    }

    .section-block-header {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .form-section-heading {
        gap: 10px;
    }

    .form-section-heading > span {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .appointment-customer-panel,
    .section-card {
        padding: 14px;
        border-radius: 15px;
    }

    .mode-option > span {
        min-height: 74px;
        padding: 14px;
    }
}


@media (max-width: 680px) {
    .service-multi-options {
        max-height: 270px;
    }

    .service-multi-footer {
        position: sticky;
        bottom: 0;
    }
}

/* =========================================================
   V3.2 — Premium tekli açılır listeler
   ========================================================= */

.premium-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

.premium-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.premium-select-toggle {
    width: 100%;
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid rgba(124, 74, 130, 0.16);
    border-radius: 12px;
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 250, 0.93));
    box-shadow:
        0 7px 18px rgba(57, 31, 66, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-weight: 760;
    text-align: left;
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.premium-select-toggle:hover {
    border-color: rgba(145, 74, 152, 0.30);
}

.premium-select-toggle:focus-visible,
.premium-select.is-open .premium-select-toggle {
    outline: none;
    border-color: rgba(145, 74, 152, 0.58);
    box-shadow:
        0 0 0 4px rgba(145, 74, 152, 0.10),
        0 10px 24px rgba(57, 31, 66, 0.07);
}

.premium-select-toggle.is-placeholder {
    color: #9b919f;
    font-weight: 680;
}

.premium-select-toggle:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.premium-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.premium-select-chevron,
.service-multi-chevron {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    opacity: 0.65;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
}

.premium-select.is-open .premium-select-chevron,
.service-multi-select.is-open .service-multi-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.premium-select-panel {
    position: absolute;
    z-index: 360;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: min(360px, 52vh);
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.16);
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0, rgba(176, 91, 170, 0.08), transparent 26%),
        rgba(255, 255, 255, 0.985);
    box-shadow:
        0 22px 55px rgba(49, 24, 58, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
    backdrop-filter: blur(18px);
}

.premium-select-panel[hidden] {
    display: none !important;
}

.premium-select-search-wrap {
    padding: 10px 10px 7px;
    border-bottom: 1px solid rgba(124, 74, 130, 0.09);
}

.premium-select-search-wrap[hidden] {
    display: none;
}

.premium-select-search {
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 10px;
    background: #faf7fa;
}

.premium-select-options {
    max-height: min(290px, 42vh);
    padding: 7px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(145, 74, 152, 0.28) transparent;
}

.premium-select-option {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #4a3952;
    background: transparent;
    font-size: 13px;
    font-weight: 720;
    text-align: left;
    transition:
        color 0.14s ease,
        border-color 0.14s ease,
        background 0.14s ease,
        transform 0.14s ease;
}

.premium-select-option:hover,
.premium-select-option:focus-visible {
    outline: none;
    color: var(--primary-dark);
    border-color: rgba(145, 74, 152, 0.10);
    background: var(--primary-soft);
    transform: translateX(2px);
}

.premium-select-option.is-selected {
    position: relative;
    padding-right: 35px;
    color: #fff;
    border-color: rgba(113, 55, 119, 0.20);
    background: linear-gradient(135deg, #a24aa7, #75397c);
    box-shadow: 0 8px 18px rgba(128, 59, 135, 0.18);
}

.premium-select-option.is-selected::after {
    content: "✓";
    position: absolute;
    right: 13px;
    color: #fff;
    font-size: 14px;
    font-weight: 950;
}

.premium-select-option.is-placeholder-option {
    color: #988e9c;
}

.premium-select-option:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.premium-select-empty {
    padding: 18px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* Çoklu hizmet seçimi ile tekli liste aynı tasarım dilinde. */
.service-multi-toggle {
    min-height: 47px;
    padding: 11px 14px;
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 250, 0.93));
    box-shadow:
        0 7px 18px rgba(57, 31, 66, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.service-multi-panel {
    z-index: 370;
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0, rgba(176, 91, 170, 0.08), transparent 26%),
        rgba(255, 255, 255, 0.985);
    box-shadow:
        0 22px 55px rgba(49, 24, 58, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

/* =========================================================
   V3.2 — Kullanıcı şifre modalı
   ========================================================= */

body.modal-open {
    overflow: hidden;
}

.app-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.app-modal[hidden] {
    display: none !important;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(29, 15, 36, 0.58);
    backdrop-filter: blur(5px);
}

.app-modal-card {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    padding: 25px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(177, 91, 171, 0.10), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(249, 245, 249, 0.97));
    box-shadow: 0 32px 80px rgba(31, 14, 39, 0.28);
}

.app-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(124, 74, 130, 0.11);
}

.app-modal-header h2 {
    margin: 7px 0 6px;
    color: #2d193d;
    font-size: 25px;
}

.app-modal-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.app-modal-close {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border: 1px solid rgba(124, 74, 130, 0.12);
    border-radius: 12px;
    color: #76687b;
    background: rgba(255, 255, 255, 0.70);
    font-size: 25px;
    line-height: 1;
}

.btn-small {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 11px;
}

.table-pill-active {
    color: #087342;
    border-color: #a8e7c5;
    background: var(--success-soft);
}

.table-pill-inactive {
    color: #6f6875;
    border-color: #d9d4df;
    background: var(--cancelled-soft);
}

/* =========================================================
   V3.2 — Tablet ve mobilde tablolar kaydırma yerine kart olur
   ========================================================= */

@media (max-width: 1180px) {
    .table-wrapper {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent !important;
        box-shadow: none !important;
    }

    .responsive-card-table,
    .responsive-card-table tbody {
        display: block;
        width: 100%;
    }

    .responsive-card-table thead {
        display: none;
    }

    .responsive-card-table tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .responsive-card-table tbody tr {
        min-width: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        border: 1px solid rgba(124, 74, 130, 0.14);
        border-radius: 18px;
        background:
            radial-gradient(circle at 100% 0, rgba(177, 91, 171, 0.065), transparent 28%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(251, 247, 251, 0.93));
        box-shadow: 0 12px 28px rgba(61, 31, 72, 0.08);
    }

    .responsive-card-table tbody tr:hover {
        background:
            radial-gradient(circle at 100% 0, rgba(177, 91, 171, 0.09), transparent 28%),
            linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(250, 245, 250, 0.96));
    }

    .responsive-card-table tbody td {
        width: 100%;
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(112px, 0.82fr) minmax(0, 1.18fr);
        align-items: center;
        gap: 12px;
        padding: 11px 14px;
        border: 0;
        border-bottom: 1px solid rgba(124, 74, 130, 0.085);
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .responsive-card-table tbody td:last-child {
        border-bottom: 0;
    }

    .responsive-card-table tbody td::before {
        content: attr(data-label);
        color: #8a7d8f;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.055em;
        text-transform: uppercase;
    }

    .responsive-card-table tbody td[data-label=""]::before {
        display: none;
    }

    .responsive-card-table .responsive-empty-row {
        grid-column: 1 / -1;
    }

    .responsive-card-table .responsive-empty-row td {
        display: block;
        padding: 22px;
        color: var(--muted);
        text-align: center;
    }

    .responsive-card-table .btn {
        width: 100%;
    }

    .table-subtext {
        display: block;
        margin-top: 3px;
    }

    .premium-select-panel,
    .service-multi-panel {
        max-height: min(390px, 58vh);
    }
}

@media (max-width: 680px) {
    .responsive-card-table tbody {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .responsive-card-table tbody td {
        grid-template-columns: minmax(95px, 0.75fr) minmax(0, 1.25fr);
        gap: 10px;
        padding: 10px 12px;
    }

    .premium-select-panel,
    .service-multi-panel {
        position: fixed;
        z-index: 1200;
        top: auto;
        right: 8px;
        bottom: 8px;
        left: 8px;
        max-height: min(70vh, 520px);
        border-radius: 22px;
        box-shadow: 0 28px 80px rgba(31, 14, 39, 0.30);
    }

    .premium-select-options,
    .service-multi-options {
        max-height: min(54vh, 410px);
    }

    .app-modal {
        align-items: end;
        padding: 8px;
    }

    .app-modal-card {
        width: 100%;
        max-height: 88vh;
        padding: 20px 17px;
        border-radius: 22px;
    }
}

/* =========================================================
   V3.3 — Sabit takvim, çalışma saatleri ve akıllı dropdown
   ========================================================= */

.form-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-heading-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

.calendar-heading-row h2 {
    margin-bottom: 0;
}

.calendar-working-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid #abe4c4;
    border-radius: 999px;
    color: #087342;
    background: var(--success-soft);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.calendar-working-badge.is-closed {
    color: #756d7a;
    border-color: #d8d2dd;
    background: var(--cancelled-soft);
}

.is-closed-slot {
    cursor: not-allowed;
    border-color: rgba(129, 119, 135, 0.16);
    background:
        repeating-linear-gradient(
            135deg,
            rgba(248, 246, 249, 0.97),
            rgba(248, 246, 249, 0.97) 12px,
            rgba(242, 239, 244, 0.97) 12px,
            rgba(242, 239, 244, 0.97) 24px
        );
    box-shadow: none;
    opacity: 0.78;
}

.is-closed-slot:hover {
    z-index: 1;
    transform: none;
    border-color: rgba(129, 119, 135, 0.16);
    box-shadow: none;
}

.is-closed-slot .slot-top strong,
.is-closed-slot .slot-main {
    color: #706977;
}

.is-closed-slot .slot-sub {
    color: #98909c;
}

.closed-state {
    color: #716a76;
    background: #e5e1e8;
}

/* Dropdown artık ekranın dibinde açılmaz; alanın hemen altında veya üstünde konumlanır. */
.premium-select-panel,
.service-multi-panel {
    position: fixed;
    z-index: 1250;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 0;
    transform-origin: top center;
    animation: premiumSelectIn 0.14s ease-out;
}

.premium-select.opens-upward .premium-select-panel,
.service-multi-select.opens-upward .service-multi-panel {
    transform-origin: bottom center;
}

@keyframes premiumSelectIn {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.992);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.premium-select-search-wrap[hidden] {
    display: none !important;
}

/* =========================================================
   Çalışma saatleri ayar ekranı
   ========================================================= */

.working-hours-info {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border: 1px solid rgba(145, 74, 152, 0.14);
    border-radius: 17px;
    color: #58455f;
    background:
        radial-gradient(circle at 100% 0, rgba(174, 91, 168, 0.08), transparent 28%),
        rgba(255, 255, 255, 0.72);
}

.working-hours-info-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 900;
}

.working-hours-info strong {
    color: #35213f;
    font-size: 13px;
}

.working-hours-info p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.working-hours-form {
    padding: 20px;
}

.working-hours-list {
    display: grid;
    gap: 11px;
}

.working-day-card {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto minmax(145px, 0.65fr) auto minmax(145px, 0.65fr);
    align-items: end;
    gap: 15px;
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid rgba(124, 74, 130, 0.13);
    border-radius: 17px;
    background:
        radial-gradient(circle at 100% 0, rgba(177, 91, 171, 0.055), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(251, 247, 251, 0.93));
    box-shadow: 0 10px 24px rgba(61, 31, 72, 0.06);
    transition:
        opacity 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.working-day-card.is-closed {
    border-color: rgba(130, 123, 134, 0.14);
    background: linear-gradient(145deg, rgba(248, 247, 249, 0.94), rgba(241, 239, 243, 0.90));
}

.working-day-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    align-self: center;
}

.working-day-number {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #a54aaa, #73397a);
    box-shadow: 0 9px 20px rgba(132, 61, 139, 0.18);
    font-size: 12px;
    font-weight: 900;
}

.working-day-card.is-closed .working-day-number {
    background: linear-gradient(145deg, #aaa4ae, #817984);
    box-shadow: none;
}

.working-day-title > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.working-day-title strong {
    color: #33203e;
    font-size: 14px;
}

.working-day-title small {
    margin-top: 3px;
    color: #189657;
    font-size: 10px;
    font-weight: 760;
}

.working-day-card.is-closed .working-day-title small {
    color: #8e8792;
}

.working-day-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin: 0;
    color: #675b6c;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.working-day-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.working-day-switch-track {
    position: relative;
    width: 43px;
    height: 24px;
    flex: 0 0 43px;
    border-radius: 999px;
    background: #c9c3cc;
    transition: background 0.16s ease;
}

.working-day-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(52, 30, 59, 0.20);
    transition: transform 0.16s ease;
}

.working-day-switch input:checked + .working-day-switch-track {
    background: linear-gradient(135deg, #22c974, #0ca958);
}

.working-day-switch input:checked + .working-day-switch-track::after {
    transform: translateX(19px);
}

.working-day-switch input:focus-visible + .working-day-switch-track {
    box-shadow: 0 0 0 4px rgba(19, 185, 99, 0.12);
}

.working-day-time label {
    margin: 0 0 6px;
    color: #86798b;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.working-day-time input {
    min-height: 43px;
}

.working-day-time input:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    background: #ebe8ed;
}

.working-day-separator {
    align-self: center;
    padding-bottom: 12px;
    color: #b0a7b3;
    font-weight: 850;
}

/* =========================================================
   Randevu çalışma saati bilgilendirmesi
   ========================================================= */

.appointment-hours-notice {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 11px 14px;
    border: 1px solid rgba(124, 74, 130, 0.12);
    border-radius: 13px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    line-height: 1.5;
}

.appointment-hours-notice.is-open {
    color: #176b45;
    border-color: #b8e6cb;
    background: #ecf9f2;
}

.appointment-hours-notice.is-closed,
.appointment-hours-notice.has-error {
    color: #a33a40;
    border-color: #f1bec1;
    background: #fff0f1;
}

@media (max-width: 1100px) {
    .form-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .working-day-card {
        grid-template-columns: minmax(180px, 1fr) auto minmax(130px, 0.65fr) auto minmax(130px, 0.65fr);
        gap: 11px;
    }
}

@media (max-width: 820px) {
    .working-day-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .working-day-time {
        min-width: 0;
    }

    .working-day-time:first-of-type {
        grid-column: 1;
    }

    .working-day-separator {
        display: none;
    }

    .working-day-time:last-child {
        grid-column: 2;
    }

    .working-day-time input {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .form-grid-three {
        grid-template-columns: 1fr;
    }

    .premium-select-panel,
    .service-multi-panel {
        position: fixed;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        max-height: min(390px, 62vh);
        border-radius: 17px;
        box-shadow: 0 22px 55px rgba(49, 24, 58, 0.22);
    }

    .premium-select-options,
    .service-multi-options {
        max-height: min(300px, 48vh);
    }

    .calendar-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .calendar-working-badge {
        white-space: normal;
    }

    .working-hours-form {
        padding: 14px;
    }

    .working-hours-info {
        padding: 14px;
    }

    .working-day-card {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 14px;
    }

    .working-day-time {
        grid-column: auto !important;
    }

    .working-day-time:nth-of-type(1) {
        grid-column: 1;
    }

    .working-day-time:last-child {
        grid-column: 2;
    }
}

@media (max-width: 430px) {
    .working-day-card {
        grid-template-columns: 1fr;
    }

    .working-day-switch {
        justify-self: start;
    }

    .working-day-time,
    .working-day-time:nth-of-type(1),
    .working-day-time:last-child {
        grid-column: 1 !important;
        width: 100%;
    }
}

.working-day-card.is-closed .working-day-time input {
    cursor: not-allowed;
    opacity: 0.52;
    background: #ebe8ed;
}


/* V3.3.1 - Çalışma saati seçimleri */
.working-day-time {
    min-width: 0;
}

.working-day-time .premium-select {
    width: 100%;
}

.working-day-time .premium-select-toggle {
    width: 100%;
    min-height: 43px;
    padding-block: 10px;
    background: rgba(255, 255, 255, 0.94);
}

.working-day-time .premium-select-value {
    font-variant-numeric: tabular-nums;
}

.working-day-card.is-closed .working-day-time .premium-select-toggle,
.working-day-time .premium-select.is-soft-disabled .premium-select-toggle {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.52;
    background: #ebe8ed;
}

.working-day-time .premium-select-options {
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   V3.4 — Düzenleme ve yalnızca admin silme işlemleri
   ========================================================= */

.table-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.table-action-link {
    cursor: pointer;
    appearance: none;
}

.table-action-link-edit {
    color: #315f9b;
    border-color: rgba(49, 95, 155, 0.17);
    background: #eaf2ff;
}

.table-action-link-edit:hover {
    color: #214f8c;
    border-color: rgba(49, 95, 155, 0.32);
    background: #dfebff;
}

.table-action-link-danger {
    color: #b52f38;
    border-color: rgba(239, 77, 85, 0.18);
    background: var(--danger-soft);
}

.table-action-link-danger:hover {
    color: #98232b;
    border-color: rgba(239, 77, 85, 0.34);
    background: #ffdddf;
}

.form-card-narrow {
    width: min(820px, 100%);
}

.readonly-value {
    min-height: 45px;
    display: flex;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid rgba(124, 74, 130, 0.12);
    border-radius: var(--radius-sm);
    color: #44324d;
    background: #f7f3f8;
    font-weight: 850;
}

.status-switch-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid rgba(124, 74, 130, 0.13);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
}

.status-switch-card input {
    width: 20px;
    min-height: 20px;
    flex: 0 0 20px;
    accent-color: var(--primary);
}

.status-switch-card > span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.status-switch-card strong {
    color: #3b2946;
    font-size: 13px;
}

.status-switch-card small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.status-switch-danger input {
    accent-color: var(--danger);
}

.room-create-form {
    grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.8fr) auto;
}

.revenue-stat-card small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 10px;
}

@media (max-width: 1180px) {
    .room-create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .room-create-form .btn {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .responsive-card-table td[data-label="İşlemler"] .table-actions,
    .responsive-card-table td[data-label="İşlem"] .table-actions {
        justify-content: flex-end;
    }

    .responsive-card-table td[data-label="İşlemler"] .table-action-link,
    .responsive-card-table td[data-label="İşlem"] .table-action-link {
        min-height: 36px;
        padding: 8px 11px;
        font-size: 11px;
    }

    .room-create-form {
        grid-template-columns: 1fr;
    }

    .room-create-form .btn {
        grid-column: auto;
        width: 100%;
    }
}


/* V3.6 - Çalışma saatine göre randevu saati dropdownu */
select[data-appointment-time] + .premium-select .premium-select-value {
    font-variant-numeric: tabular-nums;
}

select[data-appointment-time] + .premium-select .premium-select-option {
    font-variant-numeric: tabular-nums;
}


/* V3.7 - 50 TL ücret stepperi ve görünür form hatası */
.price-stepper {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    align-items: stretch;
    gap: 8px;
}

.price-stepper-button {
    min-height: 45px;
    border: 1px solid rgba(124, 74, 130, 0.16);
    border-radius: 12px;
    color: var(--primary-dark);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 234, 246, 0.92));
    box-shadow: 0 8px 18px rgba(62, 34, 72, 0.07);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease;
}

.price-stepper-button:hover {
    transform: translateY(-1px);
    border-color: rgba(145, 74, 152, 0.35);
    background: var(--primary-soft);
}

.price-stepper-input {
    min-width: 0;
}

.price-stepper-input input {
    min-height: 45px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    text-align: center;
}

.appointment-form-error {
    margin-bottom: 20px;
}

.btn.is-loading {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

@media (max-width: 430px) {
    .price-stepper {
        grid-template-columns: 43px minmax(0, 1fr) 43px;
        gap: 6px;
    }

    .price-stepper-button {
        min-height: 43px;
        padding: 0;
    }
}


/* =========================================================
   V3.9 - 30 dakikalık zaman çizelgesi
   ========================================================= */

.calendar-timeline {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.calendar-time-row {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 13px;
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(124, 74, 130, 0.12);
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(251, 247, 251, 0.84));
    box-shadow: 0 8px 22px rgba(62, 34, 72, 0.055);
}

.calendar-time-row.has-appointments {
    border-color: rgba(145, 74, 152, 0.18);
    background:
        radial-gradient(circle at 100% 0, rgba(166, 82, 163, 0.06), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(251, 247, 251, 0.88));
}

.calendar-time-column {
    min-width: 0;
}

.calendar-time-button {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 10px;
    border: 1px solid rgba(145, 74, 152, 0.17);
    border-radius: 15px;
    color: var(--primary-dark);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 232, 246, 0.94));
    box-shadow:
        0 9px 22px rgba(78, 38, 85, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.calendar-time-button:hover {
    transform: translateY(-2px);
    border-color: rgba(145, 74, 152, 0.38);
    box-shadow:
        0 13px 27px rgba(78, 38, 85, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.calendar-time-button strong {
    font-size: 25px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.6px;
}

.calendar-time-button span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 25px;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(145, 74, 152, 0.09);
    font-size: 10px;
    font-weight: 900;
}

.calendar-time-button.is-disabled {
    cursor: not-allowed;
    color: #817984;
    border-color: rgba(120, 111, 126, 0.14);
    background:
        repeating-linear-gradient(
            135deg,
            rgba(247, 245, 248, 0.96),
            rgba(247, 245, 248, 0.96) 10px,
            rgba(240, 237, 242, 0.96) 10px,
            rgba(240, 237, 242, 0.96) 20px
        );
    box-shadow: none;
}

.calendar-time-button.is-disabled:hover {
    transform: none;
}

.calendar-time-button.is-disabled span {
    color: #7c747f;
    background: #e5e1e8;
}

.calendar-time-content {
    min-width: 0;
}

.calendar-time-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 1px 2px 9px;
}

.calendar-time-summary > span {
    color: #32203f;
    font-size: 12px;
    font-weight: 900;
}

.calendar-time-summary small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.calendar-appointment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 10px;
    min-width: 0;
}

.calendar-appointment-card {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.14);
    border-radius: 15px;
    color: inherit;
    box-shadow: 0 8px 18px rgba(62, 34, 72, 0.07);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.calendar-appointment-card:hover {
    z-index: 2;
    transform: translateY(-2px);
    border-color: rgba(145, 74, 152, 0.28);
    box-shadow: 0 13px 25px rgba(62, 34, 72, 0.11);
}

.calendar-appointment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.calendar-appointment-head > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.calendar-appointment-head strong {
    overflow: hidden;
    color: #281837;
    font-size: 16px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointment-time-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #66586c;
    background: rgba(255, 255, 255, 0.64);
    font-size: 9px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.calendar-appointment-service {
    overflow: hidden;
    color: #6e6174;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-empty-time,
.calendar-closed-time {
    min-height: 93px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px dashed rgba(124, 74, 130, 0.20);
    border-radius: 15px;
}

.calendar-empty-time {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.56);
    transition:
        border-color 0.16s ease,
        background 0.16s ease;
}

.calendar-empty-time:hover {
    border-color: rgba(145, 74, 152, 0.38);
    background: var(--primary-soft);
}

.calendar-empty-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 17px rgba(145, 74, 152, 0.20);
    font-size: 21px;
    font-weight: 900;
}

.calendar-empty-time > span:last-child,
.calendar-closed-time {
    min-width: 0;
}

.calendar-empty-time strong,
.calendar-empty-time small {
    display: block;
}

.calendar-empty-time strong {
    font-size: 13px;
}

.calendar-empty-time small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.calendar-closed-time {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #7f7783;
    border-color: rgba(120, 111, 126, 0.13);
    background: rgba(239, 236, 241, 0.65);
}

.calendar-closed-time strong {
    font-size: 12px;
}

.calendar-closed-time span {
    font-size: 10px;
}

/* =========================================================
   V3.9 - Ücret ve tahsilat kontrolü
   ========================================================= */

.price-stepper {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    align-items: stretch;
    gap: 7px;
    padding: 5px;
    border: 1px solid rgba(124, 74, 130, 0.15);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 238, 247, 0.92));
    box-shadow:
        0 10px 24px rgba(62, 34, 72, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.price-stepper-payment {
    border-color: rgba(23, 166, 91, 0.19);
    background:
        radial-gradient(circle at 100% 0, rgba(27, 185, 104, 0.08), transparent 36%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 243, 0.93));
}

.price-stepper-button {
    width: 48px;
    min-width: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(124, 74, 130, 0.16);
    border-radius: 13px;
    appearance: none;
    -webkit-appearance: none;
    color: var(--primary-dark);
    background:
        linear-gradient(145deg, #ffffff 0%, #eee1f0 100%);
    box-shadow:
        0 7px 16px rgba(63, 32, 72, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
    touch-action: manipulation;
    user-select: none;
}

.price-stepper-button[data-price-increase] {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #ad4db2, #73387b);
    box-shadow:
        0 9px 20px rgba(132, 61, 139, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.price-stepper-payment .price-stepper-button[data-price-increase] {
    background: linear-gradient(135deg, #1dc773, #128a50);
    box-shadow:
        0 9px 20px rgba(19, 164, 92, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.17);
}

.price-stepper-button:hover:not(:disabled) {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.price-stepper-button:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
}

.price-stepper-button:disabled {
    cursor: not-allowed;
    opacity: 0.38;
    transform: none;
    filter: grayscale(0.35);
    box-shadow: none;
}

.price-stepper-input {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: stretch;
}

.price-stepper-input input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 42px 10px 12px;
    border: 0 !important;
    border-radius: 12px;
    outline: 0;
    color: #2c1c37;
    background: rgba(255, 255, 255, 0.84);
    box-shadow:
        inset 0 0 0 1px rgba(124, 74, 130, 0.10),
        inset 0 2px 6px rgba(67, 37, 75, 0.035);
    font-size: 17px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.price-stepper-payment .price-stepper-input input {
    box-shadow:
        inset 0 0 0 1px rgba(22, 157, 83, 0.13),
        inset 0 2px 6px rgba(25, 107, 67, 0.035);
}

.price-stepper-input input:focus {
    box-shadow:
        inset 0 0 0 2px rgba(145, 74, 152, 0.35),
        0 0 0 4px rgba(145, 74, 152, 0.09);
}

.price-stepper-payment .price-stepper-input input:focus {
    box-shadow:
        inset 0 0 0 2px rgba(18, 151, 79, 0.34),
        0 0 0 4px rgba(18, 151, 79, 0.08);
}

.price-stepper-input > span {
    right: 12px;
    color: #7f7184;
    font-size: 11px;
    font-weight: 900;
}

@media (max-width: 860px) {
    .calendar-time-row {
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 10px;
        padding: 9px;
        border-radius: 17px;
    }

    .calendar-time-button strong {
        font-size: 22px;
    }

    .calendar-appointment-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .calendar-time-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .calendar-time-button {
        min-height: 54px;
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 13px;
    }

    .calendar-time-button strong {
        font-size: 23px;
    }

    .calendar-time-summary {
        margin-top: 4px;
    }

    .price-stepper {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        padding: 4px;
    }

    .price-stepper-button {
        width: 46px;
        min-width: 46px;
        min-height: 46px;
    }

    .price-stepper-input input {
        min-height: 46px;
    }
}


/* =========================================================
   V3.9.3 - Masaüstünde kutu/kart takvim düzeni
   Tablet ve telefonda zaman çizelgesi korunur.
   ========================================================= */

.desktop-calendar-board {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 15px;
    min-width: 0;
}

.mobile-calendar-timeline {
    display: none;
}

.desktop-calendar-slot {
    position: relative;
    min-width: 0;
    min-height: 154px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 17px;
    overflow: hidden;
    border: 1px solid rgba(125, 76, 120, 0.15);
    border-radius: 19px;
    color: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(253, 250, 253, 0.95));
    box-shadow:
        0 9px 22px rgba(65, 39, 76, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.80);
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

a.desktop-calendar-slot:hover,
.desktop-calendar-slot.has-slot-appointments:hover {
    z-index: 3;
    transform: translateY(-3px);
    border-color: rgba(145, 74, 152, 0.30);
    box-shadow:
        0 17px 33px rgba(65, 39, 76, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.desktop-slot-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.desktop-slot-top > div:first-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.desktop-slot-time {
    color: #2c173d;
    font-size: 29px;
    line-height: 1;
    letter-spacing: -0.7px;
    font-variant-numeric: tabular-nums;
}

.desktop-slot-top small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.desktop-slot-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-slot-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #6f3a79;
    background: rgba(168, 75, 173, 0.10);
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.desktop-slot-add {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    flex: 0 0 29px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #af4bb5, #75377d);
    box-shadow: 0 7px 15px rgba(132, 61, 139, 0.22);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.desktop-slot-add:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.desktop-empty-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
}

.desktop-empty-content strong {
    color: #2b183b;
    font-size: 20px;
    line-height: 1.2;
}

.desktop-empty-content span {
    color: var(--muted);
    font-size: 12px;
}

.is-desktop-empty {
    cursor: pointer;
}

.is-desktop-closed {
    color: #7d7481;
    border-color: rgba(120, 111, 126, 0.14);
    background:
        repeating-linear-gradient(
            135deg,
            rgba(248, 246, 249, 0.96),
            rgba(248, 246, 249, 0.96) 11px,
            rgba(241, 238, 243, 0.96) 11px,
            rgba(241, 238, 243, 0.96) 22px
        );
    box-shadow: none;
}

.is-desktop-closed .desktop-slot-time,
.is-desktop-closed .desktop-empty-content strong {
    color: #716975;
}

.desktop-slot-appointment-list {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.desktop-slot-appointment {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 11px;
    border: 1px solid rgba(124, 74, 130, 0.13);
    border-radius: 13px;
    color: inherit;
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 5px 13px rgba(62, 34, 72, 0.055);
    transition:
        transform 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.desktop-slot-appointment:hover {
    transform: translateY(-1px);
    border-color: rgba(145, 74, 152, 0.27);
    box-shadow: 0 8px 18px rgba(62, 34, 72, 0.09);
}

.desktop-appointment-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.desktop-appointment-heading > strong {
    min-width: 0;
    overflow: hidden;
    color: #2a1739;
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-appointment-heading .slot-state {
    min-height: 23px;
    padding: 4px 7px;
    font-size: 9px;
}

.desktop-appointment-service {
    overflow: hidden;
    color: #6d6072;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-appointment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.desktop-appointment-meta span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 23px;
    padding: 4px 7px;
    overflow: hidden;
    border-radius: 999px;
    color: #655969;
    background: rgba(255, 255, 255, 0.70);
    font-size: 9px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-slot-appointment.status-waiting {
    border-color: #f0ce70;
    background: linear-gradient(180deg, #fffaf0, #fff1cf);
}

.desktop-slot-appointment.status-arrived {
    border-color: #8dd8ad;
    background: linear-gradient(180deg, #f4fdf8, #def6e8);
}

.desktop-slot-appointment.status-completed {
    border-color: #8bd2a8;
    background: linear-gradient(180deg, #f2fcf6, #dff4e8);
}

.desktop-slot-appointment.status-no_show {
    border-color: #f0a3a8;
    background: linear-gradient(180deg, #fff7f7, #fde2e4);
}

.desktop-slot-appointment.status-cancelled {
    border-color: #d5d0da;
    background: linear-gradient(180deg, #f8f7f9, #ebe8ee);
}

@media (max-width: 1480px) and (min-width: 1181px) {
    .desktop-calendar-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .desktop-calendar-board {
        display: none;
    }

    .mobile-calendar-timeline {
        display: grid;
    }
}


/* =========================================================
   V3.9.6 - Masaüstü randevu özet kartı ve detay penceresi
   ========================================================= */

.desktop-calendar-slot.is-slot-summary {
    min-height: 154px;
}

.desktop-slot-detail-trigger {
    width: 100%;
    min-height: 79px;
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding: 12px;
    border: 1px dashed rgba(145, 74, 152, 0.24);
    border-radius: 14px;
    color: #33203f;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.77), rgba(247, 237, 248, 0.72));
    text-align: left;
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.desktop-slot-detail-trigger:hover {
    transform: translateY(-1px);
    border-color: rgba(145, 74, 152, 0.45);
    background: linear-gradient(145deg, #ffffff, #f3e3f5);
    box-shadow: 0 9px 20px rgba(71, 36, 80, 0.09);
}

.desktop-slot-detail-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #ae4bb2, #74377c);
    box-shadow: 0 8px 17px rgba(132, 61, 139, 0.23);
}

.desktop-slot-detail-icon svg,
.desktop-slot-detail-arrow svg,
.slot-dialog-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-slot-detail-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.desktop-slot-detail-copy strong {
    color: #2f193f;
    font-size: 15px;
}

.desktop-slot-detail-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-slot-detail-arrow {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #8b5591;
    background: rgba(158, 77, 162, 0.09);
}

.slot-dialog-collection {
    display: contents;
}

.slot-detail-dialog {
    width: min(720px, calc(100vw - 32px));
    max-width: 720px;
    max-height: min(820px, calc(100vh - 32px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(124, 74, 130, 0.16);
    border-radius: 25px;
    color: #2c1b38;
    background:
        radial-gradient(circle at 100% 0, rgba(179, 82, 174, 0.11), transparent 30%),
        linear-gradient(145deg, #ffffff, #faf5fa);
    box-shadow: 0 35px 90px rgba(48, 23, 57, 0.28);
}

.slot-detail-dialog::backdrop {
    background: rgba(31, 15, 38, 0.55);
    backdrop-filter: blur(7px);
}

.slot-detail-dialog[open] {
    animation: slot-dialog-in 0.18s ease-out;
}

@keyframes slot-dialog-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.slot-dialog-shell {
    max-height: min(820px, calc(100vh - 32px));
    display: flex;
    flex-direction: column;
}

.slot-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 23px 19px;
    border-bottom: 1px solid rgba(124, 74, 130, 0.11);
}

.slot-dialog-header > div {
    min-width: 0;
}

.slot-dialog-eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: #9c469f;
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.13em;
}

.slot-dialog-header h2 {
    margin: 0;
    color: #2b173c;
    font-size: 25px;
    line-height: 1.15;
    letter-spacing: -0.45px;
}

.slot-dialog-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.slot-dialog-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    border: 1px solid rgba(124, 74, 130, 0.13);
    border-radius: 12px;
    color: #79687e;
    background: rgba(255, 255, 255, 0.76);
    transition:
        color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.slot-dialog-close:hover {
    color: #fff;
    background: linear-gradient(135deg, #ae4bb2, #74377c);
    transform: rotate(3deg);
}

.slot-dialog-list {
    display: grid;
    gap: 12px;
    padding: 18px 23px;
    overflow-y: auto;
}

.slot-dialog-appointment {
    display: grid;
    gap: 13px;
    padding: 17px;
    border: 1px solid rgba(124, 74, 130, 0.14);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.77);
    box-shadow: 0 8px 20px rgba(61, 31, 72, 0.06);
}

.slot-dialog-appointment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.slot-dialog-appointment-head > div {
    min-width: 0;
}

.slot-dialog-appointment h3 {
    margin: 8px 0 0;
    color: #291638;
    font-size: 18px;
    line-height: 1.2;
}

.slot-dialog-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
}

.slot-dialog-detail-grid > div {
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(248, 243, 249, 0.78);
}

.slot-dialog-detail-grid dt {
    margin-bottom: 5px;
    color: #9a8d9d;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.slot-dialog-detail-grid dd {
    margin: 0;
    overflow: hidden;
    color: #413047;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.slot-dialog-edit {
    width: fit-content;
    min-height: 37px;
    padding: 9px 12px;
    font-size: 10px;
}

.slot-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 16px 23px 21px;
    border-top: 1px solid rgba(124, 74, 130, 0.11);
    background: rgba(255, 255, 255, 0.63);
}

body.has-open-dialog {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .slot-dialog-collection {
        display: none;
    }
}

@media (max-width: 620px) {
    .slot-detail-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 20px;
    }

    .slot-dialog-shell {
        max-height: calc(100vh - 16px);
    }

    .slot-dialog-header,
    .slot-dialog-list,
    .slot-dialog-footer {
        padding-left: 17px;
        padding-right: 17px;
    }

    .slot-dialog-detail-grid {
        grid-template-columns: 1fr;
    }

    .slot-dialog-footer {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .slot-dialog-footer .btn {
        width: 100%;
    }
}


/* =========================================================
   V3.9.7 - Masaüstü kutu hizalama ve sade durum renkleri
   ========================================================= */

/*
 * Her masaüstü saat kutusu aynı satır yüksekliğini kullanır.
 * Randevu olması kutunun boyunu artık değiştirmez.
 */
.desktop-calendar-board {
    grid-auto-rows: 154px;
    align-items: stretch;
}

.desktop-calendar-slot,
.desktop-calendar-slot.is-slot-summary {
    box-sizing: border-box;
    width: 100%;
    height: 154px;
    min-height: 154px;
    max-height: 154px;
    align-self: stretch;
}

.desktop-calendar-slot.is-slot-summary {
    gap: 9px;
}

.desktop-calendar-slot.is-slot-summary .desktop-slot-top {
    min-height: 37px;
}

.desktop-slot-detail-trigger {
    min-height: 62px;
    height: 62px;
    margin-top: auto;
    padding: 9px 10px;
    grid-template-columns: 34px minmax(0, 1fr) 25px;
    gap: 9px;
}

.desktop-slot-detail-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.desktop-slot-detail-icon svg {
    width: 16px;
    height: 16px;
}

.desktop-slot-detail-arrow {
    width: 25px;
    height: 25px;
    border-radius: 8px;
}

.desktop-slot-detail-copy {
    gap: 2px;
}

.desktop-slot-detail-copy strong {
    font-size: 14px;
    line-height: 1.15;
}

.desktop-slot-detail-copy small {
    font-size: 9px;
}

.desktop-slot-status-dots {
    min-height: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
}

.desktop-slot-status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    flex: 0 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(45, 24, 52, 0.15);
}

.desktop-slot-status-dot.status-waiting {
    background: #f5ad13;
}

.desktop-slot-status-dot.status-arrived {
    background: #13c868;
}

.desktop-slot-status-dot.status-no_show {
    background: #ff4755;
}

.desktop-slot-status-dot.status-cancelled {
    background: #aaa3b0;
}

.desktop-slot-status-dot.status-completed {
    background: #10b95d;
}

/*
 * Ana takvim kartları nötr kalır. Renkler yalnızca küçük durum
 * noktalarında ve detay penceresindeki randevu kartlarında kullanılır.
 */
.slot-dialog-appointment {
    position: relative;
    overflow: hidden;
    border-left-width: 4px;
}

.slot-dialog-appointment.status-waiting {
    border-left-color: #f5ad13;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 226, 0.92));
}

.slot-dialog-appointment.status-arrived {
    border-left-color: #13c868;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(229, 250, 239, 0.92));
}

.slot-dialog-appointment.status-no_show {
    border-left-color: #ff4755;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 233, 235, 0.92));
}

.slot-dialog-appointment.status-cancelled {
    border-left-color: #aaa3b0;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 238, 242, 0.94));
}

.slot-dialog-appointment.status-completed {
    border-left-color: #10b95d;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 247, 236, 0.93));
}

@media (max-width: 1480px) and (min-width: 1181px) {
    .desktop-calendar-board {
        grid-auto-rows: 154px;
    }
}


/* V3.9.8 - Kesin masaüstü takvim hizalaması */
@media (min-width: 1181px) {
    .desktop-calendar-board {
        grid-auto-rows: 154px !important;
        align-items: stretch !important;
    }

    .desktop-calendar-board > .desktop-calendar-slot,
    .desktop-calendar-board > .desktop-calendar-slot.is-slot-summary {
        height: 154px !important;
        min-height: 154px !important;
        max-height: 154px !important;
        overflow: hidden !important;
    }

    .desktop-calendar-slot.is-slot-summary .desktop-slot-detail-trigger {
        height: 61px !important;
        min-height: 61px !important;
        max-height: 61px !important;
    }
}


/* =========================================================
   V4.0.0 - Genel filtre ve finans görünümü
   ========================================================= */

.filter-toolbar {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.7fr)
        minmax(180px, 0.8fr)
        minmax(210px, auto);
    align-items: end;
    gap: 12px;
    margin-bottom: 21px;
    padding: 15px;
}

.finance-filter-form {
    grid-template-columns:
        minmax(240px, 1.7fr)
        minmax(170px, 0.75fr)
        minmax(170px, 0.75fr)
        minmax(210px, auto);
}

.filter-field {
    min-width: 0;
}

.filter-field label {
    margin-bottom: 7px;
    font-size: 11px;
}

.filter-field-grow {
    min-width: 0;
}

.filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.filter-actions .btn {
    min-height: 45px;
}

.button-count-badge {
    min-width: 22px;
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    margin-left: 5px;
    padding: 3px 6px;
    border-radius: 999px;
    color: #6f4a00;
    background: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    font-weight: 950;
}

.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 17px;
}

.balance-stat-card {
    border-color: rgba(236, 165, 25, 0.22);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(255, 186, 43, 0.12),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 249, 232, 0.94)
        );
}

.finance-view-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 5px;
    border: 1px solid rgba(124, 74, 130, 0.13);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.66);
    width: fit-content;
}

.finance-view-tab {
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 11px;
    color: #76697a;
    font-size: 11px;
    font-weight: 850;
    transition:
        color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.finance-view-tab:hover,
.finance-view-tab.is-active {
    color: #fff;
    background: linear-gradient(
        135deg,
        #aa48b0,
        #72367a
    );
    box-shadow: 0 9px 20px rgba(132, 61, 139, 0.19);
}

.finance-view-tab > span {
    min-width: 21px;
    min-height: 21px;
    display: grid;
    place-items: center;
    padding: 3px 5px;
    border-radius: 999px;
    color: inherit;
    background: rgba(255, 255, 255, 0.16);
    font-size: 9px;
}

.balance-amount {
    color: #bb7200;
}

.table-action-link-success {
    color: #0f8f4f;
    border-color: rgba(17, 157, 85, 0.19);
    background: rgba(20, 183, 98, 0.08);
}

.payment-balance-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 10px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(235, 166, 30, 0.24);
    border-radius: 13px;
    background: rgba(255, 248, 226, 0.78);
}

.payment-balance-preview span {
    color: #8f6c27;
    font-size: 11px;
    font-weight: 800;
}

.payment-balance-preview strong {
    color: #a86100;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.payment-total-card {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 9px 13px;
    border: 1px solid rgba(22, 159, 85, 0.18);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.96),
            rgba(232, 248, 239, 0.92)
        );
}

.payment-total-card strong {
    color: #167744;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

.payment-total-card span {
    color: #6f8478;
    font-size: 10px;
}

.finance-edit-grid {
    margin-top: 4px;
}

.service-payment-history {
    margin-top: 20px;
}

/* =========================================================
   Ortak kompakt 50 TL para butonları
   ========================================================= */

.appointment-money-stepper {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(80px, 1fr) 40px;
    align-items: stretch;
    gap: 6px;
    padding: 5px;
    overflow: hidden;
    border: 1px solid rgba(126, 71, 133, 0.18);
    border-radius: 14px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(177, 84, 174, 0.08),
            transparent 42%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.99),
            rgba(245, 236, 247, 0.95)
        );
    box-shadow:
        0 10px 23px rgba(61, 31, 72, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.appointment-money-stepper.appointment-money-payment {
    border-color: rgba(23, 167, 93, 0.22);
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(29, 198, 113, 0.10),
            transparent 43%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.99),
            rgba(237, 249, 242, 0.96)
        );
}

.appointment-money-button {
    box-sizing: border-box;
    width: 40px;
    min-width: 40px;
    height: 44px;
    min-height: 44px;
    display: grid;
    place-items: center;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(126, 71, 133, 0.18);
    border-radius: 11px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    touch-action: manipulation;
}

.appointment-money-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.appointment-money-minus {
    color: #63316c;
    background: linear-gradient(145deg, #ffffff, #eee1f0);
}

.appointment-money-plus {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #ae4bb2, #713779);
    box-shadow: 0 8px 17px rgba(132, 61, 139, 0.22);
}

.appointment-money-payment .appointment-money-plus {
    background: linear-gradient(135deg, #20c978, #12894f);
    box-shadow: 0 8px 17px rgba(18, 153, 83, 0.21);
}

.appointment-money-button:disabled {
    cursor: not-allowed;
    opacity: 0.34;
    box-shadow: none;
}

.appointment-money-input {
    position: relative;
    min-width: 0;
    display: flex;
}

.appointment-money-input input {
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 32px 8px 10px;
    border: 0;
    border-radius: 11px;
    color: #2c1b38;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: inset 0 0 0 1px rgba(126, 71, 133, 0.11);
    font-size: 15px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.appointment-money-input input::-webkit-outer-spin-button,
.appointment-money-input input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.appointment-money-input span {
    position: absolute;
    top: 50%;
    right: 10px;
    color: #817485;
    font-size: 9px;
    font-weight: 900;
    transform: translateY(-50%);
    pointer-events: none;
}

@media (max-width: 980px) {
    .filter-toolbar,
    .finance-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 680px) {
    .filter-toolbar,
    .finance-filter-form,
    .finance-summary-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .finance-view-tabs {
        width: 100%;
    }

    .finance-view-tab {
        flex: 1 1 50%;
    }
}

@media (max-width: 430px) {
    .appointment-money-stepper {
        grid-template-columns: 36px minmax(70px, 1fr) 36px;
        gap: 4px;
        padding: 4px;
    }

    .appointment-money-button {
        width: 36px;
        min-width: 36px;
        height: 40px;
        min-height: 40px;
    }

    .appointment-money-input input {
        height: 40px;
        min-height: 40px;
        font-size: 14px;
    }
}


/* =========================================================
   V4.1.0 - İki adımlı doğrulama
   ========================================================= */
.two-factor-layout {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.two-factor-card {
    width: min(100%, 510px);
    padding: 34px;
    border: 1px solid rgba(126, 71, 133, 0.17);
    border-radius: 27px;
    background:
        radial-gradient(circle at 100% 0, rgba(183, 74, 179, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,.99), rgba(249,242,250,.97));
    box-shadow: 0 30px 80px rgba(52, 25, 62, 0.18);
    text-align: center;
}

.two-factor-icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #b348b8, #6d3376);
    box-shadow: 0 16px 30px rgba(132, 61, 139, 0.28);
}

.two-factor-icon svg {
    width: 33px;
    height: 33px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.two-factor-card h1 {
    margin: 16px 0 9px;
    color: #2c173d;
    font-size: clamp(25px, 4vw, 34px);
    letter-spacing: -0.7px;
}

.two-factor-card > p {
    margin: 0 auto 20px;
    color: var(--muted);
    line-height: 1.7;
}

.two-factor-reference {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #7d3f84;
    background: rgba(171, 70, 175, 0.09);
    font-size: 11px;
}

.two-factor-form {
    display: grid;
    gap: 12px;
    text-align: left;
}

.two-factor-code-input {
    width: 100%;
    min-height: 64px;
    padding: 12px 18px;
    border: 1px solid rgba(126, 71, 133, 0.19);
    border-radius: 16px;
    color: #2d173b;
    background: rgba(255,255,255,.92);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 10px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.two-factor-resend {
    width: 100%;
    margin-top: 10px;
}

.two-factor-cancel {
    display: inline-block;
    margin-top: 18px;
    color: #876f8d;
    font-size: 12px;
    font-weight: 750;
}

.two-factor-send-status {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 750;
}

.two-factor-send-status.is-success {
    color: #0d7943;
    border: 1px solid rgba(20, 176, 93, .25);
    background: rgba(29, 201, 113, .09);
}

.two-factor-send-status.is-error {
    color: #a72f3a;
    border: 1px solid rgba(230, 70, 84, .22);
    background: rgba(255, 75, 91, .08);
}

@media (max-width: 560px) {
    .two-factor-layout { padding: 12px; }
    .two-factor-card { padding: 25px 18px; border-radius: 22px; }
    .two-factor-code-input { letter-spacing: 7px; }
}


/* V4.1.1 - 6 saatlik güvenilen tarayıcı bilgilendirmesi */
.two-factor-trust-note {
    margin: 14px 0 18px;
    padding: 12px 14px;
    border: 1px solid rgba(145, 74, 152, 0.16);
    border-radius: 13px;
    color: #6e5d73;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.90),
            rgba(246, 235, 248, 0.84)
        );
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
}


/* V4.1.5 - POST ile güvenli çıkış düğmesi */
.sidebar-logout-form {
    width: 100%;
    margin: 0;
}

.sidebar-logout-form .sidebar-logout {
    width: 100%;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}


/* =========================================================
   V4.1.7 - Özel açılır takvim
   Mevcut form ve sayfa yerleşimleri korunur.
   ========================================================= */

.kudu-calendar-field {
    position: relative;
    width: 100%;
    min-width: 0;
}

.kudu-calendar-original-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 1px !important;
    min-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip-path: inset(50%) !important;
}

.kudu-calendar-display {
    box-sizing: border-box;
    width: 100%;
    min-height: 45px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 7px 7px 13px;
    overflow: hidden;
    border: 1px solid rgba(126, 75, 132, 0.16);
    border-radius: 12px;
    color: #7d7080;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.99),
            rgba(250, 246, 251, 0.96)
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 5px 15px rgba(54, 29, 63, 0.035);
    font-family: inherit;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.kudu-calendar-field.has-value
.kudu-calendar-display {
    color: #34223c;
    font-weight: 850;
}

.kudu-calendar-display:hover,
.kudu-calendar-display.is-open {
    border-color: rgba(154, 68, 159, 0.48);
    background: #fff;
    box-shadow:
        0 0 0 4px rgba(158, 71, 163, 0.08),
        0 8px 19px rgba(60, 29, 70, 0.07);
}

.kudu-calendar-display.is-invalid {
    border-color: rgba(220, 61, 75, 0.58);
    box-shadow: 0 0 0 4px rgba(220, 61, 75, 0.09);
}

.kudu-calendar-display-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kudu-calendar-display-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    justify-self: end;
    border: 1px solid rgba(143, 67, 149, 0.12);
    border-radius: 10px;
    color: #8c3f92;
    background:
        linear-gradient(
            145deg,
            rgba(248, 234, 249, 0.97),
            rgba(239, 224, 242, 0.97)
        );
}

.kudu-calendar-display-icon svg,
.kudu-calendar-title-icon svg,
.kudu-calendar-month-navigation svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kudu-calendar-popover {
    position: fixed;
    z-index: 10050;
    display: none;
    padding: 14px;
    border: 1px solid rgba(125, 68, 134, 0.17);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(185, 86, 180, 0.12),
            transparent 31%
        ),
        radial-gradient(
            circle at 0 100%,
            rgba(87, 154, 224, 0.07),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.995),
            rgba(249, 242, 250, 0.985)
        );
    box-shadow:
        0 28px 70px rgba(45, 22, 52, 0.24),
        0 10px 28px rgba(74, 34, 82, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform-origin: top center;
    animation: kuduCalendarOpen 0.16s ease both;
}

.kudu-calendar-popover.is-open {
    display: block;
}

.kudu-calendar-popover.opens-above {
    transform-origin: bottom center;
}

@keyframes kuduCalendarOpen {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kudu-calendar-popover-arrow {
    position: absolute;
    top: -7px;
    left: 28px;
    width: 13px;
    height: 13px;
    border-top: 1px solid rgba(125, 68, 134, 0.14);
    border-left: 1px solid rgba(125, 68, 134, 0.14);
    background: rgba(255, 255, 255, 0.98);
    transform: rotate(45deg);
}

.kudu-calendar-popover.opens-above
.kudu-calendar-popover-arrow {
    top: auto;
    bottom: -7px;
    border-top: 0;
    border-left: 0;
    border-right: 1px solid rgba(125, 68, 134, 0.14);
    border-bottom: 1px solid rgba(125, 68, 134, 0.14);
}

.kudu-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(128, 72, 136, 0.10);
}

.kudu-calendar-title-group {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.kudu-calendar-title-icon {
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    flex: 0 0 39px;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, #b64faf, #713779);
    box-shadow:
        0 9px 20px rgba(133, 58, 139, 0.23),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.kudu-calendar-title-group strong {
    display: block;
    margin-bottom: 3px;
    color: #321d3d;
    font-size: 14px;
    font-weight: 950;
}

.kudu-calendar-title-group small {
    display: block;
    max-width: 220px;
    overflow: hidden;
    color: #88798d;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kudu-calendar-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    padding: 0;
    border: 1px solid rgba(126, 71, 134, 0.10);
    border-radius: 10px;
    color: #7b6b80;
    background: rgba(255, 255, 255, 0.72);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}

.kudu-calendar-close:hover {
    color: #fff;
    border-color: transparent;
    background: #9a439f;
}

.kudu-calendar-month-navigation {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 35px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.kudu-calendar-month-navigation strong {
    color: #46304e;
    font-size: 13px;
    font-weight: 950;
    text-align: center;
    text-transform: capitalize;
}

.kudu-calendar-month-navigation button {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(129, 72, 138, 0.11);
    border-radius: 11px;
    color: #7d4b83;
    background: rgba(255, 255, 255, 0.77);
    cursor: pointer;
}

.kudu-calendar-month-navigation button:hover {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(145deg, #ad4baa, #74377b);
    box-shadow: 0 7px 15px rgba(132, 56, 138, 0.19);
}

.kudu-calendar-month-navigation svg {
    width: 17px;
    height: 17px;
}

.kudu-calendar-weekdays,
.kudu-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.kudu-calendar-weekdays {
    margin-bottom: 5px;
}

.kudu-calendar-weekdays span {
    min-height: 25px;
    display: grid;
    place-items: center;
    color: #978a9b;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.kudu-calendar-day {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #48374e;
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 820;
    cursor: pointer;
    transition:
        color 0.13s ease,
        border-color 0.13s ease,
        background 0.13s ease,
        transform 0.13s ease,
        box-shadow 0.13s ease;
}

.kudu-calendar-day:hover:not(:disabled) {
    color: #7f3187;
    border-color: rgba(158, 68, 163, 0.17);
    background: rgba(173, 75, 177, 0.09);
    transform: translateY(-1px);
}

.kudu-calendar-day.is-outside {
    color: #b9b0bc;
    font-weight: 650;
}

.kudu-calendar-day.is-today::after {
    content: "";
    position: absolute;
    bottom: 5px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #b24faf;
}

.kudu-calendar-day.is-selected {
    color: #fff;
    border-color: transparent;
    background:
        linear-gradient(145deg, #b850b2, #75377d);
    box-shadow:
        0 8px 17px rgba(132, 56, 139, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.21);
    transform: translateY(-1px);
}

.kudu-calendar-day.is-selected::after {
    background: rgba(255, 255, 255, 0.92);
}

.kudu-calendar-day:disabled {
    color: #d7d0d9;
    cursor: not-allowed;
}

.kudu-calendar-time-row {
    margin-top: 11px;
    padding: 10px;
    border: 1px solid rgba(24, 154, 85, 0.12);
    border-radius: 13px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.89),
            rgba(237, 248, 242, 0.88)
        );
}

.kudu-calendar-time-row label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 0;
}

.kudu-calendar-time-row span {
    color: #197049;
    font-size: 10px;
    font-weight: 900;
}

.kudu-calendar-time-row input[type="time"] {
    min-height: 38px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid rgba(21, 148, 81, 0.15);
    border-radius: 10px;
    color: #264934;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: none;
    font-size: 12px;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
}

.kudu-calendar-quick-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
}

.kudu-calendar-quick-actions button {
    min-height: 32px;
    flex: 1 1 0;
    padding: 7px 9px;
    border: 1px solid rgba(127, 71, 136, 0.11);
    border-radius: 10px;
    color: #756279;
    background: rgba(255, 255, 255, 0.74);
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.kudu-calendar-quick-actions button:hover:not(:disabled) {
    color: #803587;
    border-color: rgba(153, 67, 159, 0.20);
    background: rgba(177, 79, 178, 0.09);
}

.kudu-calendar-quick-actions button:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.kudu-calendar-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(127, 70, 136, 0.10);
}

.kudu-calendar-footer button {
    min-height: 37px;
    padding: 8px 13px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.kudu-calendar-cancel {
    border: 1px solid rgba(127, 71, 136, 0.12);
    color: #746678;
    background: rgba(255, 255, 255, 0.76);
}

.kudu-calendar-apply {
    min-width: 86px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #b54faf, #73377b);
    box-shadow: 0 8px 18px rgba(132, 56, 139, 0.22);
}

.kudu-calendar-apply:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 620px) {
    .kudu-calendar-popover {
        top: auto !important;
        right: 10px !important;
        bottom: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        padding: 14px;
        border-radius: 22px;
        transform-origin: bottom center;
        animation-name: kuduCalendarMobileOpen;
    }

    .kudu-calendar-popover-arrow {
        display: none;
    }

    @keyframes kuduCalendarMobileOpen {
        from {
            opacity: 0;
            transform: translateY(18px) scale(0.985);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    .kudu-calendar-day {
        border-radius: 10px;
        font-size: 11px;
    }

    .kudu-calendar-title-group small {
        max-width: 190px;
    }
}


/* =========================================================
   V4.1.9 - Açılır takvim alanı boşluk düzeltmesi
   ========================================================= */

.kudu-calendar-field {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 45px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: normal !important;
    vertical-align: top !important;
}

.kudu-calendar-field .kudu-calendar-original-input {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 1px !important;
    max-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
}

.kudu-calendar-display {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 45px !important;
    height: 45px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.form-grid > div > .kudu-calendar-field,
.form-grid-tight > div > .kudu-calendar-field,
.form-card > .kudu-calendar-field {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.kudu-calendar-field + .field-help,
.kudu-calendar-field + small {
    margin-top: 7px;
}

/*
 * Daha önce V4.1.6 PHP dosyaları yüklenmişse form yerleşimleri bu yamanın
 * içindeki eski PHP dosyalarıyla geri döner. Bu kurallar da takvim
 * bileşeninin fazladan satır/yükseklik oluşturmasını engeller.
 */
.service-appointment-time-grid .kudu-calendar-field,
.finance-edit-grid .kudu-calendar-field {
    align-self: start;
}
