        #alertModal { z-index: 1060;}
        body { font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; margin: 0; padding: 20px; background-color: #f5f5f5; }
        body:has(#loginPanel:not([style*="display: none"])) {
            padding: 0;
            overflow: hidden;
            height: 100vh;
            background: #eef4fa;
        }
        @media (max-width: 860px), (max-height: 760px) {
            body:has(#loginPanel:not([style*="display: none"])) { overflow: auto; height: auto; min-height: 100vh; }
        }
        .header { text-align: center; margin-bottom: 20px; color: #0066cc; position: relative; }
        table { width: 100%; border-collapse: collapse; background-color: white; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
        th, td { border: 1px solid #ddd; padding: 12px; text-align: left; }
        th { background-color: #0066cc; color: white; }
        tr:nth-child(even) { background-color: #f2f2f2; }
        .time-column { width: 15%; font-weight: bold; }
        .special-slot-row .time-column, .special-slot-time-cell { color: #b30059; font-weight: bold; }
        .editable { background-color: #ffffcc; cursor: text; }
        .not-editable { background-color: #f0f0f0; cursor: not-allowed; }
        .status-cell.locked-slot { background-color: #e0e0e0 !important; color: #333 !important; font-style: italic; }
        .status-cell.saving { font-style: italic; color: #888 !important; background-color: #f0f0f0 !important; } /* Kaydediliyor stili */
        .section-header { background-color: #e6f2ff; font-weight: bold; }
        .section-header.special-section-header { background-color: #ffe6f2; color: #b30059; }
        /* --- Giriş sayfası --- */
        .login-page *, .login-page *::before, .login-page *::after { box-sizing: border-box; }
        .login-page {
            position: relative;
            display: flex;
            flex-direction: column;
            width: 100%;
            min-height: 100vh;
            overflow: hidden;
            font-family: 'Poppins', system-ui, sans-serif;
            color: #0d3b78;
            background: #f4f8fc;
        }
        .login-page input::placeholder { color: #9aa9bb; opacity: 1; }
        .login-bg {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(ellipse 60% 55% at 68% 22%, rgba(255,255,255,0.95), rgba(255,255,255,0) 70%),
                radial-gradient(ellipse 50% 60% at 32% 55%, #f5f9fd, rgba(245,249,253,0) 70%),
                linear-gradient(180deg, #eef4fa 0%, #e9f1f9 100%);
            animation: loginBgIn 0.6s ease-out both;
        }
        .login-bg__ring { position: absolute; border-radius: 50%; }
        .login-bg__ring--top { width: 1500px; height: 1500px; left: 84%; top: -72%; background: rgba(255,255,255,0.32); border: 1px solid rgba(255,255,255,0.8); }
        .login-bg__ring--bottom { width: 1800px; height: 1800px; left: 18%; top: 88%; background: rgba(255,255,255,0.28); border: 1px solid rgba(255,255,255,0.75); }

        .login-photo { position: absolute; left: 0; top: 0; bottom: 0; overflow: hidden; }
        .login-photo img { width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; animation: loginPhotoIn 0.6s ease-out both; }
        .login-photo__fade { position: absolute; inset: 0; }
        .login-photo--wide {
            width: clamp(200px, 21vw, 380px);
            -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
        }
        .login-photo--wide .login-photo__fade { background: linear-gradient(90deg, rgba(238,244,250,0) 40%, rgba(238,244,250,0.55) 100%); }
        .login-photo--compact {
            display: none;
            width: min(62%, 340px);
            opacity: 0.6;
            -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0%, #000 45%, transparent 100%);
        }
        .login-photo--compact .login-photo__fade { background: linear-gradient(90deg, rgba(238,244,250,0.15) 0%, rgba(238,244,250,0.6) 100%); }
        @media (max-width: 1023.98px) {
            .login-photo--wide { display: none; }
            .login-photo--compact { display: block; }
        }

        .login-layout { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; flex: 1 0 auto; min-height: 100vh; width: 100%; }

        .login-brand {
            flex: 1 1 52%;
            min-width: min(100%, 380px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 24px 40px clamp(24px, calc((100vw - 768px) * 0.5), 12vw);
            text-align: center;
        }
        .login-brand__logo { width: clamp(116px, 11vw, 176px); height: auto; display: block; animation: loginLogoIn 0.4s ease-out 0.05s both; }
        .login-brand__title { margin: 6px 0 0; font-size: clamp(36px, 3vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: 0.01em; color: #0d3b78; animation: loginRiseSm 0.4s ease-out 0.08s both; }
        .login-brand__dept { margin: 8px 0 0; font-size: clamp(18px, 1.56vw, 25px); line-height: 1.3; font-weight: 600; color: #0f3f7c; animation: loginRiseSm 0.4s ease-out 0.2s both; }
        .login-brand__system { margin: 8px 0 0; font-size: clamp(15px, 1.25vw, 20px); line-height: 1.35; font-weight: 500; color: #3e5a80; animation: loginRiseSm 0.4s ease-out 0.16s both; }
        .login-brand__rule { width: 40px; height: 2px; border-radius: 2px; background: #2a7fd4; margin: 30px 0 0; opacity: 0.8; animation: loginFadeIn 0.35s ease-out 0.2s both; }

        .login-extras { display: contents; }
        @media (max-width: 767.98px) { .login-extras { display: none; } }

        .login-features { list-style: none; margin: clamp(28px, 6vh, 62px) 0 0; padding: 0; display: flex; gap: clamp(28px, 3vw, 48px); justify-content: center; animation: loginRise15 0.4s ease-out 0.22s both; }
        .login-feature { width: 80px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
        .login-feature__icon { width: 50px; height: 50px; border-radius: 12px; background: #e2edf9; display: flex; align-items: center; justify-content: center; color: #1a6fcf; }
        .login-feature__label { font-size: 15px; line-height: 1.35; font-weight: 400; color: #34496a; }

        .login-faculty { margin-top: clamp(28px, 5.5vh, 56px); display: flex; flex-direction: column; align-items: center; animation: loginRise10 0.4s ease-out 0.24s both; }
        .login-faculty__img { width: clamp(220px, 17vw, 280px); height: auto; display: block; opacity: 0.85; }
        .login-faculty__uni, .login-faculty__name { font-size: clamp(12px, 0.9vw, 14px); font-weight: 600; letter-spacing: 0.32em; color: #1e3a66; line-height: 1.4; padding-left: 0.32em; }
        .login-faculty__uni { margin: 22px 0 0; }
        .login-faculty__row { margin-top: 8px; display: flex; align-items: center; gap: 18px; }
        .login-faculty__dash { width: 30px; height: 1.5px; background: #1e3a66; }

        .login-auth {
            flex: 1 1 48%;
            min-width: min(100%, 370px);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px clamp(16px, 5vw, 80px) 32px clamp(16px, 1vw, 24px);
        }
        .login-card {
            width: 100%;
            max-width: 664px;
            background: rgba(255,255,255,0.9);
            border: 1px solid rgba(214,227,241,0.9);
            border-radius: 22px;
            box-shadow: 0 24px 60px rgba(40,90,150,0.10), 0 2px 6px rgba(40,90,150,0.04);
            padding: clamp(32px, 6.2vh, 62px) clamp(24px, 2.8vw, 45px) clamp(32px, 6.5vh, 64px);
            animation: loginCardUp 0.45s ease-out 0.12s both;
            transition: border-color 0.2s ease;
        }
        .login-card:hover {
            border-color: rgba(70,135,210,0.42);
        }
        .login-card__title { margin: 0; font-size: clamp(28px, 2.4vw, 38px); line-height: 1.2; font-weight: 700; color: #0b4589; }
        .login-card__lead { margin: 12px 0 0; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; font-weight: 400; color: #5b6f8c; }

        .login-field { margin-top: clamp(20px, 3vh, 28px); display: flex; flex-direction: column; gap: 12px; }
        .login-field--first { margin-top: clamp(28px, 4.8vh, 48px); }
        .login-field__label { font-size: 16px; font-weight: 500; color: #1f2f46; }
        .login-field__wrap { position: relative; }
        .login-field__icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); display: flex; color: #44576f; pointer-events: none; }
        .login-field__input {
            width: 100%;
            height: clamp(54px, 6.5vh, 64px);
            border-radius: 15px;
            border: 1.5px solid #dfe7f0;
            background: #fcfdff;
            padding: 0 20px 0 62px;
            font-family: inherit;
            font-size: 17px;
            color: #1f2f46;
            outline: none;
            transition: border-color 0.15s ease, box-shadow 0.15s ease;
        }
        .login-field__input--pw { padding-right: 124px; }
        .login-field__input:focus { border-color: #2a7fd4; box-shadow: 0 0 0 4px rgba(42,127,212,0.12); }

        .login-pw-toggle {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            height: 44px;
            padding: 0 14px;
            border: none;
            background: transparent;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-family: inherit;
            font-size: 15px;
            font-weight: 500;
            color: #44576f;
            cursor: pointer;
            outline: none;
        }
        .login-pw-toggle:hover { background: #f0f5fb; color: #0b4589; }
        .login-pw-toggle:focus { box-shadow: 0 0 0 3px rgba(42,127,212,0.35); }
        .login-pw-toggle__eye-off { display: none; }
        .login-pw-toggle[aria-pressed="true"] .login-pw-toggle__eye { display: none; }
        .login-pw-toggle[aria-pressed="true"] .login-pw-toggle__eye-off { display: block; }

        .login-remember { margin-top: clamp(20px, 3vh, 28px); display: inline-flex; align-items: center; gap: 14px; cursor: pointer; font-size: 17px; font-weight: 500; color: #1f2f46; }
        .login-remember input { width: 22px; height: 22px; margin: 0; accent-color: #1570d6; cursor: pointer; }

        .login-message { margin: 18px 0 0; font-size: 15px; line-height: 1.4; font-weight: 500; color: #b42318; }
        .login-message:empty { display: none; }

        .login-button {
            margin-top: clamp(24px, 3.4vh, 32px);
            width: 100%;
            height: clamp(58px, 7vh, 68px);
            border: none;
            border-radius: 15px;
            background: linear-gradient(90deg, #0a4ea6 0%, #1a7fdc 58%, #2cb0f0 100%);
            color: #fff;
            font-family: inherit;
            font-size: clamp(19px, 1.45vw, 22px);
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 14px;
            cursor: pointer;
            box-shadow: 0 10px 24px rgba(21,105,205,0.22);
            transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
            outline: none;
        }
        .login-button:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(21,105,205,0.30); filter: brightness(1.04); }
        .login-button:active { transform: scale(0.99); }
        .login-button:focus-visible { box-shadow: 0 0 0 4px rgba(42,127,212,0.3), 0 10px 24px rgba(21,105,205,0.22); }
        .login-button:disabled { cursor: progress; }

        .login-footer { margin-top: clamp(24px, 4vh, 40px); font-size: 15px; color: #5a6d87; text-align: center; animation: loginRise10 0.35s ease-out 0.28s both; }
        @media (max-width: 767.98px) {
            .login-layout { min-height: 0; align-items: flex-start; }
            .login-brand { padding: 18px 16px 4px; }
            .login-brand__logo { width: 84px; }
            .login-brand__title { font-size: 30px; }
            .login-brand__dept { margin-top: 4px; font-size: 16px; }
            .login-brand__system { margin-top: 4px; font-size: 14px; }
            .login-brand__rule { margin-top: 12px; }
            .login-auth { padding: 8px 16px 12px; }
            .login-card { padding: 20px 16px 18px; }
            .login-card__lead { margin-top: 8px; font-size: 15px; }
            .login-field--first { margin-top: 16px; }
            .login-field { margin-top: 12px; gap: 6px; }
            .login-field__input { height: 48px; }
            .login-remember { margin-top: 12px; }
            .login-button { margin-top: 14px; height: 50px; }
            .login-footer { margin-top: 10px; font-size: 13px; }
        }

        @keyframes loginBgIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes loginPhotoIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes loginLogoIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
        @keyframes loginRiseSm { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
        @keyframes loginRise15 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
        @keyframes loginRise10 { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
        @keyframes loginCardUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
        @keyframes loginFadeIn { from { opacity: 0; } to { opacity: 1; } }
        @media (prefers-reduced-motion: reduce) {
            .login-page *, .login-page *::before, .login-page *::after { animation: none !important; transition: none !important; }
        }
        .input-group { margin-bottom: 20px; text-align: left; position: relative; }
        .input-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #555; }
        .input-group input, .input-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; }
        .password-toggle-btn { position: absolute; right: 10px; top: 35px; background: none; border: none; cursor: pointer; font-size: 0.9em; color: #777; }
        .error-message { color: red; margin-top: 10px; }
        .booked { background-color: #ffdddd; }
        .available { background-color: #ddffdd; }
        .keyword-match-highlight-viewer td {
            background-color: #ffcccc !important; /* Açık kırmızı */
            color: #a60000 !important; /* Koyu kırmızı yazı */
            font-weight: bold;
        }
        .keyword-match-highlight-viewer .note-icon {
            color: #a60000 !important;
        }
        .keyword-match-highlight-viewer .status-cell { /* Durum hücresi için özel stil, normal yazı rengi */
            color: #333 !important;
        }
        .no-appointments-message {
            text-align: center;
            padding: 20px;
            font-size: 1.1em;
            color: #555;
            background-color: #fffacd;
            border: 1px solid #f0e68c;
            border-radius: 5px;
            margin-top: 20px;
        }
        

        .limit-display { margin-top: 10px; font-weight: bold; text-align: center; }
        .limit-green { color: green; }
        .limit-red { color: red; }
        .dark-gray-slot-row td:not(.status-cell) { background-color: #696969; color: white; }
        .dark-gray-slot-row .status-cell.booked { background-color: #ffdddd; color: black; }
        .dark-gray-slot-row .status-cell.available { background-color: #ddffdd; color: black; }
        .dark-gray-slot-row .status-cell.locked-slot { background-color: #b0b0b0 !important; color: #111 !important; font-style: italic;}
        .reset-button, #undoLastActionButton { background-color: #cc0000; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-left: 10px; }
        .reset-button:hover, #undoLastActionButton:hover { background-color: #990000; }
        #undoLastActionButton { background-color: #ffae42; }
        #undoLastActionButton:hover { background-color: #e6952a; }
        .doctor-cell-content { display: flex; align-items: center; justify-content: space-between; }
        .note-icon, .change-doctor-icon { cursor: pointer; font-size: 1.1em; margin-left: 5px; opacity: 0.7; }
        .note-icon:hover, .change-doctor-icon:hover { opacity: 1; color: #0066cc; }
        .change-doctor-icon { font-size: 0.9em; color: #555; }
        .change-doctor-icon:hover { color: #0055aa; font-weight: bold; }
        #doctorChangeDropdown { padding: 5px; border-radius: 4px; border: 1px solid #ccc; background-color: white; min-width: 180px; font-size: 0.9em; }
        .modal { display: none; position: fixed; z-index: 1050; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.4); box-sizing: border-box; }
        .modal-content { background-color: #fefefe; margin: 5% auto; padding: 20px; border: 1px solid #888; width: 90%; max-width: 800px; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.2); position: relative; text-align: center; }
        .close-button { color: #aaa; float: right; font-size: 28px; font-weight: bold; }
        .close-button:hover, .close-button:focus { color: black; text-decoration: none; cursor: pointer; }
        .note-textarea { width: 100%; height: 120px; padding: 10px; margin-top: 15px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; resize: vertical; }
        .note-save-button, .alert-ok-button, .admin-button, .add-doctor-button, .delete-doctor-button, .edit-doctor-button, .save-doctor-button, .cancel-doctor-button, .save-time-button, .save-notes-button, .toggle-fire-effect-btn,
        .lock-button, .unlock-button, .save-permissions-button, .delete-all-notifications-button, .general-op-room-button {
            background-color: #0066cc; color: white; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; font-size: 16px; margin: 5px;
        }
        .note-save-button:hover, .alert-ok-button:hover, .admin-button:hover, .delete-doctor-button:hover, .edit-doctor-button:hover, .save-doctor-button:hover, .cancel-doctor-button:hover, .save-time-button:hover, .save-notes-button:hover, .toggle-fire-effect-btn:hover,
        .lock-button:hover, .unlock-button:hover, .save-permissions-button:hover, .delete-all-notifications-button:hover, .general-op-room-button:hover {
            background-color: #0055aa;
        }
        .lock-button { background-color: #d9534f; }
        .lock-button:hover { background-color: #c9302c; }
        .unlock-button { background-color: #5cb85c; }
        .unlock-button:hover { background-color: #4cae4c; }
        .save-permissions-button { background-color: #f0ad4e; }
        .save-permissions-button:hover { background-color: #ec971f;}
        .toggle-fire-effect-btn.active { background-color: #ff8c00; }
        .toggle-fire-effect-btn.active:hover { background-color: #e07b00; }
        .note-label { font-weight: bold; display: block; margin-top: 10px; }
        #alertModal .modal-content h3 { margin-top: 0; }

        /* Admin Panel Tabs */
        #adminPanelModal .admin-modal { box-sizing: border-box; max-width: calc(100vw - 16px); width: min(1100px, calc(100vw - 16px)); max-height: 90vh; overflow-y: auto; margin: 8px auto; padding: 16px; text-align: left; background: #F5FAFF; border: 0; border-radius: 16px; }
        #adminPanelModal .admin-modal h2 { margin: 0 36px 16px 0; font-size: 22px; font-weight: 800; color: #0B3F75; letter-spacing: -0.2px; text-align: left; }
        .admin-tab-links { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: #E6EFF8; border-radius: 12px; overflow-x: auto; max-width: 100%; }
        .admin-page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
        .admin-page-head .admin-tab-links { margin-bottom: 0; }
        body.shell-admin-open #adminPanelModal.modal {
            position: fixed;
            inset: 54px 0 0 0;
            z-index: 20 !important;
            width: auto;
            height: auto;
            padding: 22px 24px 40px 27px;
            overflow: auto;
            background: #F5FAFF;
        }
        body.shell-admin-open #adminPanelModal .admin-modal {
            display: flex;
            flex-direction: column;
            gap: 18px;
            width: 100%;
            max-width: none;
            max-height: none;
            margin: 0;
            padding: 0;
            overflow: visible;
            background: transparent;
            border-radius: 0;
            box-shadow: none;
        }
        body.shell-admin-open #adminPanelModalTitle { margin: 0; }
        body.shell-admin-open #closeAdminPanel { display: none !important; }
        body.shell-admin-open .app-search { display: none !important; }
        body.shell-admin-open #adminPanelButton.app-nav__current,
        body.shell-admin-open #adminPanelButton.app-nav__current:hover {
            background: linear-gradient(180deg, #0E86E4, #0977D6);
            color: #fff;
            font-weight: 700;
            box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 6px rgba(0, 30, 70, 0.25);
        }
        @media (max-width: 1023px) {
            body.shell-admin-open #adminPanelModal.modal { padding: 22px 20px 40px 20px; }
        }
        @media (max-width: 639px) {
            body.shell-admin-open #adminPanelModal.modal { padding: 18px 14px 32px 14px; }
        }
        @media (min-width: 1024px) {
            body.shell-sidebar-open.shell-admin-open #adminPanelModal.modal { left: 253px; }
        }
        .admin-tab-links button { flex: 0 0 auto; float: none; height: 34px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #4F6F8F; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
        .admin-tab-links button:hover { background: #F3F8FD; }
        .admin-tab-links button.active { background: #fff; color: #0B3F75; font-weight: 800; box-shadow: 0 1px 3px rgba(15, 48, 87, 0.12); }
        .admin-tab-links button { display: inline-flex; align-items: center; gap: 7px; }
        .admin-tab-badge, .shell-nav-badge { flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
        .admin-tab-badge[hidden], .shell-nav-badge[hidden] { display: none; }
        .shell-nav-badge { margin-left: auto; }
        .admin-tab-panel { display: none; padding: 0; border-top: none; animation: fadeInEffect 0.5s; }
        @keyframes fadeInEffect { from {opacity: 0;} to {opacity: 1;} }
        .admin-tab-panel.active { display: block; }
        #tabUserManagement .admin-panel-grid-container { grid-template-columns: minmax(0, 1fr); }
        #adminSectionDoctorManagement { min-width: 0; max-width: 100%; }
        .admin-card { background: #fff; border: 1px solid #E1ECF6; border-radius: 12px; box-shadow: 0 2px 10px rgba(20, 70, 120, 0.04); padding: 16px 18px; margin-bottom: 18px; min-width: 0; }
        .admin-card h4 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: #0B3F75; text-align: left; }
        .admin-card-note { margin: -6px 0 12px; font-size: 12.5px; color: #6B89A5; }
        .admin-doctor-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
        .admin-doctor-search { position: relative; flex: 1 1 340px; min-width: 0; max-width: 560px; }
        .admin-doctor-search__box { display: flex; align-items: center; gap: 10px; box-sizing: border-box; height: 42px; padding: 0 6px 0 14px; border: 1px solid #DCEAF5; border-radius: 10px; background: #fff; }
        .admin-doctor-search__box:focus-within { border-color: #9CC8EE; box-shadow: 0 0 0 3px rgba(8, 124, 209, 0.12); }
        .admin-doctor-search__icon { flex: 0 0 auto; }
        .admin-doctor-search__toggle { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #4F6F8F; cursor: pointer; }
        .admin-doctor-search__toggle:hover { background: #EEF5FC; }
        #adminDoctorSearch { flex: 1 1 auto; width: auto; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-family: inherit; font-size: 14px; font-weight: 600; color: #0B3F75; }
        #adminDoctorSearch:focus { outline: none; border: 0; box-shadow: none; }
        .admin-role-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
        .admin-role-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px; background: #F2F7FC; color: #4F6F8F; font-size: 12px; font-weight: 600; }
        .admin-role-chip b { font-weight: 800; color: #0B3F75; }
        .admin-doctor-pick-list { display: none; }
        .admin-doctor-pick-list:not([hidden]) { display: block; position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; background: #fff; border: 1px solid #DCEAF5; border-radius: 12px; box-shadow: 0 14px 36px rgba(15, 48, 87, 0.16); }
        #addDoctorForm[hidden] { display: none !important; }
        .admin-primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
        .admin-doctor-pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-family: inherit; cursor: pointer; }
        .admin-doctor-pick:hover, .admin-doctor-pick.is-selected { background: #EAF5FD; }
        .admin-doctor-pick__initials { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #EAF5FD; color: #087CD1; font-size: 11.5px; font-weight: 800; }
        .admin-doctor-pick__name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 700; color: #0B3F75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .admin-doctor-pick__user, .admin-doctor-pick__role { flex: 0 0 auto; font-size: 12px; color: #6B89A5; }
        .admin-doctor-pick__role { font-weight: 700; color: #4F6F8F; }
        .admin-doctor-pick-empty { margin: 0; padding: 16px; text-align: center; font-size: 13px; color: #6B89A5; }
        .admin-doctor-select-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
        .admin-primary-btn, #adminPanelModal .save-doctor-button { height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: #087CD1; color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
        .admin-primary-btn:hover, #adminPanelModal .save-doctor-button:hover { background: #0A6DC7; }
        .admin-doctor-empty { min-height: 220px; margin: 0 0 18px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: #4F80AE; font-size: 13.5px; background: #fff; border: 1px dashed #CFE0F0; border-radius: 12px; }
        .admin-doctor-empty[hidden] { display: none !important; }
        .admin-doctor-empty__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #EAF5FD; color: #087CD1; }
        #adminPanelModal [hidden] { display: none !important; }
        .admin-doc-card { padding: 0; overflow: hidden; }
        .admin-doc-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #EAF1F8; }
        .admin-doc-avatar { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #EAF5FD; color: #087CD1; font-size: 13px; font-weight: 800; }
        .admin-doc-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: #0B3F75; }
        .admin-doc-user { font-size: 12.5px; color: #6B89A5; }
        .admin-doc-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
        .admin-doc-fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 12px; }
        .admin-doc-fields .admin-field-row { flex: 1 1 160px; margin: 0; }
        .admin-doc-fields .admin-field-row--name { flex: 1 1 220px; }
        .admin-doc-fields .admin-field-row--limit { flex: 0 1 110px; position: relative; }
        .admin-field-hint { position: absolute; top: 100%; left: 0; margin-top: 3px; font-size: 11px; font-weight: 500; color: #6B89A5; white-space: nowrap; }
        .admin-doctor-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
        .admin-switch { position: relative; flex: 0 0 auto; width: 40px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: #D5E2EE; cursor: pointer; }
        .admin-switch[aria-checked="true"] { background: #087CD1; }
        .admin-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: left 0.2s ease; }
        .admin-switch[aria-checked="true"]::after { left: 21px; }
        .admin-switch:disabled { opacity: 0.55; cursor: default; }
        .admin-doctor-delete { border-color: #F6D3D3; }
        .admin-delete-row, .admin-delete-confirm { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
        .admin-delete-row span, .admin-delete-confirm > span { font-size: 13.5px; font-weight: 700; color: #9B1C1C; }
        .admin-delete-row small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: #6B89A5; }
        .admin-delete-confirm { padding: 10px 12px; border-radius: 10px; background: #FDECEC; }
        .admin-delete-confirm > span { font-size: 13px; font-weight: 600; }
        .admin-button--danger { border: 0; background: #D32F2F; color: #fff; }
        .admin-button--danger:hover { background: #B71C1C; }
        .admin-password-field .password-toggle-btn { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; top: 3px; color: #6B89A5; }
        .admin-password-field .login-pw-toggle__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
        .new-doctor-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 24, 45, 0.45); }
        .new-doctor-card { width: 100%; max-width: 440px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; margin: 0; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(8, 24, 45, 0.3); overflow: hidden; }
        .new-doctor-card__head, .new-doctor-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid #EAF1F8; }
        .new-doctor-card__head span { font-size: 17px; font-weight: 700; color: #0B3F75; }
        .new-doctor-card__head button { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: #F2F7FC; color: #174B7C; cursor: pointer; }
        .new-doctor-card__body { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; overflow-y: auto; }
        .new-doctor-card__foot { justify-content: flex-end; padding: 14px 20px 18px; border-bottom: 0; border-top: 1px solid #EAF1F8; }
        .new-doctor-name, .new-doctor-pair { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 12px; }
        .new-doctor-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
        .new-doctor-card .admin-field-row { margin: 0; }
        .new-doctor-limit { flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid #E6EFF8; border-radius: 10px; }
        .new-doctor-limit small { display: block; font-size: 11px; font-weight: 500; color: #6B89A5; }
        .new-doctor-limit .doctor-input { width: 84px; flex: 0 0 auto; text-align: center; }
        .admin-doctor-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 18px; align-items: start; }
        .admin-doctor-layout > [style*="display: none"], .admin-doctor-layout > [style*="display:none"] { display: none !important; }
        .admin-field-row, .admin-temp-grid label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12.5px; font-weight: 700; color: #0B4A8A; text-align: left; }
        #adminPanelModal .doctor-input { height: 38px; width: 100%; min-width: 0; padding: 0 12px; border: 1px solid #DCEAF5; border-radius: 9px; background: #F7FBFF; font-family: inherit; font-size: 13.5px; color: #174B7C; box-sizing: border-box; }
        .admin-password-field { position: relative; }
        .admin-password-field .doctor-input { padding-right: 44px; }
        .admin-password-field .password-toggle-btn { position: absolute; right: 6px; top: 4px; height: 30px; margin: 0; }
        .admin-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #F0F5FA; }
        .admin-switch-row span { display: block; font-size: 13.5px; font-weight: 700; color: #0B3F75; }
        .admin-switch-row small { display: block; font-size: 12px; color: #6B89A5; font-weight: 500; }
        .admin-doctor-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
        #adminPanelModal .delete-doctor-button { background: #FDECEC; color: #C62828; }
        .admin-temp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
        #displayTemporaryLimitsArea { max-height: 150px; overflow-y: auto; border: 1px solid #E6EFF8; border-radius: 9px; padding: 10px; background: #fff; }
        @media (max-width: 768px) {
            .admin-doctor-layout, .admin-temp-grid { grid-template-columns: 1fr; }
            .admin-doctor-pick__user { display: none; }
        }
        .admin-panel-grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
            gap: 15px;
        }

        .admin-section { background-color: #f9f9f9; border: 1px solid #eee; border-radius: 8px; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); text-align: left; box-sizing: border-box; }
        .admin-section h3 { color: #0066cc; margin-top: 0; border-bottom: 1px solid #eee; padding-bottom: 8px; margin-bottom: 12px; font-size: 1.2em; }
        .admin-lock-controls div, .admin-special-slot-controls div, .admin-special-perms-controls div { margin-bottom:8px; }
        .admin-lock-controls label, .admin-lock-controls span, .admin-special-slot-controls label, .admin-special-slot-controls span, .admin-special-perms-controls label { margin-right: 5px; font-weight: bold; }
        .admin-lock-status { font-style: italic; color: #555; display: inline-block; margin-left: 10px; }
        #adminSpecialSlotPermDoctorList label, #grantPermCheckboxesContainer label { display: block; font-weight: normal; margin-left: 15px; margin-bottom: 5px; }
        #grantPermCheckboxesContainer input[type="checkbox"] { margin-right: 8px; }
        .input-with-toggle { position: relative; }
        .input-with-toggle .password-toggle-btn { top: 50%; transform: translateY(-50%); right: 30px; }
        .admin-section .input-group .password-toggle-btn { top: 30px;}

        .doctor-list-table, .time-settings-table, .note-edit-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
        .doctor-list-table th, .doctor-list-table td, .time-settings-table th, .time-settings-table td, .note-edit-table th, .note-edit-table td { border: 1px solid #ddd; padding: 6px; text-align: left; font-size: 0.9em; }
        .doctor-list-table th, .time-settings-table th, .note-edit-table th { background-color: #e6f2ff; color: #333; }
        .doctor-input, .doctor-select { width: 100%; padding: 8px; margin-bottom: 5px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; font-size: 0.9em; }
        .doctor-actions button { margin-right: 5px; }
        .delete-doctor-button { background-color: #cc0000; }
        .delete-doctor-button:hover { background-color: #990000; }
        .admin-button {
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9em;
            margin: 4px;
        }
        #addDoctorForm div { margin-bottom: 8px; }
        #addDoctorForm label { display: block; margin-bottom: 4px; font-weight: bold; font-size: 0.9em; }
        #addDoctorForm input { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 5px; box-sizing: border-box; font-size: 0.9em; }
        #addDoctorForm .input-group input { width: 100%; }
        #addDoctorForm .input-group { margin-bottom: 12px; }

        #generalDateNoteDisplay { text-align: center; margin: 10px auto; padding: 10px; background-color: #fffacd; border: 1px solid #f0e68c; border-radius: 5px; display: none; max-width: 80%; }
        #generalDateNoteDisplay strong { color: red; }
        #generalDateNoteText { font-weight: bold; color: #555; white-space: pre-wrap; }
        .day-note-empty { margin: 8px 0 0; font-size: 12.5px; color: #8AA3BA; }
        .day-note-row { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; }
        .day-note-row span { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; }

        #dayGroupDisplay {
            position: relative;
            top: 0px;
            left: 10px;
            font-size: 0.85em;
            padding: 5px 10px;
            background-color: rgba(240, 240, 240, 0.9);
            color: #333;
            border: 1px solid #bbb;
            border-radius: 4px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.15);
            z-index: 1050;
            display: none;
            height: auto;
            width: 90px;
        }
        .search-result-item { background-color: #f9f9f9; border: 1px solid #eee; padding: 10px; margin-bottom: 10px; border-radius: 5px; }
        .search-note-icon { cursor: pointer; font-size: 1em; margin-left: 8px; opacity: 0.7; }
        .search-note-icon:hover { opacity: 1; color: #0066cc; }

        .animated-fire-text {
            font-weight: bold;
            position: relative;
            display: inline-block;
            background-image: linear-gradient(
                to top,
                #FFA500,
                #FFBF00,
                #FFD700,
                #FFEA00,
                #FF8C00,
                #FFBF00,
                #FFD700
            );
            background-size: 100% 280%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            color: transparent;
            animation: rising_wavy_flames_advanced 3.5s ease-in-out infinite;
            text-shadow:
                0px 0px 2px rgba(80, 80, 80, 0.25),
                0px -1px 3px rgba(100, 100, 100, 0.2),
                0px 1px 4px rgba(50, 50, 50, 0.3);
        }
        @keyframes rising_wavy_flames_advanced {
            0% { background-position: 0% 100%; }
            50% { background-position: 0% -20%; }
            100% { background-position: 0% 100%; }
        }
        .admin-section-subsection { margin-top: 15px; padding-top: 10px; border-top: 1px dashed #ccc; }
        #adminSameDayExceptionDisplayArea { margin-bottom: 8px; padding: 8px; border: 1px solid #eee; max-height: 90px; overflow-y: auto; background-color: #fff; font-size: 0.9em; }
        #adminSameDayExceptionListDisplay { list-style-type: none; padding-left: 0; margin-top: 5px; }
        #adminSameDayExceptionListDisplay li { padding: 2px 0; border-bottom: 1px dotted #eee; }
        #adminSameDayExceptionListDisplay li:last-child { border-bottom: none; }

        #tabScheduling .admin-panel-grid-container { grid-template-columns: minmax(0, 1fr); gap: 18px; }
        #tabScheduling .admin-sched-card { background: #fff; border: 1px solid #E1ECF6; border-radius: 12px; box-shadow: 0 2px 10px rgba(20, 70, 120, 0.04); padding: 0; min-width: 0; max-width: 100%; overflow: hidden; }
        #tabScheduling .admin-sched-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid #EAF1F8; }
        #tabScheduling .admin-sched-card h3 { margin: 0; padding: 0; border: 0; font-size: 15px; font-weight: 700; color: #0B3F75; }
        #tabScheduling .admin-sched-note { margin: 2px 0 0; font-size: 12.5px; font-weight: 500; color: #6B89A5; }
        #tabScheduling .admin-sched-body { padding: 16px 18px; min-width: 0; }
        #tabScheduling .doctor-select, #tabScheduling .doctor-input { height: 38px; width: 100%; max-width: 100%; min-width: 0; padding: 0 12px; border: 1px solid #DCEAF5; border-radius: 9px; background: #F7FBFF; font-family: inherit; font-size: 13.5px; color: #174B7C; box-sizing: border-box; }
        #tabScheduling .doctor-input.admin-sched-date { width: auto; min-width: 150px; max-width: 100%; margin: 0; background: #fff; }
        #tabScheduling .admin-time-input { max-width: none; }
        #tabScheduling .admin-slot-scope { display: flex; height: 34px; padding: 3px; border-radius: 9px; background: #EEF4FA; gap: 3px; }
        #tabScheduling .admin-slot-scope__btn { padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: #4F6F8F; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
        #tabScheduling .admin-slot-scope__btn.is-active { background: #fff; color: #0B3F75; box-shadow: 0 1px 3px rgba(15, 48, 87, 0.12); }
        #tabScheduling .admin-slot-body { display: flex; flex-direction: column; gap: 14px; }
        #tabScheduling .admin-slot-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 8px 8px 12px; border-radius: 10px; background: #F4F9FE; }
        #tabScheduling .admin-slot-banner__text { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: #174B7C; }
        #tabScheduling .admin-slot-banner--all { padding: 8px 12px; background: #FFF3E0; color: #8A4B00; font-size: 12.5px; font-weight: 600; }
        #tabScheduling .admin-slot-custom { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #FFF3E0; color: #8A4B00; font-size: 11.5px; font-weight: 700; }
        #tabScheduling .admin-slot-reset-date { height: 26px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: #C62828; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
        #tabScheduling .admin-slot-reset-date:hover { background: #FDECEC; }
        #tabScheduling .admin-slot-group { display: flex; flex-direction: column; gap: 8px; }
        #tabScheduling .admin-slot-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px; color: #0B4A8A; }
        #tabScheduling .admin-slot-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
        #tabScheduling .admin-slot-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 11px; border: 1px solid #DCEAF5; border-radius: 8px; background: #fff; color: #0B3F75; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
        #tabScheduling .admin-slot-chip.is-grey { background: #6E7782; border-color: #6E7782; color: #fff; }
        #tabScheduling .admin-slot-chip.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #087CD1; }
        #tabScheduling .admin-slot-add { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px dashed #9CC8EE; border-radius: 8px; background: #F5FAFF; color: #087CD1; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
        #tabScheduling .admin-slot-add:hover { background: #EAF5FD; }
        #tabScheduling .admin-slot-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #6B89A5; }
        #tabScheduling .admin-slot-legend__swatch { width: 14px; height: 14px; border-radius: 4px; background: #6E7782; }
        #tabScheduling .admin-slot-edit-grid { display: flex; align-items: flex-end; gap: 12px; }
        #tabScheduling .admin-slot-edit-grid .admin-field-row { flex: 1 1 0; margin: 0; min-width: 0; }
        #tabScheduling .admin-slot-edit-grid .doctor-input { margin: 0; }
        #tabScheduling .admin-slot-grey { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1 1 0; height: 38px; min-width: 0; margin: 0; padding: 0 12px; border: 1px solid #E6EFF8; border-radius: 9px; box-sizing: border-box; }
        #tabScheduling .admin-slot-grey span { font-size: 13px; font-weight: 700; color: #0B3F75; }
        @media (max-width: 639px) {
            #tabScheduling .admin-slot-edit-grid { flex-direction: column; align-items: stretch; }
        }
        #tabScheduling .admin-field-row { margin-bottom: 12px; }
        #tabScheduling .admin-check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; color: #174B7C; }
        #tabScheduling .admin-check-row input { margin-top: 2px; }
        #tabScheduling .admin-group-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
        #tabScheduling .admin-sched-edit { margin-top: 4px; padding-top: 12px; border-top: 1px solid #F0F5FA; }
        #tabScheduling .admin-sched-edit h4 { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; color: #0B3F75; }
        #tabScheduling .admin-lock-controls div { margin-bottom: 0; }
        #tabScheduling .admin-lock-weekend { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 8px 12px; border-radius: 10px; background: #EEF2F6; font-size: 12.5px; font-weight: 600; color: #52657A; }
        #tabScheduling .admin-lock-weekend[hidden] { display: none !important; }
        #tabScheduling .admin-lock-row:last-child { border-bottom: 0; padding-bottom: 0; }
        #tabScheduling #adminSlotLockTools { display: inline-flex; align-items: center; gap: 12px; }
        #tabScheduling #adminSlotLockTools[hidden] { display: none !important; }
        #tabScheduling .admin-lock-controls label, #tabScheduling .admin-lock-controls span { margin-right: 0; font-weight: inherit; }
        #tabScheduling .admin-lock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F0F5FA; flex-wrap: wrap; }
        #tabScheduling .admin-lock-controls .admin-lock-row__title { display: block; font-size: 13.5px; font-weight: 700; color: #0B3F75; }
        #tabScheduling .admin-lock-controls .admin-lock-row__desc { display: block; font-size: 12px; font-weight: 500; color: #6B89A5; }
        #tabScheduling .admin-lock-row__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
        #tabScheduling .admin-lock-slot-select { width: 118px; height: 34px; }
        #tabScheduling .admin-lock-controls .admin-lock-status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #EEF2F6; color: #52657A; font-size: 12px; font-weight: 700; font-style: normal; margin: 0; white-space: nowrap; }
        #tabScheduling .admin-lock-status.is-open { background: #E5F8EE; color: #1C7A48; }
        #tabScheduling .admin-lock-status.is-locked { background: #FDECEC; color: #C62828; }
        #adminLockedItemsList { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
        #adminLockedItemsList li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: #0B3F75; }
        #adminLockedItemsList li.admin-lock-empty { display: block; padding: 10px; font-size: 13px; font-weight: 500; color: #6B89A5; }
        #adminLockedItemsList .admin-lock-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #FDECEC; color: #C62828; font-size: 12px; font-weight: 700; white-space: nowrap; }
        #adminLockedItemsList li[data-date] { cursor: pointer; }
        #adminLockedItemsList li[data-date]:hover { background: #F4F9FE; }
        #tabScheduling .admin-special-tools, #tabScheduling .admin-special-remove { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
        #tabScheduling .admin-special-remove { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
        #tabScheduling .admin-special-remove .doctor-select { flex: 1 1 220px; }
        #tabScheduling .admin-special-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
        #tabScheduling .admin-special-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px; border-radius: 9px; background: #F2EBFE; color: #5B2E9C; font-size: 12.5px; font-weight: 700; }
        #tabScheduling .admin-special-chip button { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #6B3FA0; cursor: pointer; }
        #tabScheduling .admin-special-add { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px dashed #C7B2EE; border-radius: 8px; background: #FAF7FF; color: #6B3FA0; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
        #tabScheduling .admin-special-perm { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; margin-top: 4px; border-top: 1px solid #F0F5FA; }
        #tabScheduling .admin-special-clip { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
        #tabScheduling .admin-section-subsection { margin-top: 14px; padding-top: 14px; border-top: 1px solid #F0F5FA; }
        #tabScheduling .admin-section-subsection h4 { margin: 0 0 12px; font-size: 13.5px; font-weight: 700; color: #0B3F75; }
        #tabScheduling .lock-button, #tabScheduling .unlock-button, #tabScheduling .save-time-button, #tabScheduling .reset-button, #tabScheduling .save-permissions-button, #tabScheduling .add-doctor-button, #tabScheduling .delete-doctor-button { height: 34px; padding: 0 12px; border-radius: 8px; font-family: inherit; font-size: 12.5px; font-weight: 700; margin: 0; }
        #tabScheduling .save-time-button, #tabScheduling .save-permissions-button { background: #087CD1; color: #fff; }
        #tabScheduling .save-time-button:hover, #tabScheduling .save-permissions-button:hover { background: #0A6DC7; }
        #tabScheduling #adminAddSpecialSlotButton { height: 32px; border: 1px dashed #C7B2EE; background: #FAF7FF; color: #6B3FA0; }
        #tabScheduling #adminAddSpecialSlotButton:hover { background: #F2EBFE; }
        #tabScheduling .reset-button, #tabScheduling .delete-doctor-button { background: #FDECEC; color: #C62828; }
        #tabScheduling .reset-button:hover, #tabScheduling .delete-doctor-button:hover { background: #FAD9D9; }
        @media (min-width: 1000px) {
            #tabScheduling .admin-panel-grid-container { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
            #tabScheduling .admin-sched-card--wide { grid-column: 1 / -1; }
        }
        @media (max-width: 768px) {
            #tabScheduling .admin-group-grid { grid-template-columns: minmax(0, 1fr); }
            #tabScheduling .admin-lock-row__actions { justify-content: flex-start; }
        }
        #tabNotesReports .admin-panel-grid-container { grid-template-columns: minmax(0, 1fr); gap: 18px; }
        #tabNotesReports .admin-sched-card { background: #fff; border: 1px solid #E1ECF6; border-radius: 12px; box-shadow: 0 2px 10px rgba(20, 70, 120, 0.04); padding: 0; min-width: 0; max-width: 100%; overflow: hidden; }
        #tabNotesReports .admin-sched-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid #EAF1F8; }
        #tabNotesReports .admin-sched-card h3 { margin: 0; padding: 0; border: 0; font-size: 15px; font-weight: 700; color: #0B3F75; }
        #tabNotesReports .admin-sched-note { margin: 2px 0 0; font-size: 12.5px; font-weight: 500; color: #6B89A5; }
        #tabNotesReports .admin-sched-body { padding: 16px 18px; min-width: 0; }
        #tabNotesReports .doctor-select, #tabNotesReports .doctor-input, #tabNotesReports .note-textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #DCEAF5; border-radius: 9px; background: #F7FBFF; font-family: inherit; font-size: 13.5px; color: #174B7C; }
        #tabNotesReports .doctor-select, #tabNotesReports .doctor-input { height: 38px; padding: 0 12px; }
        #tabNotesReports .doctor-input.admin-sched-date { width: auto; min-width: 150px; margin: 0; background: #fff; }
        #adminGeneralNoteText { min-height: 40px; max-height: 160px; height: 64px; margin: 0; padding: 9px 12px; resize: vertical; }
        #tabNotesReports .admin-day-note-compose { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; padding: 12px 18px; min-width: 0; }
        #tabNotesReports .admin-day-note-compose .note-textarea { flex: 1 1 320px; margin: 0; min-width: 0; }
        #tabNotesReports .save-notes-button, #tabNotesReports #generateDoctorReportButton { height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: #087CD1; color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; margin: 0; position: static; white-space: nowrap; }
        #tabNotesReports .save-notes-button:disabled { opacity: 0.5; cursor: default; }
        #tabNotesReports .save-notes-button:hover, #tabNotesReports #generateDoctorReportButton:hover { background: #0A6DC7; }
        #adminGeneralNoteList .day-note-row { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px 10px 18px; border-top: 1px solid #F0F5FA; }
        #adminGeneralNoteList .day-note-row::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: #E0A21B; }
        #adminGeneralNoteList .day-note-row span { flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 1.45; color: #174B7C; }
        #adminGeneralNoteList .delete-doctor-button { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; margin: 0; border-radius: 8px; background: transparent; color: #C62828; }
        #adminGeneralNoteList .delete-doctor-button:hover { background: #FDECEC; }
        #tabNotesReports .day-note-empty { margin: 0; padding: 4px 18px 16px; }
        #adminNotesEmpty { padding: 22px 18px; text-align: center; font-size: 13px; color: #8AA3BA; }
        #tabNotesReports .admin-pub-notes { display: flex; flex-direction: column; }
        #tabNotesReports .admin-pub-note { display: grid; grid-template-columns: 64px minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 4px 14px; padding: 10px 18px; border-bottom: 1px solid #F0F5FA; }
        #tabNotesReports .admin-pub-note__time { font-size: 13px; font-weight: 800; color: #0B3F75; }
        #tabNotesReports .admin-pub-note__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
        #tabNotesReports .admin-pub-note__patient { font-size: 13px; font-weight: 700; color: #174B7C; overflow-wrap: anywhere; }
        #tabNotesReports .admin-pub-note__doctor { font-size: 12px; color: #6B89A5; overflow-wrap: anywhere; }
        #tabNotesReports .admin-pub-note__text { font-size: 13px; line-height: 1.45; color: #174B7C; white-space: pre-wrap; overflow-wrap: anywhere; }
        #adminSectionDoctorReportGeneration.admin-sched-card, #adminSectionGeneralOpRoomReportGeneration.admin-sched-card { overflow: visible; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report { display: flex; flex-direction: column; gap: 14px; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-grid .admin-field-row { margin: 0; min-width: 0; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-dates { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; min-width: 0; }
        @media (min-width: 1100px) {
            :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
            #tabGeneralOpRoom .admin-report-grid--gor { grid-template-columns: repeat(4, minmax(0, 1fr)); }
        }
        @media (max-width: 699px) {
            #tabNotesReports .admin-pub-note { grid-template-columns: 48px minmax(0, 1fr); }
        }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-source { display: flex; height: 38px; padding: 3px; box-sizing: border-box; border-radius: 9px; background: #EEF4FA; gap: 3px; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-source button { flex: 1 1 0; min-width: 0; border: 0; border-radius: 7px; background: transparent; color: #6B89A5; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-source button.is-on { background: #fff; color: #0B3F75; box-shadow: 0 1px 3px rgba(15, 48, 87, 0.14); }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-pick { position: relative; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-toggle { height: 38px; padding: 0 12px; border: 1px solid #DCEAF5; border-radius: 9px; background: #F7FBFF; color: #174B7C; font-family: inherit; font-size: 13.5px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: pointer; text-align: left; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-toggle.is-open { border-color: #9CC8EE; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-toggle span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 300px; max-width: calc(100vw - 40px); display: flex; flex-direction: column; background: #fff; border: 1px solid #DCEAF5; border-radius: 12px; box-shadow: 0 14px 36px rgba(15, 48, 87, 0.16); overflow: hidden; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-panel[hidden] { display: none; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-panel input { width: calc(100% - 16px); margin: 8px; box-sizing: border-box; height: 32px; padding: 0 10px; border: 1px solid #DCEAF5; border-radius: 8px; background: #F7FBFF; font-family: inherit; font-size: 13px; color: #174B7C; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-panel__tools { display: flex; justify-content: space-between; padding: 6px 10px; border-top: 1px solid #EAF1F8; border-bottom: 1px solid #F0F5FA; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-panel__tools button { height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: #087CD1; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
        #tabNotesReports #adminReportDoctorClear, #tabGeneralOpRoom #adminGorReportDoctorClear { color: #6B89A5; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-panel__list { max-height: 240px; overflow: auto; padding: 4px; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-check { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 600; color: #174B7C; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-check:hover { background: #F4F9FE; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-check input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: #087CD1; cursor: pointer; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-check.is-on { background: #F0F7FE; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-panel__empty { padding: 12px; text-align: center; font-size: 12.5px; color: #8AA3BA; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-chips:empty { display: none; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-chips { display: flex; flex-wrap: wrap; gap: 6px; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 11px; border-radius: 999px; background: #EAF5FD; color: #0B4A8A; font-size: 12.5px; font-weight: 600; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: #4F80AE; cursor: pointer; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-clear { height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #6B89A5; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-clear:hover { background: #F3F8FD; color: #174B7C; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-info { padding: 18px; border: 1px dashed #CFE0F0; border-radius: 10px; text-align: center; font-size: 13px; color: #6B89A5; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-results { border: 1px solid #EAF1F8; border-radius: 10px; overflow: hidden; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-total { padding: 10px 14px; background: #F7FBFF; border-bottom: 1px solid #EAF1F8; font-size: 13px; font-weight: 700; color: #0B3F75; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-head, :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-row { display: grid; grid-template-columns: 92px 52px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; padding: 8px 14px; }
        @media (max-width: 899px) {
            :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-head, :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-row { grid-template-columns: 84px 46px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.8fr); }
        }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-head { border-bottom: 1px solid #EAF1F8; font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px; color: #0B4A8A; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-row { align-items: start; border-bottom: 1px solid #F0F5FA; font-size: 12.5px; line-height: 1.35; color: #174B7C; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-row > span:nth-child(2) { font-weight: 700; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-row > span:nth-child(3) { font-weight: 600; overflow-wrap: anywhere; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-row > span:nth-child(4),
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-row > span:nth-child(5) { overflow-wrap: anywhere; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-row > span:nth-child(6) { overflow-wrap: anywhere; color: #6B89A5; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-row__date { display: flex; flex-direction: column; gap: 3px; font-weight: 700; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-src { align-self: flex-start; display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-src--lokal { background: #EAF5FD; color: #087CD1; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-src--genel { background: #F3ECFD; color: #6B3FA0; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-pager button { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid #DCEAF5; border-radius: 10px; background: #fff; color: #174B7C; cursor: pointer; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-pager button:hover { background: #F3F8FD; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-pager button:disabled { opacity: 0.4; cursor: default; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-pager span { font-size: 12.5px; font-weight: 600; color: #52708C; }
        :is(#tabNotesReports, #tabGeneralOpRoom) .admin-report-pager b { color: #0B3F75; }
        #tabNotesReports .admin-note-table-wrap { max-width: 100%; max-height: 300px; overflow: auto; border: 1px solid #EAF1F8; border-radius: 10px; }
        #tabNotesReports .note-edit-table, #tabNotesReports .doctor-list-table { margin: 0; }
        #tabNotesReports .note-edit-table th, #tabNotesReports .doctor-list-table th { background: #F7FBFF; color: #0B4A8A; font-size: 11.5px; letter-spacing: 0.3px; }
        #tabNotesReports .note-edit-table .note-textarea { height: auto; min-height: 40px; margin: 0; }
        #tabNotesReports .admin-report-results h4 { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: #0B3F75; }
        #tabGeneralOpRoom, #tabSiteSettings { container-type: inline-size; }
        #tabGeneralOpRoom [hidden], #tabSiteSettings [hidden] { display: none !important; }
        #tabGeneralOpRoom .admin-panel-grid-container, #tabSiteSettings .admin-panel-grid-container { grid-template-columns: minmax(0, 1fr); gap: 18px; }
        #tabGeneralOpRoom #adminSectionGeneralOpRoomManagement, #tabSiteSettings #adminSectionSiteSettings { background: transparent; border: 0; box-shadow: none; margin: 0; padding: 0; overflow: visible; }
        #tabGeneralOpRoom .gor-top-grid, #tabSiteSettings .site-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
        @container (min-width: 949px) {
            #tabGeneralOpRoom .gor-top-grid, #tabSiteSettings .site-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
        }
        #tabGeneralOpRoom .gor-card, #tabSiteSettings .site-card, #tabGeneralOpRoom .admin-sched-card { background: #fff; border: 1px solid #E1ECF6; border-radius: 12px; box-shadow: 0 2px 10px rgba(20, 70, 120, 0.04); min-width: 0; max-width: 100%; margin: 0; padding: 0; overflow: visible; }
        #tabGeneralOpRoom .gor-card--settings { padding: 16px 18px; }
        #tabGeneralOpRoom .gor-card-head, #tabSiteSettings .site-card-head { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-bottom: 1px solid #EAF1F8; }
        #tabGeneralOpRoom .gor-card-head h2, #tabSiteSettings .site-card-head h2 { margin: 0; padding: 0; border: 0; font-size: 15px; font-weight: 700; color: #0B3F75; text-align: left; }
        #tabGeneralOpRoom .gor-card-head span, #tabSiteSettings .site-card-head span { font-size: 12.5px; color: #6B89A5; }
        #tabGeneralOpRoom .gor-card-body, #tabSiteSettings .site-card-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; min-width: 0; }
        #tabSiteSettings .site-card-body--tight { gap: 12px; }
        #tabGeneralOpRoom .gor-setting-text, #tabSiteSettings .site-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
        #tabGeneralOpRoom .gor-title, #tabSiteSettings .site-title { font-size: 13.5px; font-weight: 700; color: #0B3F75; }
        #tabGeneralOpRoom .gor-desc, #tabSiteSettings .site-desc { font-size: 12px; color: #6B89A5; text-wrap: pretty; }
        #tabGeneralOpRoom .gor-setting-row, #tabSiteSettings .site-lock-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 0 12px; border-bottom: 1px solid #F0F5FA; }
        #tabGeneralOpRoom .gor-setting-row--lock { padding: 12px 0 0; border-bottom: 0; }
        #tabGeneralOpRoom .gor-switch-group, #tabSiteSettings .site-switch-group { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
        #tabGeneralOpRoom .gor-stepper { display: flex; align-items: center; height: 34px; border: 1px solid #DCEAF5; border-radius: 999px; background: #fff; overflow: hidden; flex: 0 0 auto; }
        #tabGeneralOpRoom .gor-stepper button { width: 32px; height: 100%; padding: 0; border: 0; background: transparent; color: #0B3F75; font-family: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
        #tabGeneralOpRoom .gor-stepper button:hover { background: #EEF5FC; }
        #tabGeneralOpRoom .gor-stepper input { width: 28px; min-width: 28px; height: 100%; margin: 0; padding: 0; border: 0; outline: none; background: transparent; text-align: center; font-family: inherit; font-size: 14px; font-weight: 800; color: #0B3F75; -moz-appearance: textfield; appearance: textfield; }
        #tabGeneralOpRoom .gor-stepper input::-webkit-outer-spin-button,
        #tabGeneralOpRoom .gor-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
        #tabGeneralOpRoom .admin-lock-status, #tabSiteSettings .admin-lock-status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #F2F5F8; color: #6B7C8F; font-size: 12px; font-weight: 700; font-style: normal; margin: 0; white-space: nowrap; }
        #tabGeneralOpRoom .admin-lock-status.is-on, #tabSiteSettings .admin-lock-status.is-on { background: #EAF5FD; color: #087CD1; }
        #tabGeneralOpRoom .admin-switch, #tabSiteSettings .admin-switch { background: #CBD9E6; }
        #tabGeneralOpRoom .admin-switch[aria-checked="true"], #tabSiteSettings .admin-switch[aria-checked="true"] { background: #087CD1; }
        #tabGeneralOpRoom .gor-perm-block { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid #F0F5FA; }
        #tabGeneralOpRoom .gor-perm-block:first-child { padding: 0 0 14px; border-top: 0; }
        #tabGeneralOpRoom .gor-add-row, #tabSiteSettings .site-add-row { display: flex; gap: 8px; }
        #tabGeneralOpRoom .doctor-select, #tabGeneralOpRoom .doctor-input, #tabSiteSettings .doctor-select, #tabSiteSettings .doctor-input { height: 38px; width: 100%; max-width: 100%; min-width: 0; margin: 0; padding: 0 12px; border: 1px solid #DCEAF5; border-radius: 9px; outline: none; background: #F7FBFF; font-family: inherit; font-size: 13.5px; color: #174B7C; box-sizing: border-box; }
        #tabGeneralOpRoom .doctor-select, #tabSiteSettings .doctor-select { cursor: pointer; }
        #tabGeneralOpRoom .doctor-select:focus, #tabGeneralOpRoom .doctor-input:focus, #tabSiteSettings .doctor-select:focus, #tabSiteSettings .doctor-input:focus { background: #fff; border-color: #9CC8EE; box-shadow: 0 0 0 3px rgba(8, 124, 209, 0.12); }
        #tabGeneralOpRoom .gor-chips, #tabSiteSettings .site-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
        #tabGeneralOpRoom .admin-chip, #tabSiteSettings .admin-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; margin: 0; padding: 0 4px 0 12px; border-radius: 999px; background: #EAF5FD; color: #0B4A8A; font-size: 12.5px; font-weight: 600; }
        #tabGeneralOpRoom .admin-chip button, #tabSiteSettings .admin-chip button { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #4F80AE; cursor: pointer; }
        #tabGeneralOpRoom .admin-chip button:hover, #tabSiteSettings .admin-chip button:hover { background: #D6E9FA; color: #0B3F75; }
        #tabGeneralOpRoom .admin-chip-empty, #tabSiteSettings .admin-chip-empty { font-size: 12.5px; font-style: normal; font-weight: 400; color: #8AA3BA; }
        #tabGeneralOpRoom .admin-button, #tabGeneralOpRoom .site-add-btn, #tabSiteSettings .admin-button, #tabSiteSettings .site-add-btn, #tabSiteSettings .delete-doctor-button, #tabSiteSettings .site-confirm__yes { height: 38px; margin: 0; padding: 0 16px; border: 0; border-radius: 9px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; }
        #tabGeneralOpRoom .admin-button, #tabSiteSettings .admin-button { background: #087CD1; color: #fff; }
        #tabGeneralOpRoom .admin-button:hover, #tabSiteSettings .admin-button:hover { background: #0A6DC7; }
        #tabGeneralOpRoom .site-add-btn, #tabSiteSettings .site-add-btn { border: 1px solid #DCEAF5; background: #fff; color: #174B7C; }
        #tabGeneralOpRoom .site-add-btn:hover, #tabSiteSettings .site-add-btn:hover { background: #F3F8FD; }
        #tabSiteSettings .delete-doctor-button { background: #FDECEC; color: #C62828; }
        #tabSiteSettings .delete-doctor-button:hover { background: #FAD9D9; }
        #tabGeneralOpRoom .admin-inline-msg, #tabSiteSettings .admin-inline-msg { font-size: 12.5px; font-weight: 600; color: #1C7A48; }
        #tabGeneralOpRoom .admin-inline-msg.is-error, #tabSiteSettings .admin-inline-msg.is-error { color: #C62828; }
        #tabGeneralOpRoom .gor-leave-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
        @container (min-width: 809px) {
            #tabGeneralOpRoom .gor-leave-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
        }
        #tabGeneralOpRoom .gor-leave-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
        #tabGeneralOpRoom .gor-leave-col--requests { gap: 10px; }
        #tabGeneralOpRoom .gor-leave-reqhead { display: flex; align-items: center; gap: 8px; }
        #tabGeneralOpRoom .gor-leave-reqhead .gor-title { white-space: nowrap; }
        #tabGeneralOpRoom .gor-leave-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #F2F5F8; color: #6B7C8F; font-size: 12px; font-weight: 800; box-sizing: border-box; }
        #tabGeneralOpRoom .gor-leave-badge.is-pending { background: #FFF3E0; color: #C26A00; }
        #tabGeneralOpRoom .gor-leave-requests { display: flex; flex-direction: column; gap: 10px; }
        #tabGeneralOpRoom .gor-leave-empty { padding: 14px; border: 1px dashed #DCEAF5; border-radius: 10px; text-align: center; font-size: 13px; color: #6B89A5; }
        #tabGeneralOpRoom .gor-request { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid #F5DDB8; border-radius: 10px; background: #FFFAF2; }
        #tabGeneralOpRoom .gor-request__info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
        #tabGeneralOpRoom .gor-request__name { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: #0B3F75; overflow-wrap: anywhere; }
        #tabGeneralOpRoom .gor-request__meta { font-size: 12.5px; color: #174B7C; }
        #tabGeneralOpRoom .gor-request__meta strong { font-weight: 700; }
        #tabGeneralOpRoom .gor-request__when { font-size: 11.5px; color: #8AA3BA; }
        #tabGeneralOpRoom .gor-request__actions { display: flex; gap: 6px; }
        #tabGeneralOpRoom .gor-request__actions button { height: 32px; margin: 0; padding: 0 12px; border: 0; border-radius: 9px; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
        #tabGeneralOpRoom .gor-request__reject { background: #FDECEC; color: #C62828; }
        #tabGeneralOpRoom .gor-request__reject:hover { background: #FAD9D9; }
        #tabGeneralOpRoom .gor-request__approve { background: #24B36B; color: #fff; }
        #tabGeneralOpRoom .gor-request__approve:hover { background: #1E9D5D; }
        #tabGeneralOpRoom .gor-leave-form { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px; align-items: center; }
        #tabGeneralOpRoom .gor-leave-hint { margin-top: -4px; font-size: 12px; color: #6B89A5; }
        #tabGeneralOpRoom .gor-leave-actions, #tabSiteSettings .site-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
        #tabGeneralOpRoom .gor-leave-existing { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid #F0F5FA; }
        #tabGeneralOpRoom .doctor-input.gor-leave-search { height: 36px; font-size: 13px; }
        #tabGeneralOpRoom .gor-leave-none { font-size: 13px; color: #6B89A5; }
        #tabGeneralOpRoom .gor-leave-list { display: flex; flex-direction: column; max-height: 196px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #E6EFF8; border-radius: 10px; }
        #tabGeneralOpRoom .gor-leave-row { display: flex; align-items: center; gap: 10px; margin: 0; padding: 5px 6px 5px 14px; border-bottom: 1px solid #F0F5FA; background: #fff; }
        #tabGeneralOpRoom .gor-leave-row.is-editing { background: #FFF8E6; }
        #tabGeneralOpRoom .gor-leave-row__name { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: #0B3F75; overflow-wrap: anywhere; }
        #tabGeneralOpRoom .gor-leave-row__total { flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #EAF5FD; color: #087CD1; font-size: 12px; font-weight: 700; white-space: nowrap; }
        #tabGeneralOpRoom .gor-leave-row__edit, #tabGeneralOpRoom .gor-leave-row__clear { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
        #tabGeneralOpRoom .gor-leave-row__edit { color: #4F6F8F; }
        #tabGeneralOpRoom .gor-leave-row__edit:hover { background: #EEF5FC; }
        #tabGeneralOpRoom .gor-leave-row__clear { color: #C62828; }
        #tabGeneralOpRoom .gor-leave-row__clear:hover { background: #FDECEC; }
        #tabGeneralOpRoom .admin-sched-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid #EAF1F8; }
        #tabGeneralOpRoom .admin-sched-card h3 { margin: 0; padding: 0; border: 0; font-size: 15px; font-weight: 700; color: #0B3F75; text-align: left; }
        #tabGeneralOpRoom .admin-sched-note { margin: 2px 0 0; font-size: 12.5px; font-weight: 500; color: #6B89A5; }
        #tabGeneralOpRoom .admin-sched-body { padding: 16px 18px; min-width: 0; }
        #tabSiteSettings .site-date-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
        #tabSiteSettings .site-date-grid label { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
        #tabSiteSettings .site-date-grid label > span { font-size: 12.5px; font-weight: 700; color: #0B4A8A; }
        #tabSiteSettings .site-hint { font-size: 12px; color: #6B89A5; }
        #tabSiteSettings .site-confirm { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; }
        #tabSiteSettings .site-confirm > span { font-size: 13px; font-weight: 600; }
        #tabSiteSettings .site-confirm--danger { background: #FDECEC; }
        #tabSiteSettings .site-confirm--danger > span { color: #9B1C1C; }
        #tabSiteSettings .site-confirm--warn { background: #FFF3E0; }
        #tabSiteSettings .site-confirm--warn > span { color: #8A4B00; }
        #tabSiteSettings .site-confirm__buttons { display: flex; gap: 8px; }
        #tabSiteSettings .site-confirm__yes { background: #D32F2F; color: #fff; }
        #tabSiteSettings .site-confirm__yes:hover { background: #B71C1C; }
        #tabSiteSettings .site-notif-global { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 10px; background: #F7FBFF; }
        #tabSiteSettings .site-notif-global.is-off { background: #FDF1F1; }
        #tabSiteSettings .site-notif-list { display: flex; flex-direction: column; gap: 10px; transition: opacity 0.2s ease; }
        #tabSiteSettings .site-notif-list.is-disabled { opacity: 0.45; pointer-events: none; }
        #tabSiteSettings .site-notif-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
        #tabSiteSettings .site-notif-pick { position: relative; }
        #tabSiteSettings .site-notif-toggle { height: 34px; margin: 0; padding: 0 12px; border: 1px solid #DCEAF5; border-radius: 8px; background: #fff; color: #174B7C; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
        #tabSiteSettings .site-notif-toggle:hover { background: #F3F8FD; }
        #tabSiteSettings .site-notif-toggle.is-open { border-color: #9CC8EE; }
        #tabSiteSettings .site-notif-panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 60; width: 300px; max-width: calc(100vw - 40px); display: flex; flex-direction: column; background: #fff; border: 1px solid #DCEAF5; border-radius: 12px; box-shadow: 0 14px 36px rgba(15, 48, 87, 0.16); overflow: hidden; }
        #tabSiteSettings .site-notif-panel__search { padding: 8px; border-bottom: 1px solid #EAF1F8; }
        #tabSiteSettings .site-notif-panel__search input { width: 100%; height: 32px; margin: 0; padding: 0 10px; box-sizing: border-box; border: 1px solid #DCEAF5; border-radius: 8px; outline: none; background: #F7FBFF; font-family: inherit; font-size: 13px; color: #174B7C; }
        #tabSiteSettings .site-notif-panel__tools { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-bottom: 1px solid #F0F5FA; }
        #tabSiteSettings .site-notif-panel__tools button { height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: transparent; color: #087CD1; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
        #tabSiteSettings .site-notif-panel__tools button:hover { background: #EAF5FD; }
        #tabSiteSettings .site-notif-panel__tools .site-notif-panel__clear { color: #6B89A5; }
        #tabSiteSettings .site-notif-panel__tools .site-notif-panel__clear:hover { background: #F3F8FD; }
        #tabSiteSettings .site-notif-panel__list { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; padding: 4px; }
        #tabSiteSettings .site-notif-check { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 8px; border-radius: 7px; background: transparent; cursor: pointer; }
        #tabSiteSettings .site-notif-check:hover { background: #F4F9FE; }
        #tabSiteSettings .site-notif-check.is-on { background: #FDF1F1; }
        #tabSiteSettings .site-notif-check input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: #087CD1; cursor: pointer; }
        #tabSiteSettings .site-notif-check span { font-size: 13px; font-weight: 600; color: #174B7C; overflow-wrap: anywhere; }
        #tabSiteSettings .site-notif-empty { padding: 12px; text-align: center; font-size: 12.5px; color: #8AA3BA; }
        #tabSiteSettings .site-notif-chips { display: flex; flex-wrap: wrap; gap: 6px; }
        #tabSiteSettings .site-notif-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 11px; border-radius: 999px; background: #FDECEC; color: #9B1C1C; font-size: 12.5px; font-weight: 600; }
        #tabSiteSettings .site-notif-chip button { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #C62828; cursor: pointer; }
        #tabSiteSettings .site-notif-chip button:hover { background: #FAD9D9; }
        #tabSiteSettings .site-backup-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 13px; }
        #tabSiteSettings .site-backup-meta span:nth-child(odd) { font-weight: 700; color: #0B4A8A; }
        #tabSiteSettings .site-backup-meta span:nth-child(even) { color: #174B7C; }
        #tabSiteSettings .site-backup-list { margin: 0; padding: 0; }
        #tabSiteSettings .site-backup-list summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: #0B4A8A; }
        #tabSiteSettings .site-backup-list ul { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; line-height: 1.6; color: #174B7C; }
        @media (max-width: 639px) {
            #tabSiteSettings .site-date-grid { grid-template-columns: minmax(0, 1fr); }
        }

        .notification-icon-container {
            position: absolute;
            right: 140px; /* Adjusted to make space for Admin Panel button */
            top: 18px;
            z-index: 100;
        }
        .general-op-room-container {
            position: absolute;
            right: 300px; /* Adjusted to make space for Admin Panel button */
            top: 18px;
            z-index: 100;
        }
        .general-op-room-button {
            background-color: #008CBA; /* Blue */
            color: white;
            padding: 10px 15px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .general-op-room-button:hover {
            background-color: #007bb5; /* Darker blue */
        }
        .general-op-room-dropdown {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 380px; 
    max-width: calc(100vw - 30px); 
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1041; 
    left: 0; 
    top: 40px; 
    border-radius: 5px;
    overflow-y: hidden; 
    overflow-x: auto; 
}
        .general-op-room-dropdown-header {
            background-color: #0066cc; 
            color: white;
            padding: 10px;
            font-weight: bold;
        }
        .general-op-room-list {
            max-height: 400px;
            overflow-y: auto;
            padding: 10px;
            text-align: left;
        }
        .general-op-room-item {
            padding: 8px 5px;
            border-bottom: 1px solid #eee;
            font-size: 0.9em;
            color: #333;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .general-op-room-item:last-child {
            border-bottom: none;
        }
        .general-op-room-item.empty-slot {
            font-style: italic;
            color: #888;
        }
        .general-op-room-item .note-icon {
            font-size: 1em;
            margin-left: 10px;
            opacity: 0.7;
        }
        .general-op-room-item .note-icon:hover {
            opacity: 1;
            color: #0066cc;
        }
        .general-op-room-item .time-input {
            width: 60px;
            padding: 3px;
            border: 1px solid #ccc;
            border-radius: 3px;
            font-size: 0.9em;
        }
        .doctor-private-note-icon {
    color: #ff5722; /* Turuncu */
    font-size: 1.1em;
    margin-left: 5px;
    cursor: pointer;
    opacity: 0.7;
}

.doctor-private-note-icon:hover {
    opacity: 1;
    color: #e64a19; /* Koyu turuncu */
}
        .general-op-room-item .patient-input, .general-op-room-item .procedure-input {
            flex-grow: 1;
            margin: 0 5px;
            padding: 3px;
            border: 1px solid #ccc;
            border-radius: 3px;
            font-size: 0.9em;
        }
        .general-op-room-item .slot-actions {
            display: flex;
            align-items: center;
        }
        .general-op-room-item .slot-actions button {
            background-color: #28a745; 
            color: white;
            border: none;
            padding: 5px 8px;
            border-radius: 3px;
            cursor: pointer;
            font-size: 0.8em;
            margin-left: 5px;
        }
        .general-op-room-item .slot-actions button.delete-slot-button {
            background-color: #dc3545; /* Red for delete */
        }
        .general-op-room-item .slot-actions button:hover {
            opacity: 0.9;
        }
        .general-op-room-footer {
            padding: 10px;
            background-color: #eee;
            text-align: center;
            font-size: 0.85em;
        }

        .notification-icon {
            background-color: #f44336; /* Red */
            color: white;
            padding: 10px 15px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            position: relative; /* For badge positioning */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .notification-icon:hover {
            background-color: #d32f2f; /* Darker red */
        }

        .notification-badge {
            background-color: #000; /* Black */
            color: white;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 10px;
            position: absolute;
            top: -5px;
            right: -5px;
            display: none; /* Hidden by default */
        }

        .notification-dropdown {
            display: none; /* Hidden by default */
            position: absolute;
            background-color: #f9f9f9;
            min-width: 300px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            right: 0;
            top: 45px; /* Below the icon */
            border-radius: 5px;
            overflow: hidden;
        }
         
    #generalNotificationDropdown {
        left: 0; 
        right: auto; 
        min-width: 320px; 
        max-width: calc(100vw - 30px); 
        overflow-x: auto; 
        overflow-y: hidden; 
        z-index: 1041; 
    }

        .notification-dropdown-header {
            background-color: #0066cc; 
            color: white;
            padding: 10px;
            font-weight: bold;
        }

        .notification-list {
            max-height: 300px;
            overflow-y: auto;
            padding: 10px;
        }

        .notification-item {
            padding: 10px 5px;
            border-bottom: 1px solid #eee;
            font-size: 0.9em;
            color: #333;
            text-align: left;
            cursor: pointer; /* Make items clickable */
        }

        .notification-item:last-child {
            border-bottom: none;
        }

        .notification-item.unread {
            background-color: #e6f7ff; /* Light blue for unread */
            font-weight: bold;
        }

        .notification-item.read {
            color: #666; /* Dimmer color for read */
        }

        .notification-item a { /* For potential links inside notifications */
            color: #0066cc;
            text-decoration: none;
        }

        .notification-item a:hover {
            text-decoration: underline;
        }

        .notification-footer {
            padding: 10px;
            background-color: #eee;
            text-align: center;
            font-size: 0.85em;
        }
        .notification-footer a { /* For Mark All As Read Link */
            color: #0066cc;
            text-decoration: none;
            margin-right: 15px;
        }

        .notification-footer a:hover {
            text-decoration: underline;
        }

        .no-notifications {
            padding: 20px;
            text-align: center;
            color: #777;
        }

        .delete-all-notifications-button { /* Class for delete all button */
            background-color: #dc3545; /* Bootstrap danger red */
            color: white;
            padding: 8px 12px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 0.9em;
            margin-top: 10px; /* Align with toggle button */
        }

        .delete-all-notifications-button:hover {
            background-color: #c82333; /* Darker bootstrap danger */
        }
        .notification-delete-btn {
    background-color: #e74c3c; /* Daha yumuşak bir kırmızı */
    color: white;
    border: none;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    float: right; /* Sağa yasla */
    margin-left: 8px;
    opacity: 0.8;
}

.notification-delete-btn:hover {
    background-color: #c0392b; /* Üzerine gelince koyulaşsın */
    opacity: 1;
}
        .admin-button#toggleMyNotificationsBtn {
            font-size: 0.85em !important;
            padding: 5px 10px !important;
            margin-top: 10px !important; /* Adjusted for consistent spacing */
            background-color: #f0ad4e !important; /* Orange warning */
        }
        .admin-button#toggleMyNotificationsBtn:hover {
             background-color: #ec971f !important; /* Darker orange */
        }
.doctor-private-note-icon {
    position: relative; /* İçindeki mutlak konumlandırılmış span için */
}
.doctor-private-note-icon span {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #DC3545; /* Daha kırmızı yaptık */
    color: white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 1px solid white;
}


@media (max-width: 768px) {
    body {
        padding: 5px; 
    }

    .header {
        padding: 15px 0;
        display: flex;
        flex-direction: column; 
        align-items: center; 
        gap: 12px; 
    }
    
    
    #logoutButton, #adminPanelButton, .notification-icon-container, .general-op-room-container, .nobet-izni-container {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        width: 90%; 
        max-width: 350px;
        box-sizing: border-box;
        margin: 0;
    }
    
    /* Nöbet İzni butonu mobil için özel düzeltmeler - iOS ve Android uyumlu */
    .nobet-izni-container button {
        width: 100%;
        padding: 12px 15px !important;
        font-size: 16px !important; /* iOS zoom engellemek için minimum 16px */
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(106, 13, 173, 0.3) !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        cursor: pointer !important;
    }
    
    /* iOS Safari için tıklanabilir elementler */
    .nobet-izni-tabs button,
    .nobet-izni-container button,
    #nobetIzniSubmitRequest {
        cursor: pointer !important;
        -webkit-appearance: none !important;
        touch-action: manipulation !important;
    }
    
     #logoutButton {
        order: 99; 
    }
    
    .header > input[type="date"], .header > button {
        width: 90%;
        max-width: 350px;
        box-sizing: border-box;
        margin-top: 0;
    }
    .header > label {
        margin-bottom: -5px; 
    }
    #patientSearchInput {
        width: 70% !important;
    }

   
#leftPanelControlsContainer {
    position: fixed; 
    top: 130px;      
    left: 10px;      
    z-index: 1040;   
    
    display: flex;          
    flex-direction: column; 
    align-items: flex-start;
    gap: 12px;              
    
    
    background-color: rgba(240, 240, 240, 0.9);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

    .general-op-room-container, .gor-notification-icon-container, .nobet-izni-container {
        position: relative; 
        width: 90%;
        max-width: 350px;
    }

    
    .notification-dropdown, .general-op-room-dropdown {
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border-radius: 0;
    background-color: rgba(0,0,0,0.3); 
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 10px;
}
    .notification-dropdown .notification-list,
    .general-op-room-dropdown .general-op-room-list {
        background-color: #f9f9f9;
        border-radius: 8px;
        width: 85%;
        max-width: 450px;
        max-height: 65vh; 
        overflow-y: auto; 
        -webkit-overflow-scrolling: touch; 
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        pointer-events: auto;
    }
    
    .notification-dropdown .notification-footer,
    .general-op-room-dropdown .general-op-room-footer {
        width: 85%;
        max-width: 450px;
        background-color: #eee;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
        pointer-events: auto;
    }
    
    .notification-dropdown .notification-dropdown-header,
    .general-op-room-dropdown .general-op-room-dropdown-header {
         width: 85%;
         max-width: 450px;
         border-top-left-radius: 8px;
         border-top-right-radius: 8px;
         pointer-events: auto;
    }
    
    /* Nöbet İzni Dropdown mobil wrapper stili */
    .nobet-izni-mobile-wrapper {
        width: 85% !important;
        max-width: 450px;
        background-color: #f9f9f9;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: auto;
    }


    /* --- Genel Tablo ve Modal Düzenlemeleri --- */
    #appointmentTable th, #appointmentTable td {
        padding: 8px 5px;
        font-size: 0.9em;
    }

    body:has(#loginPanel:not([style*="display: none"])) { padding: 0; }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
        /* Action cell CSS'i kaldırıldı - kaydet butonu kaldırıldı */
        /* Kaydet butonu CSS'i kaldırıldı - otomatik kaydetme kullanılıyor */
    
    .admin-panel-grid-container {
        grid-template-columns: 1fr; /* Admin panelinde her bölüm tam genişlik kaplasın */
    }
    #adminSectionSpecialSlotManagement { grid-column: auto; min-width: 0; }
}

/* iOS Safari için özel düzeltmeler */
#leftPanelControlsContainer[style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#leftPanelControlsContainer[style*="display: flex"] {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* iOS Safari'de child elementlerin de gizlenmesini garanti et */
#leftPanelControlsContainer[style*="display: none"] .left-panel-child {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Child elementlerin görünürlüğü JavaScript tarafından kontrol edilir, CSS zorlaması kaldırıldı */
#leftPanelControlsContainer[style*="display: flex"] .left-panel-child {
    /* display: block !important; - Bu satır kaldırıldı, JavaScript kontrol eder */
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Ekstra güvenlik: Parent gizliyken child'ları kesinlikle gizle */
#leftPanelControlsContainer[style*="visibility: hidden"] .left-panel-child,
#leftPanelControlsContainer[style*="opacity: 0"] .left-panel-child {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* iOS Safari için özel webkit düzeltmesi */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari için */
    #leftPanelControlsContainer {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    #leftPanelControlsContainer[style*="display: none"] {
        display: none !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    #leftPanelControlsContainer[style*="display: none"] * {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Ana sayfa kabuğu. Yazma kuralları aynı kalır; düğme kimlikleri durur. */
:root {
    --bg-page: #F5FAFF;
    --bg-card: #FFFFFF;
    --bg-soft: #F7FBFF;
    --bg-soft-2: #F3F8FD;
    --bg-icon: #EAF5FD;
    --bg-header: #F8FBFF;
    --bg-search: #EEF4FB;
    --text: #174B7C;
    --text-strong: #0B3F75;
    --text-strong-2: #0B4A8A;
    --text-muted: #6B89A5;
    --text-placeholder: #8AA3BA;
    --primary: #087CD1;
    --primary-hover: #064B8D;
    --primary-2: #0A6DC7;
    --border: #DCEAF5;
    --border-card: #E1ECF6;
    --border-divider: #EAF1F8;
    --border-row: #F0F5FA;
    --ring: #9CC8EE;
    --danger: #C62828;
    --danger-bg: #FDECEC;
    --danger-border: #FAD9D9;
    --danger-dot: #E53935;
    --success: #1C7A48;
    --success-bg: #E5F8EE;
    --warn-bg: #FFF3E0;
    --sidebar-bg: linear-gradient(180deg, #0F3057 0%, #0E2D51 45%, #0E2C50 100%);
    --sidebar-text: #EAF2FB;
    --sidebar-divider: rgba(160, 190, 225, 0.35);
    --backdrop: rgba(8, 24, 45, 0.45);
    --focus-ring: 0 0 0 3px rgba(8, 124, 209, 0.12);
    --shadow-card: 0 2px 10px rgba(20, 70, 120, 0.04);
    --shadow-modal: 0 24px 60px rgba(8, 24, 45, 0.3);
    --shadow-pop: 0 14px 36px rgba(15, 48, 87, 0.16);
    --shadow-pop-2: 0 18px 44px rgba(15, 48, 87, 0.18), 0 2px 6px rgba(15, 48, 87, 0.06);
    --ring-inset: inset 0 0 0 1px #9CC8EE;
    --search-ring-focus: 0 0 0 1px #9CC8EE, 0 0 0 4px rgba(8, 124, 209, 0.12);
    --search-ring: inset 0 0 0 1px #E1ECF6;
}
body:has(#appPanel[style*="display: block"]),
body:has(#appPanel[style*="display:block"]) {
    padding: 0;
    background: var(--bg-page);
    height: 100vh;
    overflow: hidden;
}
.app-shell button { font-family: inherit; }
.app-shell a { color: var(--primary); text-decoration: none; }
.app-shell a:hover { color: var(--primary-hover); }
.app-shell input::placeholder { color: var(--text-placeholder); opacity: 1; }
.app-shell, .app-shell *, .app-shell *::before, .app-shell *::after { box-sizing: border-box; }
body:has(#appPanel[style*="display: block"]),
body:has(#appPanel[style*="display:block"]) {
    padding: 0;
    overflow: hidden;
    height: 100dvh;
    background: #F5FAFF;
}
#appPanel.app-shell[style*="display: block"],
#appPanel.app-shell[style*="display:block"] {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
    overflow: hidden;
    background: #F5FAFF;
    color: #174B7C;
    font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
.shell-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 190;
    padding: 0;
    border: 0;
    background: var(--backdrop);
    opacity: 0;
    pointer-events: none;
    touch-action: none;
    transition: opacity 0.3s ease;
}
.app-sidebar {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 200;
    overscroll-behavior: contain;
    flex: 0 0 0px;
    width: 0px;
    height: 100%;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    transform: translateX(0);
    box-shadow: none;
    transition: flex-basis 0.3s ease, width 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, visibility 0.3s;
    background: var(--sidebar-bg);
    color: #fff;
}
.app-sidebar__rail {
    width: 253px;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
body.shell-sidebar-open .app-sidebar {
    flex-basis: 253px;
    width: 253px;
    visibility: visible;
}
.app-brand { flex: 0 0 auto; padding: 12px 26px 0; }
.app-brand__mark {
    width: 72px;
    height: 72px;
    margin-left: 2px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 20, 50, 0.25);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.app-brand__mark:hover { transform: scale(1.04); }
.app-brand__logo {
    display: block;
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.app-brand__title { margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: 0.2px; line-height: 1.1; }
.app-brand__dept { margin-top: 4px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.app-brand__system {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(160, 190, 225, 0.28);
    font-size: 11px;
    color: #D4E2F1;
    line-height: 1.3;
}
.app-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 12px;
    padding: 0 14px 8px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.app-nav__current,
.app-shell .shell-nav-btn,
.app-shell #generalOpRoomButton {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 17px;
    width: 100%;
    height: 37px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--sidebar-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}
.app-shell .app-nav__current,
.app-shell .app-nav__current:hover {
    background: linear-gradient(180deg, #0E86E4, #0977D6);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 2px 6px rgba(0, 30, 70, 0.25);
}
.app-shell #nobetIzniButton {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 17px;
    padding: 0 12px !important;
    font-size: 14px !important;
}
.app-shell .shell-nav-btn:hover:not(.app-nav__current),
.app-shell #generalOpRoomButton:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.app-shell .app-search__go:hover { background: #E3EEF8; }
.app-search__clear {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #E3EEF8;
    color: #174B7C;
    cursor: pointer;
}
.app-search__clear:hover { background: #D3E4F4; }
.app-search__clear[hidden] { display: none; }
.app-nav__rule { height: 1px; margin: 6px 4px 6px 12px; background: var(--sidebar-divider); }
.app-shell #leftPanelControlsContainer,
.app-shell .general-op-room-container,
.app-shell .nobet-izni-container {
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    gap: 3px;
}
.app-shell #leftPanelControlsContainer { flex-direction: column; align-items: stretch; }
.app-sidebar__foot {
    margin-top: auto;
    flex: 0 0 auto;
    padding: 6px 8px calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    overflow: visible;
    text-align: center;
    font-size: 10px;
    line-height: 1.45;
    letter-spacing: 0.2px;
    color: #D7E4F2;
    font-weight: 500;
}
.app-sidebar__foot img { display: block; width: 160px; height: auto; max-height: 63px; object-fit: contain; opacity: 0.9; flex: 0 0 auto; }
.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.app-top {
    height: 54px;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px 0 27px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--bg-header);
    border-bottom: 1px solid #E3EDF6;
}
.app-top__start {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1 1 auto;
}
.shell-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-left: -6px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #0B5FAE;
    cursor: pointer;
}
.shell-menu:hover { background: #EAF5FD; }
.app-search {
    flex: 0 1 260px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 6px 0 14px;
    border-radius: 999px;
    background: var(--bg-search);
    box-shadow: var(--search-ring);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}
.app-search:focus-within {
    background: var(--bg-card);
    box-shadow: var(--search-ring-focus);
}
.app-shell .app-search__go,
.app-shell #patientSearchButton {
    flex: 0 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0 0 0 -6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.app-shell #patientSearchInput {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    color: #174B7C;
}
.app-shell #patientSearchInput::placeholder { color: #8AA3BA; }
.app-top__end { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; margin-left: 16px; min-width: 0; }
.app-hello { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; min-width: 0; line-height: 1.25; text-align: right; }
.app-welcome {
    margin: 0;
    font-size: 14px;
    color: #4F80AE;
    white-space: nowrap;
}
.app-welcome strong { font-weight: 700; color: #0B4A8A; }
.app-shell #dayGroupDisplay {
    position: static;
    left: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #087CD1;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    z-index: auto;
}
.app-shell .notification-icon-container {
    position: relative;
    right: auto;
    top: auto;
    width: auto !important;
    max-width: none !important;
    z-index: 40;
}
.app-shell .notification-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #E8F2FC;
    color: #0B5FAE;
    transition: background 0.2s ease;
}
.app-shell .notification-icon:hover,
.app-shell .notification-icon-container:has(#notificationDropdown[style*="display: block"]) .notification-icon,
.app-shell .notification-icon-container:has(#notificationDropdown[style*="display:block"]) .notification-icon { background: #DCEBFA; }
.app-shell .notification-badge {
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--danger-dot);
    border: 1.5px solid #E8F2FC;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.app-shell .notification-badge[style*="display: block"],
.app-shell .notification-badge[style*="display:block"] { display: inline-flex; }
.app-shell #notificationDropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: -6px;
    left: auto;
    bottom: auto;
    z-index: 70;
    width: 340px;
    height: auto;
    max-height: none;
    padding: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-pop-2);
    overflow: hidden;
    transform-origin: top right;
}
.app-shell #notificationDropdown[style*="display: block"],
.app-shell #notificationDropdown[style*="display:block"] {
    display: block;
    animation: appNotifIn 0.18s ease;
}
@keyframes appNotifIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.app-shell #notificationDropdown .notification-dropdown-header {
    width: auto;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--border-divider);
    border-radius: 0;
    background: transparent;
    color: var(--text-strong);
    font-size: 15px;
    font-weight: 700;
}
.app-shell #notificationDropdown .notification-list {
    display: flex;
    flex-direction: column;
    max-height: 360px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.app-shell #notificationDropdown .no-notifications {
    padding: 26px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-placeholder);
    background: transparent;
}
.app-shell #notificationDropdown .notification-item {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-row);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
.app-shell #notificationDropdown .notification-item.unread { background: var(--bg-page); font-weight: 800; }
.app-shell #notificationDropdown .notification-item small {
    display: block;
    margin-top: 3px;
    color: var(--text-placeholder);
    font-size: 11.5px;
    font-weight: 600;
}
.app-shell #notificationDropdown .notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: auto;
    max-width: none;
    padding: 10px 12px;
    border-top: 1px solid var(--border-divider);
    border-radius: 0;
    background: #FBFDFF;
}
.app-shell #notificationDropdown #markAllAsRead {
    padding: 4px 6px;
    margin: -4px -6px;
    border-radius: 6px;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
}
.app-shell #notificationDropdown #markAllAsRead:hover { background: #EEF5FC; }
.app-shell #notificationDropdown #deleteAllNotificationsButton,
.app-shell #notificationDropdown #toggleMyNotificationsBtn {
    height: 32px;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12.5px !important;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    align-self: center;
}
.app-shell #notificationDropdown #deleteAllNotificationsButton {
    border: 0;
    background: var(--danger-bg);
    color: var(--danger);
}
.app-shell #notificationDropdown #deleteAllNotificationsButton:hover { background: var(--danger-border); }
.app-shell #notificationDropdown #toggleMyNotificationsBtn {
    border: 1px solid var(--border);
    background: #fff;
    color: #C26A00;
}
.app-shell #notificationDropdown #toggleMyNotificationsBtn:hover { background: var(--bg-soft-2); }
@media (max-width: 639px) {
    .app-top { padding: 0 16px 0 14px; }
    .app-shell #notificationDropdown[style*="display: block"],
    .app-shell #notificationDropdown[style*="display:block"] {
        position: fixed;
        top: 68px;
        right: 12px;
        left: auto;
        width: min(340px, calc(100vw - 24px));
        max-height: calc(100vh - 84px);
        overflow-y: auto;
    }
}
@media (max-width: 759px) {
    .app-hello { display: none; }
}
@media (max-width: 1012px) {
    body.shell-sidebar-open .app-hello { display: none; }
}
@media (min-width: 760px) and (max-width: 1023px) {
    body.shell-sidebar-open .app-hello { display: flex; }
}
.app-shell #nobetIzniDropdown { z-index: 1040 !important; }
.app-shell #logoutButton[style*="display: block"],
.app-shell #logoutButton[style*="display:block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #FDECEC;
    color: #D32F2F;
    cursor: pointer;
}
.app-shell #logoutButton:hover { background: #FAD9D9; }
.app-board { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; overflow: auto; padding: 22px 24px 40px 27px; background: var(--bg-page); }
@media (max-width: 1023px) {
    .app-board { padding: 22px 20px 40px 20px; overscroll-behavior-y: none; }
    .app-main.is-pulling { will-change: transform; }
}
@media (max-width: 639px) {
    .app-board { padding: 18px 14px 32px 14px; }
}
.app-shell #generalDateNoteDisplay {
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: min(560px, 100%);
    max-width: 560px;
    margin: 0 auto 16px;
    padding: 14px 40px;
    border: 1px solid #F3D48A;
    border-radius: 14px;
    background: linear-gradient(90deg, #FFF6DB 0%, #FFFAEC 100%);
    box-shadow: 0 0 0 4px rgba(243, 212, 138, 0.25), 0 6px 18px rgba(180, 120, 0, 0.10);
    text-align: center;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.app-shell #generalDateNoteDisplay[style*="display: block"],
.app-shell #generalDateNoteDisplay[style*="display:block"] { display: flex !important; }
.app-shell #generalDateNoteDisplay:hover {
    box-shadow: 0 0 0 6px rgba(243, 212, 138, 0.45), 0 10px 26px rgba(180, 120, 0, 0.18);
    transform: translateY(-1px);
}
.day-note__icon {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #FFE7A8;
    color: #A15C00;
}
.day-note__copy { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.app-shell #generalDateNoteDisplay strong {
    display: block;
    margin: 0;
    color: #B45309;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
}
.app-shell #generalDateNoteText { color: #4A3200; font-size: 17px; font-weight: 700; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-card {
    background: #fff;
    border: 1px solid #E1ECF6;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(20, 70, 120, 0.04);
    min-width: 0;
    overflow: hidden;
}
.app-datebar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border-divider);
}
.app-dategrp {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex-wrap: wrap;
    flex: 0 1 auto;
}
.app-datehead { position: relative; display: flex; align-items: center; }
.app-datehead__btn {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: -4px 0 -4px -4px;
    padding: 4px 10px 4px 4px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}
.app-datehead__btn:hover { background: #F3F8FD; }
.app-datehead__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: #EAF5FD;
    color: #087CD1;
}
.app-datehead__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-datehead__line { display: flex; align-items: center; gap: 8px; }
.app-shell #currentDate {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0B3F75;
    white-space: nowrap;
}
#currentWeekday { font-size: 12.5px; font-weight: 500; color: #6B89A5; white-space: nowrap; }
.app-shell #appointmentDate {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.app-cal {
    position: absolute;
    top: calc(100% + 12px);
    left: -4px;
    z-index: 60;
    width: 300px;
    padding: 14px 14px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-pop), 0 2px 6px rgba(15, 48, 87, 0.06);
}
.app-cal[hidden] { display: none !important; }
.app-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.app-cal__title { font-size: 14px; font-weight: 700; color: var(--text-strong); }
.app-cal__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-strong);
    cursor: pointer;
}
.app-cal__nav:hover { background: #EEF5FC; }
.app-cal__week, .app-cal__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.app-cal__week { margin-bottom: 4px; }
.app-cal__week div {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-placeholder);
}
.app-cal__day {
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.app-cal__day:hover { background: #EEF5FC; }
.app-cal__day.is-out { color: #B5C6D6; }
.app-cal__day.is-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--ring); }
.app-cal__day.is-selected { background: var(--primary); color: #fff; font-weight: 700; box-shadow: none; }
.app-cal__day.is-selected:hover { background: var(--primary-2); }
.app-datenav { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.app-datebar__hello { display: none; flex-direction: column; align-items: flex-end; min-width: 0; line-height: 1.25; text-align: right; }
.app-datebar__greet { font-size: 13px; color: #4F80AE; }
.app-datebar__hello strong { font-size: 14.5px; font-weight: 700; color: var(--text-strong-2); overflow-wrap: anywhere; }
.app-datebar__hello #datebarGroup { font-size: 12.5px; font-weight: 800; color: var(--primary); }
@media (max-width: 759px) {
    .app-dategrp { flex: 1 1 100%; }
    .app-datebar__hello { display: flex; }
}
@media (max-width: 1012px) {
    body.shell-sidebar-open .app-dategrp { flex: 1 1 100%; }
    body.shell-sidebar-open .app-datebar__hello { display: flex; }
}
@media (min-width: 760px) and (max-width: 1023px) {
    body.shell-sidebar-open .app-dategrp { flex: 0 1 auto; }
    body.shell-sidebar-open .app-datebar__hello { display: none; }
}
.day-closed {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding: 14px 18px;
    border: 1px solid #D9E2EC;
    border-radius: 12px;
    background: #F1F4F8;
}
.day-closed[hidden] { display: none; }
.day-closed__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #E2E8F0;
    color: #52657A;
}
.day-closed__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.day-closed__tag { font-size: 11.5px; font-weight: 800; letter-spacing: 0.6px; color: #52657A; }
.day-closed__text { font-size: 15px; font-weight: 700; line-height: 1.4; color: #2F3F52; }
.limit-display__dot {
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    background: #087CD1;
    box-shadow: 0 0 0 3px rgba(8, 124, 209, 0.18);
}
.limit-display__label { font-size: 12.5px; font-weight: 600; color: #174B7C; }
.app-shell #remainingLimit.limit-green { color: #087CD1; }
.app-shell #remainingLimit.limit-red { color: #C62828; }
.app-shell .limit-display:has(#remainingLimit.limit-red) { background: #FDECEC; }
.app-shell .limit-display:has(#remainingLimit.limit-red) .limit-display__label { color: #A32020; }
.app-shell .limit-display:has(#remainingLimit.limit-red) .limit-display__dot { background: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.2); }
.app-shell #remainingLimit.limit-muted { color: #52657A; }
.app-daynav {
    display: flex;
    align-items: center;
    height: 34px;
    border: 1px solid #DCEAF5;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
}
.app-daynav button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0B3F75;
    cursor: pointer;
}
.app-daynav__rule { width: 1px; height: 18px; background: #DCEAF5; }
.app-daynav button:hover { background: #EEF5FC; }
.app-shell .limit-display[style*="display: block"],
.app-shell .limit-display[style*="display:block"] {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    height: 34px;
    margin: 0;
    padding: 0 16px 0 14px;
    border-radius: 999px;
    background: #EAF5FD;
    color: #0B4A8A;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}
.app-shell #remainingLimit { margin-left: 0; font-size: 13px; font-weight: 800; }
.app-shell #undoLastActionButton { margin: 0; }
.app-shell #appointmentTable {
    width: calc(100% - 20px);
    margin: 4px 10px 14px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    box-shadow: none;
    background: transparent;
}
.app-shell #appointmentTable th {
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0B4A8A;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-shell #appointmentTable th:nth-child(1) { width: 10%; padding-left: 11px; }
.app-shell #appointmentTable th:nth-child(2) { width: 19%; padding-left: 14px; }
.app-shell #appointmentTable th:nth-child(3) { width: 29%; padding-left: 14px; }
.app-shell #appointmentTable th:nth-child(4) { width: 28%; padding-left: 14px; }
.app-shell #appointmentTable th:nth-child(5) { padding-left: 24px; }
.app-shell #appointmentTable td {
    height: auto;
    min-height: 42px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #EDF3F9;
    border-right: 1px solid #EDF3F9;
    background: transparent;
    font-size: 12.5px;
    font-weight: 600;
    color: #174B7C;
    vertical-align: middle;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}
.app-shell #appointmentTable .th-proc-short { display: none; }
.app-shell #appointmentTable td.time-column {
    padding: 10px 0 10px 28px;
    font-weight: 700;
    color: #0B3F75;
}
.app-shell #appointmentTable td.doctor-cell,
.app-shell #appointmentTable td.status-cell { border-right: 0; }
.app-shell #appointmentTable td.status-cell { padding: 10px 4px 10px 24px; background: transparent; white-space: nowrap; font-weight: 600; }
.app-shell #appointmentTable tr:nth-child(even) { background: transparent; }
.app-shell #appointmentTable .section-header {
    height: auto;
    padding: 12px 6px 12px 14px;
    border: 0;
    border-bottom: 1px solid #F3DCC0;
    border-radius: 8px 8px 0 0;
    background:
        radial-gradient(circle at 88% 135%, #FFD58A 0 18px, rgba(255, 205, 120, 0.55) 19px 34px, rgba(255, 214, 150, 0.22) 35px 70px, rgba(255, 228, 190, 0) 110px),
        linear-gradient(90deg, #FFF8EE 0%, #FFF3E2 55%, #FFE9CF 100%);
    color: #0B3F75;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1px;
    text-align: left;
    overflow-wrap: normal;
}
.app-shell #appointmentTable .section-header--ogle,
.app-shell #appointmentTable .section-header.special-section-header {
    border-top: 18px solid #fff;
    background-clip: padding-box;
}
.app-shell #appointmentTable .section-header--ogle {
    border-bottom-color: #CFE4F7;
    background:
        radial-gradient(circle at 88% 22%, #FFE680 0 13px, rgba(255, 226, 110, 0.6) 14px 22px, rgba(255, 236, 160, 0.28) 23px 46px, rgba(255, 245, 210, 0) 80px),
        linear-gradient(90deg, #F4FAFF 0%, #E8F4FE 55%, #D8ECFD 100%);
}
.app-shell #appointmentTable .section-header.special-section-header {
    border-bottom-color: #DDD0F5;
    background: linear-gradient(90deg, #FAF7FF 0%, #F2EBFE 60%, #E9DEFC 100%);
    color: #0B3F75;
}
.app-shell #appointmentTable tbody tr:hover td:not(.section-header) { background: #F4F9FE; }
.app-shell #appointmentTable .dark-gray-slot-row td:not(.status-cell),
.app-shell #appointmentTable .dark-gray-slot-row:hover td:not(.status-cell) {
    background: #6E7782;
    color: #FFFFFF;
    border-right-color: #7C858F;
}
.app-shell #appointmentTable tr:has(.status-cell.locked-slot) td:not(.status-cell),
.app-shell #appointmentTable tr:has(.status-cell.locked-slot):hover td:not(.status-cell) {
    background: #EEF2F6;
    color: #8A99A8;
    border-right-color: #E2E8EF;
}
.app-shell #appointmentTable .dark-gray-slot-row .status-cell,
.app-shell #appointmentTable .dark-gray-slot-row .status-cell.booked,
.app-shell #appointmentTable .dark-gray-slot-row .status-cell.available,
.app-shell #appointmentTable .dark-gray-slot-row .status-cell.locked-slot,
.app-shell #appointmentTable td.status-cell.booked,
.app-shell #appointmentTable td.status-cell.available,
.app-shell #appointmentTable td.status-cell.locked-slot {
    background: transparent !important;
    color: inherit;
    font-style: normal;
}
.app-shell #appointmentTable .special-slot-row .time-column,
.app-shell #appointmentTable .special-slot-time-cell { color: #0B3F75; font-weight: 700; }
.app-shell #appointmentTable tr:has(.status-cell.locked-slot) .time-column,
.app-shell #appointmentTable tr:has(.status-cell.locked-slot) .special-slot-time-cell { color: #8A99A8; }
.app-shell #appointmentTable tr.dark-gray-slot-row:has(.status-cell.locked-slot) td:not(.status-cell),
.app-shell #appointmentTable tr.dark-gray-slot-row:has(.status-cell.locked-slot):hover td:not(.status-cell) {
    background: #6E7782;
    color: #FFFFFF;
    border-right-color: #7C858F;
}
.app-shell #appointmentTable tr.dark-gray-slot-row:has(.status-cell.locked-slot) .time-column,
.app-shell #appointmentTable tr.dark-gray-slot-row:has(.status-cell.locked-slot) .special-slot-time-cell { color: #FFFFFF; }
.app-shell #appointmentTable .patient-cell,
.app-shell #appointmentTable .procedure-cell {
    white-space: normal;
    overflow: hidden;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    line-height: 1.3;
    vertical-align: middle;
}
.app-shell #appointmentTable .patient-cell:focus,
.app-shell #appointmentTable .procedure-cell:focus {
    outline: none;
    border-radius: 5px;
    background: rgba(8, 124, 209, 0.08);
    box-shadow: inset 0 0 0 1px #9CC8EE;
}
.app-shell #appointmentTable .doctor-cell {
    position: relative;
}
.app-shell #appointmentTable td.doctor-cell.is-doc-editing { z-index: 90; }
.app-shell #doctorChangeDropdown {
    position: absolute;
    top: calc(100% - 4px);
    left: 4px;
    right: 4px;
    z-index: 80;
    width: calc(100% - 8px);
    min-width: 0;
    height: 36px;
    margin: 0;
    padding: 0 10px;
    border: 1.5px solid #6FB0E8;
    border-radius: 10px;
    outline: none;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(8, 124, 209, 0.14), 0 10px 24px rgba(15, 48, 87, 0.18);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: #174B7C;
    cursor: pointer;
    box-sizing: border-box;
}
.app-shell #appointmentTable .doctor-cell__line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 6px;
    max-width: 100%;
    padding: 3px 0;
}
.app-shell #appointmentTable .doctor-cell__name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.25;
    font-weight: 600;
}
.app-shell #appointmentTable .slot-icons {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    flex: 0 0 auto;
}
.app-shell #appointmentTable .change-doctor-icon,
.app-shell #appointmentTable .note-icon,
.app-shell #appointmentTable .doctor-private-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border-radius: 6px;
    background: transparent;
    color: #7F97AE;
    font-size: 0;
    font-weight: 400;
    line-height: 0;
    opacity: 1;
    vertical-align: middle;
    cursor: pointer;
}
.app-shell #appointmentTable .note-icon { color: #9AB0C4; }
.app-shell #appointmentTable .note-icon--on { color: #087CD1; }
.app-shell #appointmentTable .doctor-private-note-icon { position: relative; color: #B7A57E; }
.app-shell #appointmentTable .doctor-private-note-icon--on { color: #D98A00; }
.app-shell #appointmentTable .change-doctor-icon:hover { background: #EAF3FC; color: #174B7C; font-weight: 400; }
.app-shell #appointmentTable .note-icon:hover { background: #EAF3FC; }
.app-shell #appointmentTable .doctor-private-note-icon:hover { background: #FFF4E0; }
.app-shell #appointmentTable .priv-note-count,
.app-shell #appointmentTable .doctor-private-note-icon span {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 15px;
    width: auto;
    height: 15px;
    padding: 0 3px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #E5484D;
    color: #FFFFFF;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 1.5px #FFFFFF;
}
.app-shell .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 16px;
    max-width: 100%;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
}
.app-shell .status-pill__dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.app-shell .status-pill--empty { background: #E5F8EE; color: #24A861; }
.app-shell .status-pill--empty .status-pill__dot { background: #24B36B; }
.app-shell .status-pill--full { background: #FDECEC; color: #D32F2F; }
.app-shell .status-pill--full .status-pill__dot { background: #E53935; }
.app-shell .status-pill--lock { background: #E6EBF1; color: #5B6B7C; gap: 8px; }
.app-shell .status-pill svg { flex: 0 0 auto; }
@media (max-width: 639px) {
    .app-shell #appointmentTable td { height: auto; min-height: 0; overflow: hidden; }
    .app-shell #appointmentTable { width: calc(100% - 4px); margin: 4px 2px 10px; }
    .app-shell #appointmentTable th { font-size: 10px; }
    .app-shell #appointmentTable .th-proc-long { display: none; }
    .app-shell #appointmentTable .th-proc-short { display: inline; }
    .app-shell #appointmentTable th:nth-child(1),
    .app-shell #appointmentTable td.time-column { width: 42px; padding: 16px 2px; }
    .app-shell #appointmentTable th:nth-child(2),
    .app-shell #appointmentTable th:nth-child(3),
    .app-shell #appointmentTable th:nth-child(4) { width: auto; padding-left: 3px; }
    .app-shell #appointmentTable th:nth-child(5) { width: 58px; padding-left: 2px; }
    .app-shell #appointmentTable td { padding: 16px 3px; }
    .app-shell #appointmentTable td.time-column { padding: 16px 2px; overflow: visible; }
    .app-shell #appointmentTable td.status-cell { width: 58px; padding: 12px 1px; overflow: visible; }
    .app-shell #appointmentTable .doctor-cell__line {
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
        width: 100%;
        gap: 1px;
    }
    .app-shell #appointmentTable .doctor-cell__name {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
    .app-shell #appointmentTable .slot-icons {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        gap: 0;
    }
    .app-shell #appointmentTable .change-doctor-icon,
    .app-shell #appointmentTable .note-icon,
    .app-shell #appointmentTable .doctor-private-note-icon {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
    }
    .app-shell .status-pill,
    .app-shell .status-pill--lock {
        display: flex;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 16px;
        box-sizing: border-box;
        gap: 2px;
        padding: 2px 2px;
        font-size: 10px;
        line-height: 1.15;
        white-space: normal;
        overflow: visible;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .app-shell .status-pill__text {
        min-width: 0;
        flex: 1 1 0;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }
}
.sp-perm { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.sp-perm__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; width: 100%; min-width: 0; }
.sp-perm__title { display: block; min-width: 0; font-size: 13.5px; font-weight: 700; color: #0B3F75; }
.sp-perm__summary { display: block; font-size: 12px; color: #6B89A5; }
.sp-perm__pick { position: relative; }
.sp-perm__toggle, .sp-perm__actions button {
    height: 34px; padding: 0 12px; border: 1px solid #DCEAF5; border-radius: 8px;
    background: #FFFFFF; color: #174B7C; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.sp-perm__toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sp-perm__actions button { height: 26px; padding: 0 6px; border: 0; background: transparent; color: #087CD1; }
.sp-perm__actions button:last-child { color: #6B89A5; }
.sp-perm__mode {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sp-perm__chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
.sp-perm__chip {
    display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 4px 0 11px;
    border-radius: 999px; background: #EAF5FD; color: #0B4A8A; font-size: 12.5px; font-weight: 600;
}
.sp-perm__chip button {
    display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: #4F80AE; cursor: pointer;
}
.sp-perm__panel {
    display: flex; flex-direction: column; position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
    width: 300px; max-width: calc(100vw - 40px); box-sizing: border-box; max-height: 320px;
    background: #FFFFFF; border: 1px solid #DCEAF5; border-radius: 12px; box-shadow: 0 14px 36px rgba(15,48,87,0.16); overflow: hidden;
}
.sp-perm__search {
    margin: 8px; height: 32px; padding: 0 10px; border: 1px solid #DCEAF5; border-radius: 8px;
    background: #F7FBFF; font-family: inherit; font-size: 13px; color: #174B7C;
}
.sp-perm__actions { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 6px; }
.sp-perm__panel #adminSpecialSlotPermDoctorList { max-height: 240px; overflow-y: auto; padding: 4px; }
.sp-perm__panel #adminSpecialSlotPermDoctorList label {
    display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 7px;
    font-size: 13px; font-weight: 600; color: #174B7C; cursor: pointer;
}
.sp-perm__empty { padding: 12px; text-align: center; font-size: 12.5px; color: #8AA3BA; }
.app-shell #appointmentTable .editable { background-color: transparent; }
.sheet-modal {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: auto;
    max-width: none;
    min-width: 0;
    height: auto;
    margin: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 24, 45, 0.45);
    overflow: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s;
}
.sheet-modal[style*="display: block"],
.sheet-modal[style*="display:block"],
.sheet-modal[style*="display: flex"],
.sheet-modal[style*="display:flex"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
    .sheet-modal, .sheet-modal .sheet-card { transition: none; }
}
@media (min-width: 1024px) {
    body.shell-sidebar-open .sheet-modal { left: 253px; }
}
@media (max-width: 1023px) {
    .app-sidebar {
        position: fixed;
        flex-basis: 253px;
        width: 253px;
        height: 100dvh;
        max-height: 100dvh;
        transform: translateX(-100%);
        visibility: hidden;
    }
    body.shell-sidebar-open .app-sidebar {
        transform: translateX(0);
        visibility: visible;
        box-shadow: 8px 0 30px rgba(0, 20, 50, 0.35);
    }
    body.shell-sidebar-open .shell-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
    html:has(body.shell-sidebar-open),
    body.shell-sidebar-open { overflow: hidden; }
}
@media (max-width: 900px) {
    .app-shell .limit-display[style*="display: block"],
    .app-shell .limit-display[style*="display:block"] { margin-left: 0; }
}

.sheet-modal, .sheet-modal * { box-sizing: border-box; }
@media (max-width: 639px) {
    .sheet-modal { padding: 12px; }
    .sheet-card.modal-content { max-height: calc(100dvh - 24px); }
}
@media (max-width: 768px) {
    .app-shell #leftPanelControlsContainer {
        position: static !important;
        top: auto !important;
        left: auto !important;
        z-index: auto !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    .app-shell #appointmentTable th,
    .app-shell #appointmentTable td {
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: manual;
    }
}
.sheet-card.modal-content {
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 40px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(8, 24, 45, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s ease;
}
.sheet-card--narrow.modal-content,
.sheet-card--alert.modal-content { max-width: 420px; }
.sheet-card--note.modal-content,
.sheet-card--nobet.modal-content { max-width: 520px; }
.sheet-card--genel.modal-content { max-width: 880px; }
.sheet-modal[style*="display: block"] .sheet-card,
.sheet-modal[style*="display:block"] .sheet-card,
.sheet-modal[style*="display: flex"] .sheet-card,
.sheet-modal[style*="display:flex"] .sheet-card {
    transform: translateY(0) scale(1);
}
.sheet-head .close-button:hover { background: #E3EEF8; color: #174B7C; }
.sheet-message { margin: 0; padding: 18px 20px; color: #174B7C; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.sheet-fields .note-textarea,
#nobetIzniDropdown .sheet-fields input,
#generalOpRoomDropdown .general-op-room-footer input {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid #DCEAF5;
    border-radius: 9px;
    background: #fff;
    color: #174B7C;
    font-family: inherit;
    font-size: 13.5px;
}
.sheet-fields .note-textarea { height: 120px; padding: 10px 12px; resize: vertical; }
.sheet-fields .note-textarea:focus,
#nobetIzniDropdown .sheet-fields input:focus,
#generalOpRoomDropdown .general-op-room-footer input:focus,
#profileModal .doctor-input:focus {
    outline: none;
    border-color: #9CC8EE;
    box-shadow: 0 0 0 3px rgba(8, 124, 209, 0.12);
    background: #fff;
}
#noteModal .note-label { margin: 0; font-size: 12.5px; font-weight: 700; color: #0B4A8A; }
#noteModal #saveNoteButton,
#alertModal #alertOkButton,
#confirmationModal #confirmYesButton,
#nobetIzniDropdown #nobetIzniSubmitRequest,
#generalOpRoomDropdown #generalOpRoomAddSlotButton {
    height: 38px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: #087CD1;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
#noteModal #saveNoteButton:hover,
#alertModal #alertOkButton:hover,
#confirmationModal #confirmYesButton:hover,
#nobetIzniDropdown #nobetIzniSubmitRequest:hover,
#generalOpRoomDropdown #generalOpRoomAddSlotButton:hover,
#saveProfileButton:hover { background: #0A6DC7; }
#confirmationModal #confirmNoButton {
    height: 38px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #DCEAF5;
    border-radius: 9px;
    background: #fff;
    color: #174B7C;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}
#confirmationModal #confirmNoButton:hover { background: #F3F8FD; }
#nobetIzniDropdown .nobet-izni-tabs {
    display: flex;
    gap: 4px;
    margin: 12px 20px 0;
    padding: 4px;
    background: #E6EFF8;
    border: 0;
    border-radius: 12px;
}
#nobetIzniDropdown .nobet-izni-tab {
    flex: 1 1 0;
    height: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4F6F8F;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}
#nobetIzniDropdown .nobet-izni-tab.active { background: #fff; color: #0B3F75; font-weight: 800; box-shadow: 0 1px 3px rgba(15, 48, 87, 0.12); }
#nobetIzniDropdown .sheet-scroll,
#nobetIzniDropdown .notification-list { max-height: none; background: transparent; box-shadow: none; width: auto; }
#nobetIzniDropdown .notification-item { background: #fff !important; border-bottom: 1px solid #F0F5FA !important; }
#nobetIzniDropdown .nobet-leave-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 20px;
    background: #F7FBFF;
    border-bottom: 1px solid #EAF1F8;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #0B4A8A;
}
#nobetIzniDropdown .nobet-leave-head span:last-child { white-space: nowrap; }
#nobetIzniDropdown .nobet-leave-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
}
#nobetIzniDropdown .nobet-leave-row__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #174B7C;
}
#nobetIzniDropdown .nobet-leave-row__pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: #FFF3E0;
    color: #C26A00;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}
#nobetIzniDropdown .nobet-leave-row__pill--day { background: #EAF5FD; color: #087CD1; }
#nobetIzniDropdown .notification-item.nobet-req {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 20px;
    padding: 12px 14px;
    border: 1px solid #F5DDB8 !important;
    border-radius: 10px;
    background: #FFFAF2 !important;
}
#nobetIzniDropdown .nobet-req__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#nobetIzniDropdown .nobet-req__name { font-size: 13.5px; font-weight: 700; color: #0B3F75; }
#nobetIzniDropdown .nobet-req__meta { font-size: 12.5px; color: #174B7C; }
#nobetIzniDropdown .nobet-req__when { font-size: 11.5px; color: #8AA3BA; }
#nobetIzniDropdown .nobet-req__status {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #FFF3E0;
    color: #C26A00;
    font-size: 12px;
    font-weight: 700;
}
#nobetIzniDropdown .nobet-req__actions { display: flex; gap: 6px; }
#nobetIzniDropdown .nobet-req__reject,
#nobetIzniDropdown .nobet-req__approve,
#nobetIzniDropdown .nobet-req__cancel {
    height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
#nobetIzniDropdown .nobet-req__reject,
#nobetIzniDropdown .nobet-req__cancel { background: #FDECEC; color: #C62828; }
#nobetIzniDropdown .nobet-req__approve { background: #24B36B; color: #fff; }
#nobetIzniDropdown #nobetIzniList {
    max-height: 220px;
    overflow-y: auto;
}
#nobetIzniDropdown .nobet-req-form {
    display: none;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
    padding: 14px 20px 18px;
    border-top: 1px solid #EAF1F8;
    background: #FBFDFF;
}
#nobetIzniDropdown .nobet-req-form.is-open { display: flex; }
#nobetIzniDropdown .nobet-req-form__title { font-size: 13.5px; font-weight: 700; color: #0B3F75; }
#nobetIzniDropdown .nobet-req-form__row { display: flex; gap: 8px; }
#nobetIzniDropdown .nobet-req-form__row input {
    flex: 1 1 auto;
    min-width: 0;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #DCEAF5;
    border-radius: 9px;
    outline: none;
    background: #fff;
    font-family: inherit;
    font-size: 13.5px;
    color: #174B7C;
}
#nobetIzniDropdown .nobet-req-form__row input:focus {
    border-color: #9CC8EE;
    box-shadow: 0 0 0 3px rgba(8, 124, 209, 0.12);
}
#nobetIzniDropdown .nobet-req-form__row #nobetIzniSubmitRequest {
    align-self: stretch;
    height: 38px;
    padding: 0 16px;
}
#nobetIzniDropdown .nobet-req-form__hint { font-size: 12px; color: #6B89A5; }
#nobetIzniDropdown .nobet-req-form__mine {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
#nobetIzniDropdown .nobet-req-form__mine[hidden] { display: none !important; }
#nobetIzniDropdown .nobet-req-form__mine-label { font-size: 12px; font-weight: 700; color: #6B89A5; }
#nobetIzniDropdown .nobet-req-form__pill {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #FFF3E0;
    color: #C26A00;
    font-size: 12px;
    font-weight: 700;
}
#nobetIzniDropdown .no-notifications { padding: 28px 20px; text-align: center; color: #8AA3BA; font-size: 13px; }
#nobetIzniDropdown .sheet-fields { gap: 8px; }
#nobetIzniDropdown #nobetIzniSubmitRequest { align-self: flex-end; }
#noteModal.sheet-modal { z-index: 1045; }
#generalOpRoomDropdown .note-icon {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    align-self: center;
    pointer-events: auto;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}
#generalOpRoomDropdown .gor-day-lock {
    margin: 8px 20px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #F4F7FA;
    color: #2F3F52;
    font-size: 13px;
    font-weight: 700;
}
#generalOpRoomDropdown .sheet-denied,
#nobetIzniDenied {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 20px 36px;
    text-align: center;
    color: #C62828;
    font-size: 16px;
    font-weight: 700;
}
#generalOpRoomDropdown .general-op-room-list { background: #fff; width: auto; max-width: none; max-height: none; box-shadow: none; border-radius: 0; }
#generalOpRoomDropdown .general-op-room-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr) auto;
    gap: 8px;
    align-items: start;
    padding: 8px 20px;
}
#generalOpRoomDropdown .gor-doctor {
    min-height: 38px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 13.5px;
    font-weight: 600;
    color: #174B7C;
}
#generalOpRoomDropdown .time-input,
#generalOpRoomDropdown .patient-input,
#generalOpRoomDropdown .procedure-input {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 1px solid #DCEAF5;
    border-radius: 9px;
    background: #F7FBFF;
    color: #174B7C;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    box-sizing: border-box;
}
#generalOpRoomDropdown .time-input {
    height: 38px;
    padding: 0 10px;
}
#generalOpRoomDropdown .patient-input,
#generalOpRoomDropdown .procedure-input {
    display: block;
    height: auto;
    min-height: 38px;
    padding: 9px 12px;
    resize: none;
    overflow: hidden;
    field-sizing: content;
    line-height: 1.35;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
#generalOpRoomDropdown .time-input:focus,
#generalOpRoomDropdown .patient-input:focus,
#generalOpRoomDropdown .procedure-input:focus {
    outline: none;
    background: #fff;
    border-color: #9CC8EE;
    box-shadow: 0 0 0 3px rgba(8, 124, 209, 0.12);
}
#generalOpRoomDropdown .general-op-room-footer {
    width: auto;
    max-width: none;
    background: #FBFDFF;
    border-radius: 0;
    box-shadow: none;
}
#generalOpRoomDropdown .general-op-room-footer input { width: auto; flex: 1 1 180px; max-width: 220px; }
.gor-date-step {
    display: flex;
    align-items: center;
    height: 36px;
    border: 1px solid #DCEAF5;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
.gor-date-step button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0B3F75;
    cursor: pointer;
}
.gor-date-step button:hover { background: #EEF5FC; }
#generalOpRoomDropdown .gor-date-step input {
    flex: 0 1 auto;
    width: auto;
    max-width: none;
    height: 100%;
    margin: 0;
    padding: 0 8px;
    border: 0;
    border-left: 1px solid #EAF1F8;
    border-right: 1px solid #EAF1F8;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    color: #0B3F75;
}
.temp-limit-now {
    display: inline-flex;
    align-items: center;
    height: 22px;
    margin-left: 8px;
    padding: 0 9px;
    border-radius: 999px;
    background: #E5F8EE;
    color: #1C7A48;
    font-size: 11.5px;
    font-weight: 700;
    vertical-align: middle;
}
@media (max-width: 720px) {
    #generalOpRoomDropdown .general-op-room-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 10px 14px;
    }
    #generalOpRoomDropdown .time-input { grid-column: 1; max-width: 120px; }
    #generalOpRoomDropdown .note-icon { grid-column: 2; grid-row: 1; align-self: center; z-index: 2; }
    #generalOpRoomDropdown .patient-input,
    #generalOpRoomDropdown .procedure-input,
    #generalOpRoomDropdown .gor-doctor { grid-column: 1 / -1; min-height: 0; }
}
.sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #EAF1F8;
}
.sheet-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: #0B3F75; }
.notif-detail-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.notif-detail-kind { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.notif-detail-kind.is-add { background: #E5F8EE; color: #1C7A48; }
.notif-detail-kind.is-del { background: #FDECEC; color: #C62828; }
#notifDetailAt { font-size: 12px; color: #8AA3BA; }
.notif-detail-body { padding: 16px 20px 20px; }
.notif-detail-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 16px; padding: 14px 16px; border: 1px solid #E1ECF6; border-radius: 12px; background: #F7FBFF; font-size: 14px; line-height: 1.4; }
.notif-detail-grid > span:nth-child(odd) { font-weight: 700; color: #6B89A5; white-space: nowrap; }
.notif-detail-grid > b { color: #0B3F75; font-weight: 700; overflow-wrap: anywhere; }
.notif-detail-grid > span:nth-child(even) { color: #174B7C; overflow-wrap: anywhere; }
.notif-detail-body .sheet-actions { margin: 14px -20px -20px; }
.sheet-head p { margin: 2px 0 0; font-size: 12.5px; color: #6B89A5; }
.sheet-head .close-button {
    float: none;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #F2F7FC;
    color: #174B7C;
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
}
.app-shell #statsNavButton { height: auto; min-height: 37px; padding-top: 6px; padding-bottom: 6px; }
.app-shell #statsNavButton svg { flex: 0 0 auto; }
.app-shell #statsNavButton span { min-width: 0; line-height: 1.2; }
.sheet-scroll { flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.sheet-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.sheet-fields { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; padding: 18px 20px; overflow-y: auto; }
.sheet-fields label { font-size: 12.5px; font-weight: 700; color: #0B4A8A; }
#profileModal .doctor-input {
    width: 100%;
    height: 38px;
    margin: 0 0 8px;
    padding: 0 12px;
    border: 1px solid #DCEAF5;
    border-radius: 9px;
    background: #F7FBFF;
    color: #174B7C;
    font-size: 13.5px;
    box-sizing: border-box;
}
#profileModal .doctor-input[readonly] { background: #F4F8FC; }
.sheet-secret { position: relative; }
.sheet-secret .doctor-input { padding-right: 76px; }
.sheet-secret .password-toggle-btn {
    top: 8px;
    right: 8px;
    height: 26px;
    color: #6B89A5;
    font-weight: 700;
}
.sheet-actions {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid #EAF1F8;
    background: #FBFDFF;
}
#cancelProfileButton, #saveProfileButton { height: 38px; padding: 0 16px; border-radius: 9px; font-size: 13px; font-weight: 700; }
#cancelProfileButton { background: #fff; color: #174B7C; border: 1px solid #DCEAF5; }
#saveProfileButton { background: #087CD1; color: #fff; border: 0; }
#profileNoPermissionMessage { display: none; }
#profileNoPermissionMessage, #statsDenied {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px 36px;
    text-align: center;
    color: #C62828;
    font-weight: 700;
}
#statsDenied span, #profileNoPermissionMessage { font-size: 16px; }
#statsDenied span { font-size: 13px; font-weight: 500; color: #6B89A5; }
#profileErrorMessage:empty { display: none; }
.sheet-error {
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #FDECEC;
    color: #C62828;
    font-size: 12.5px;
    font-weight: 600;
}
.search-summary { margin: 0; padding: 12px 16px 0; font-size: 12.5px; font-weight: 600; color: #6B89A5; }
.search-empty { margin: 0; padding: 32px 20px; text-align: center; color: #174B7C; font-weight: 600; }
.search-cards { list-style: none; margin: 0; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; background: #F7FBFF; }
.stats-list { display: flex; flex-direction: column; border: 1px solid #EAF1F8; border-radius: 10px; overflow: hidden; }
.stats-body { display: flex; flex-direction: column; gap: 18px; padding: 16px 20px 20px; }
.sheet-modal [hidden] { display: none !important; }
.search-result-item { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: #fff; border: 1px solid #E1ECF6; border-radius: 12px; }
.search-card__top, .search-card__grid { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.search-card__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; font-size: 13.5px; }
.search-card__grid strong { color: #6B89A5; }
.search-card__top { font-size: 13px; color: #6B89A5; }
.search-card__top b, .search-card__top strong { color: #0B3F75; }
.search-source, .stats-source { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: #EAF5FD; color: #087CD1; font-size: 11.5px; font-weight: 700; }
.search-source.is-genel, .stats-source.is-genel { background: #F3ECFD; color: #6B3FA0; }
.search-source.is-ozel { background: #FFF3E0; color: #C26A00; }
.search-go { margin-left: auto; border: 0; background: transparent; color: #087CD1; font-weight: 700; cursor: pointer; }
.search-private-note { color: #ff5722; }
.stats-body { display: flex; flex-direction: column; gap: 18px; padding: 16px 20px 20px; }
.stats-total { display: flex; align-items: baseline; gap: 10px; }
.stats-total b { font-size: 34px; line-height: 1; color: #0B3F75; }
.stats-total span, .stats-hours-head, .stats-muted { color: #6B89A5; font-size: 13px; font-weight: 600; }
.stats-hours-head, .stats-range, .stats-query, .stats-pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stats-hours-head { justify-content: space-between; }
.stats-hours-head b, .stats-pager b { color: #087CD1; }
.stats-hours { display: flex; align-items: flex-end; gap: 3px; min-height: 84px; }
.stats-bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; }
.stats-bar__fill { width: 100%; max-width: 26px; border-radius: 4px; background: #D6E7F6; }
.stats-bar__fill.is-top { background: #087CD1; }
.stats-bar__count { font-size: 10.5px; font-weight: 700; color: #8AA3BA; }
.stats-bar__count.is-top { color: #087CD1; }
.stats-bar__label { font-size: 9.5px; font-weight: 600; color: #8AA3BA; white-space: nowrap; }
.stats-mine { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid #EAF1F8; }
.stats-mine__title { font-size: 14px; font-weight: 700; color: #0B3F75; }
.stats-range { width: 100%; min-width: 0; }
.stats-range label { flex: 1 1 140px; display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.3px; color: #6B89A5; }
.stats-range input, .stats-query { height: 38px; max-width: 100%; border: 1px solid #DCEAF5; border-radius: 10px; background: #F7FBFF; }
.stats-range input { width: 100%; min-width: 0; padding: 0 10px; color: #174B7C; box-sizing: border-box; }
.stats-query { height: 40px; padding: 0 12px; }
.stats-query input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: #174B7C; font: inherit; }
#statsClear { height: 38px; border: 0; background: transparent; color: #6B89A5; font-weight: 700; cursor: pointer; }
.stats-list { display: flex; flex-direction: column; border: 1px solid #EAF1F8; border-radius: 10px; overflow: hidden; }
.stats-row { display: grid; grid-template-columns: 86px 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid #F0F5FA; background: #fff; text-align: left; cursor: pointer; font: inherit; }
.stats-row__date { font-size: 12.5px; color: #52708C; }
.stats-row__time { font-size: 12.5px; font-weight: 700; color: #0B3F75; }
.stats-row__who { display: flex; flex-direction: column; min-width: 0; }
.stats-row__who b { font-size: 13px; color: #174B7C; overflow-wrap: anywhere; }
.stats-row__who span { font-size: 12px; color: #6B89A5; overflow-wrap: anywhere; }
.stats-pager { justify-content: space-between; }
.stats-pager button { width: 34px; height: 34px; border: 1px solid #DCEAF5; border-radius: 10px; background: #fff; color: #174B7C; cursor: pointer; }
.stats-pager button:disabled { opacity: 0.4; }
.stats-muted { margin: 0; padding: 14px; border-radius: 10px; background: #F7FBFF; text-align: center; }
@media (max-width: 900px) {
    .stats-row { grid-template-columns: 78px 46px minmax(0, 1fr); }
    .stats-row .stats-source { grid-column: 1 / -1; justify-self: start; }
    .search-go { margin-left: 0; }
}

