?/* ============================================================
   Kassa Portalı — ümumi stillər
   Bölmə 1: Ümumi + giriş səhifəsi (qırmızı fon, iki hissə)
   Bölmə 2: 404 / ümumi kart
   Bölmə 3: Panel (faylın aşağısında)
   ============================================================ */

/* ---------------------------------------------------- Ümumi - */
* {
    box-sizing: border-box;
}

@font-face {
    font-family: "Gilroy";
    src: url("../../font/Gilroy-Medium.otf") format("opentype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

body {
    margin: 0;
    font-family: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI",
        system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1b1a19;
    background-color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: #0067b8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code {
    padding: 1px 4px;
    font-size: 12px;
    background-color: #f3f2f1;
    border-radius: 2px;
}

/* Microsoft logosu (4 rəngli kvadrat) */
.ms-logo {
    display: grid;
    grid-template-columns: 10px 10px;
    gap: 2px;
    width: 22px;
    margin-bottom: 16px;
}

.ms-logo .sq {
    display: block;
    width: 10px;
    height: 10px;
}

.sq-r { background-color: #f25022; }
.sq-g { background-color: #7fba00; }
.sq-b { background-color: #00a4ef; }
.sq-y { background-color: #ffb900; }

/* Portal loqosu (404 s?hif?si kimi hallarda) */
.err-logo {
    display: block;
    width: 64px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

/* =========================== Bölmə 1: Giriş səhifəsi (şablon) == */

.login-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    min-height: 100vh;
    background-color: #FF003C; /* panel ilə eyni qırmızı */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.login-right {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 40px 24px;
}

.login-card {
    width: 424px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 40px 32px 32px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 40px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22);
}

.login-copyright {
    margin: 20px 0 0;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
}

.login-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0 0 28px;
    color: #FF003C;
    font-size: 28px;
    font-weight: 700;
}

.login-title-logo {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 12px;
    object-fit: cover;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    height: 48px;
    padding: 0 28px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background-color: #1e293b;
    border: 1px solid #1e293b;
    border-radius: 8px;
}

.login-btn:hover {
    background-color: #334155;
    border-color: #334155;
    text-decoration: none;
    color: #ffffff;
}

.login-note {
    margin: 28px 0 0;
    font-size: 12px;
    color: #605e5c;
}

.login-test-admin {
    display: block;
    margin-top: 14px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.login-test-admin-form {
    display: grid;
    gap: 16px;
    text-align: left;
}

.login-test-admin-form label {
    margin-top: 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.login-test-admin-form input,
.login-test-admin-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.login-test-admin-form input:focus-visible,
.login-test-admin-form select:focus-visible {
    outline: 3px solid rgba(255, 0, 60, 0.2);
    border-color: #FF003C;
}

.login-test-admin-form .login-btn {
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
}

.login-test-admin-error {
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
}

/* Xəta mesajı */
.ms-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    font-size: 14px;
    color: #a4262c;
    background-color: #fde7e9;
    border: 1px solid #f1aeb5;
    border-radius: 4px;
}

.ms-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* =========================== Bölmə 2: 404 / ümumi kart == */

.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 16px;
    background-color: #ffffff;
}

.ms-card {
    width: 440px;
    max-width: 100%;
    padding: 44px 44px 28px;
}

.ms-card-centered {
    text-align: left;
}

.ms-card h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

.ms-subtitle {
    margin: 0 0 16px;
    font-size: 15px;
    color: #605e5c;
}

/* Düymələr */
.ms-actions {
    margin-top: 24px;
}

.ms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 32px;
    padding: 0 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    background-color: #0067b8;
    border: 1px solid #0067b8;
    border-radius: 2px;
    cursor: pointer;
}

.ms-btn:hover {
    background-color: #005a9e;
    border-color: #005a9e;
}

.ms-btn-link {
    text-decoration: none;
    color: #ffffff;
}

.ms-btn-link:hover {
    text-decoration: none;
    color: #ffffff;
}

.ms-btn-outline {
    color: #0067b8;
    background-color: transparent;
}

.ms-btn-outline:hover {
    color: #ffffff;
}

/* =========================== Bölmə 3: Panel (şablon) == */

.panel-page {
    --sidebar-w: 235px;
    min-height: 100vh;
    background-color: #ffffff;
}

/* Yuxarı header */
.panel-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    height: 60px;
    padding-left: var(--sidebar-w); /* logo bloku üçün yer ayırır */
    background-color: #ffffff;
    border-bottom: 1px solid #eef1f5;
}

/* Sol qırmızı logo bloku — absolute, eni dəqiq var(--sidebar-w], flex asılılığı yoxdur */
.panel-logo-block {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    padding: 0 20px;
    overflow: hidden;
    background-color: #FF003C;
    color: #ffffff;
    margin-bottom: -1px;
}

a.panel-logo-block:hover {
    text-decoration: none;
    color: #ffffff;
}

.panel-logo-img {
    display: block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 6px;
}

.panel-logo-text {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

/* Burger düyməsi (sidebar aç/bağla) */
.panel-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 4px 0 12px;
    padding: 0;
    color: #0f172a;
    background: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.panel-burger:hover {
    background-color: #f3f4f6;
}

.panel-cashier-group-link {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    margin: 0 8px 0 4px;
    padding: 0 10px;
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    background: transparent;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
}

.panel-cashier-group-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    margin-left: 1px;
    padding: 0 5px;
    color: #fff;
    background: #dc2626;
    border: 2px solid #fff;
    border-radius: 999px;
    box-sizing: border-box;
    pointer-events: none;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.panel-cashier-group-unread-badge[hidden] {
    display: none;
}

.panel-cashier-group-link:hover,
.panel-cashier-group-link:focus-visible {
    color: #0f172a;
    background-color: #f3f4f6;
    outline: none;
}

.ip-modal.cashier-group-modal {
    display: flex;
    flex-direction: column;
    width: min(1100px, calc(100vw - 40px));
    min-height: min(70vh, 720px);
    max-height: calc(100vh - 40px);
    padding: 24px;
    overflow: hidden;
    text-align: left;
}

.cashier-group-modal-heading {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.cashier-group-sound-option {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 160px;
    padding: 10px 12px;
    color: #334155;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
}

.cashier-group-sound-option:hover,
.cashier-group-sound-option:focus-visible,
.cashier-group-sound-option[aria-pressed="true"],
.cashier-group-sound-option.is-selected {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #93c5fd;
    outline: none;
}

.cashier-group-sound-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cashier-group-sound-preview-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

.cashier-group-pinned-message {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 9px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}

.cashier-group-pinned-message[hidden] {
    display: none;
}

.cashier-group-pinned-message-icon {
    flex: 0 0 auto;
    font-size: 18px;
}

.cashier-group-pinned-message-open {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
    padding: 0;
    color: #14532d;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cashier-group-unpin-button {
    flex: 0 0 auto;
    padding: 7px 10px;
    color: #166534;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    cursor: pointer;
}

.cashier-group-unpin-button:hover,
.cashier-group-unpin-button:focus-visible {
    background: #dcfce7;
}

.cashier-group-unpin-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.cashier-group-unpin-button[hidden] {
    display: none;
}

.cashier-group-pinned-message-open:hover .cashier-group-pinned-message-title,
.cashier-group-pinned-message-open:focus-visible .cashier-group-pinned-message-title {
    text-decoration: underline;
}

.cashier-group-pinned-message-title {
    font-size: 12px;
    font-weight: 700;
}

.cashier-group-pinned-message-body {
    display: -webkit-box;
    overflow: hidden;
    color: #475569;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.cashier-group-toggle-button {
    margin-left: auto;
    padding: 8px 12px;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    background: #166534;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.cashier-group-toggle-button:hover,
.cashier-group-toggle-button:focus-visible {
    background: #14532d;
}

.cashier-group-toggle-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.cashier-group-clear-button {
    padding: 8px 12px;
    color: #b91c1c;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 8px;
    cursor: pointer;
}

.cashier-group-clear-button:hover,
.cashier-group-clear-button:focus-visible {
    background: #fef2f2;
}

.cashier-group-clear-button[hidden] {
    display: none;
}

.ip-modal.cashier-group-clear-modal {
    width: min(460px, calc(100vw - 32px));
}

.cashier-group-clear-modal .telimat-popup-metn {
    margin-bottom: 20px;
}

.cashier-group-clear-modal .ip-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cashier-group-clear-error {
    margin: 0 0 14px;
    color: #b91c1c;
    font-size: 13px;
}

.cashier-group-clear-error[hidden],
.cashier-group-clear-loader[hidden],
.cashier-group-clear-actions[hidden] {
    display: none;
}

.cashier-group-clear-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 0;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.cashier-group-clear-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #fee2e2;
    border-top-color: #dc2626;
    border-radius: 50%;
    animation: cashier-group-clear-spin 0.8s linear infinite;
}

@keyframes cashier-group-clear-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .cashier-group-modal-heading {
        position: relative;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
        padding-right: 42px;
    }

    .cashier-group-modal-heading h2 {
        flex: 1 1 100%;
    }

    .cashier-group-modal-close {
        position: absolute;
        top: 0;
        right: 0;
    }

    .cashier-group-toggle-button {
        margin-left: 0;
    }

    .cashier-group-clear-button,
    .cashier-group-toggle-button {
        padding: 7px 9px;
        font-size: 12px;
    }
}

.cashier-group-toggle-button[hidden] {
    display: none;
}

.cashier-group-closed-notice {
    flex: 0 0 auto;
    margin: 10px 0 0;
    padding: 10px 12px;
    color: #92400e;
    font-size: 13px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
}

.cashier-group-closed-notice[hidden] {
    display: none;
}

.cashier-group-modal-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 600;
}

.cashier-group-modal-heading h2 img {
    display: block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    object-fit: cover;
}

.cashier-group-modal-close {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #475569;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.cashier-group-modal-close:hover,
.cashier-group-modal-close:focus-visible {
    color: #0f172a;
    background-color: #f1f5f9;
    outline: none;
}

.cashier-group-modal-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}

.cashier-group-chat-messages {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 0;
}

.cashier-group-unread-jump {
    flex: 0 0 auto;
    align-self: center;
    margin: 10px 0 0;
    padding: 8px 14px;
    color: #1d4ed8;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    cursor: pointer;
}

.cashier-group-unread-jump:hover,
.cashier-group-unread-jump:focus-visible {
    color: #1e40af;
    background: #dbeafe;
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.cashier-group-unread-jump[hidden] {
    display: none;
}

.cashier-group-chat-message {
    position: relative;
    width: fit-content;
    min-width: 200px;
    max-width: min(82%, 680px);
    margin: 0 auto 12px 0;
    padding: 30px 14px 10px;
    color: #0f172a;
    background: #f1f5f9;
    border-radius: 16px 16px 16px 4px;
    overflow-wrap: anywhere;
}

.cashier-group-chat-message.is-own {
    margin-right: 0;
    margin-left: auto;
    color: #14532d;
    background: #dcfce7;
    border-radius: 16px 16px 4px 16px;
}

.cashier-group-chat-message.is-pinned {
    outline: 1px solid #86efac;
    outline-offset: 1px;
}

.cashier-group-message-reply-trigger {
    position: absolute;
    top: 3px;
    left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    padding: 0;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.cashier-group-message-reply-trigger:hover,
.cashier-group-message-reply-trigger:focus-visible {
    color: #166534;
    background: rgb(22 101 52 / 10%);
    outline: none;
}

.cashier-group-message-reply-trigger svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cashier-group-chat-reply-quote {
    display: grid;
    width: 100%;
    gap: 3px;
    margin: 4px 0 8px;
    padding: 7px 9px;
    color: inherit;
    text-align: left;
    background: rgb(255 255 255 / 58%);
    border: 0;
    border-left: 3px solid #22a06b;
    border-radius: 5px;
    cursor: pointer;
}

.cashier-group-chat-reply-quote:hover,
.cashier-group-chat-reply-quote:focus-visible {
    background: rgb(255 255 255 / 82%);
    outline: 1px solid rgb(34 160 107 / 35%);
}

.cashier-group-chat-reply-quote-author {
    overflow: hidden;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashier-group-chat-reply-quote-body {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cashier-group-message-menu-trigger {
    position: absolute;
    top: 3px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    padding: 0;
    color: #166534;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.cashier-group-message-menu-trigger:hover,
.cashier-group-message-menu-trigger:focus-visible {
    background: rgb(22 101 52 / 10%);
    outline: none;
}

.cashier-group-message-menu-trigger svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.cashier-group-message-menu {
    position: absolute;
    z-index: 2;
    top: 29px;
    right: 4px;
    display: grid;
    min-width: 150px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    box-shadow: 0 8px 20px rgb(15 23 42 / 16%);
}

.cashier-group-message-menu[hidden] {
    display: none;
}

.cashier-group-message-menu-item {
    padding: 8px 10px;
    color: #0f172a;
    font: inherit;
    font-size: 13px;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.cashier-group-message-menu-item:hover,
.cashier-group-message-menu-item:focus-visible {
    background: #f1f5f9;
    outline: none;
}

.cashier-group-message-menu-item.is-danger {
    color: #b91c1c;
}

.cashier-group-chat-message-body.is-deleted {
    color: #64748b;
    font-style: italic;
}

.cashier-group-chat-message-edited {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
    text-align: right;
}

.cashier-group-chat-message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
}

.cashier-group-chat-message-time {
    margin-top: 0;
}

.cashier-group-chat-readers-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    min-width: 30px;
    padding: 2px 0;
    color: #166534;
    font: inherit;
    font-size: 11px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cashier-group-chat-readers-button:hover,
.cashier-group-chat-readers-button:focus-visible {
    color: #14532d;
    text-decoration: underline;
    outline: none;
}

.cashier-group-chat-readers-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.cashier-group-chat-reader-count {
    min-width: 8px;
    text-align: left;
}

.ip-modal.cashier-group-readers-modal {
    width: min(380px, calc(100vw - 32px));
    padding: 22px;
}

.cashier-group-readers-list {
    display: grid;
    gap: 8px;
    max-height: min(50vh, 360px);
    overflow-y: auto;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.cashier-group-readers-list li {
    padding: 9px 11px;
    color: #0f172a;
    font-size: 14px;
    text-align: left;
    background: #f8fafc;
    border-radius: 8px;
    overflow-wrap: anywhere;
}

.cashier-group-readers-list li.cashier-group-readers-empty {
    color: #64748b;
    font-size: 13px;
    font-style: italic;
}

.cashier-group-message-editor {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.cashier-group-message-editor textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 70px;
    padding: 8px;
    color: #0f172a;
    font: inherit;
    font-family: "Gilroy", sans-serif;
    background: #ffffff;
    border: 1px solid #86efac;
    border-radius: 8px;
    resize: vertical;
}

.cashier-group-message-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.cashier-group-message-editor-actions button {
    padding: 5px 9px;
    color: #166534;
    font: inherit;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    cursor: pointer;
}

.cashier-group-message-editor-actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.cashier-group-chat-message-author {
    display: block;
    max-width: 100%;
    margin: 0 0 5px;
    padding: 0;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.cashier-group-chat-message-author::before {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 6px 1px 0;
    background: #64748b;
    border-radius: 50%;
    content: "";
}

.cashier-group-chat-message.is-own .cashier-group-chat-message-author {
    color: #166534;
}

.cashier-group-chat-message.is-own .cashier-group-chat-message-author::before {
    background: #16a34a;
}

.cashier-group-chat-author-button {
    padding: 0;
    color: inherit;
    font: inherit;
    text-align: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cashier-group-chat-author-button:hover,
.cashier-group-chat-author-button:focus-visible {
    text-decoration: underline;
    outline: none;
}

.ip-modal.cashier-group-user-modal {
    width: min(420px, calc(100vw - 32px));
    padding: 22px;
}

.cashier-group-user-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.cashier-group-user-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    overflow-wrap: anywhere;
}

.cashier-group-user-details {
    display: grid;
    gap: 14px;
    margin: 18px 0 0;
}

.cashier-group-user-details div {
    display: grid;
    gap: 4px;
}

.cashier-group-user-details dt {
    color: #64748b;
    font-size: 12px;
}

.cashier-group-user-details dd {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.cashier-group-chat-message-body {
    margin: 0;
    font-family: "Gilroy", sans-serif;
    font-weight: 500;
    white-space: pre-wrap;
}

.cashier-group-chat-message-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-top: 0;
    color: #64748b;
    font-size: 11px;
    text-align: right;
}

.cashier-group-chat-receipt {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    color: #64748b;
}

.cashier-group-chat-receipt.is-read {
    color: #0284c7;
}

.cashier-group-chat-receipt svg {
    display: block;
    width: 16px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cashier-group-chat-status {
    flex: 0 0 auto;
    margin: 10px 0 0;
    color: #b91c1c;
    font-size: 13px;
}

.cashier-group-delete-notifications {
    position: fixed;
    z-index: 12000;
    top: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    width: min(390px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.cashier-group-delete-notification {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgb(15 23 42 / 18%);
}

.cashier-group-reply-notification {
    border-color: #bbf7d0;
    border-left-color: #16a34a;
}

.cashier-group-mention-notification {
    border-color: #ddd6fe;
    border-left-color: #7c3aed;
}

.cashier-group-pin-notification {
    border-color: #fde68a;
    border-left-color: #d97706;
}

.ip-modal.cashier-group-pin-duration-modal {
    width: min(400px, calc(100vw - 32px));
}

.cashier-group-pin-duration-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.cashier-group-pin-duration-options button {
    width: 100%;
}

.cashier-group-pin-duration-modal .ip-modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.cashier-group-pin-duration-error {
    margin: 10px 0 0;
    color: #b91c1c;
    font-size: 13px;
}

.cashier-group-pin-duration-error[hidden] {
    display: none;
}

.ip-modal.cashier-group-delete-confirm-modal {
    width: min(440px, calc(100vw - 32px));
}

.cashier-group-delete-confirm-modal .telimat-popup-metn {
    margin-bottom: 20px;
}

.cashier-group-delete-confirm-error {
    margin: 0 0 14px;
    color: #b91c1c;
    font-size: 13px;
}

.cashier-group-delete-confirm-error[hidden] {
    display: none;
}

.cashier-group-delete-confirm-modal .ip-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.cashier-group-delete-notification-open {
    flex: 1 1 auto;
    padding: 2px 0;
    color: #0f172a;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.cashier-group-delete-notification-open:hover,
.cashier-group-delete-notification-open:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
    outline: none;
}

.cashier-group-delete-notification-dismiss {
    display: inline-flex;
    flex: 0 0 26px;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.cashier-group-delete-notification-dismiss:hover,
.cashier-group-delete-notification-dismiss:focus-visible {
    color: #0f172a;
    background: #f1f5f9;
    outline: none;
}

.cashier-group-delete-notification-dismiss:disabled {
    cursor: wait;
    opacity: 0.6;
}

.cashier-group-chat-message.is-notification-target {
    animation: cashier-group-message-highlight 1.2s ease-in-out 2;
}

@keyframes cashier-group-message-highlight {
    50% {
        box-shadow: 0 0 0 4px rgb(37 99 235 / 30%);
    }
}

.cashier-group-chat-composer {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.cashier-group-chat-composer-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.cashier-group-mention-suggestions {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: calc(100% + 8px);
    left: 0;
    display: grid;
    max-height: 240px;
    overflow-y: auto;
    padding: 5px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgb(15 23 42 / 16%);
}

.cashier-group-mention-suggestions[hidden] {
    display: none;
}

.cashier-group-mention-option {
    padding: 9px 10px;
    color: #0f172a;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.cashier-group-mention-option:hover,
.cashier-group-mention-option[aria-selected="true"] {
    color: #5b21b6;
    background: #f5f3ff;
    gap: 8px;
}

.cashier-group-chat-reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 8px 12px;
    background: #f0fdf4;
    border-left: 3px solid #22a06b;
    border-radius: 8px;
}

.cashier-group-chat-reply-preview[hidden] {
    display: none;
}

.cashier-group-chat-reply-preview > div {
    min-width: 0;
}

.cashier-group-chat-reply-preview span {
    display: block;
    overflow: hidden;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cashier-group-chat-reply-preview p {
    display: -webkit-box;
    margin: 3px 0 0;
    overflow: hidden;
    color: #475569;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cashier-group-chat-reply-preview button {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #64748b;
    font-size: 21px;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.cashier-group-chat-reply-preview button:hover,
.cashier-group-chat-reply-preview button:focus-visible {
    color: #0f172a;
    background: #dcfce7;
    outline: none;
}

.cashier-group-chat-composer textarea {
    display: block;
    flex: 1 1 auto;
    box-sizing: border-box;
    min-width: 0;
    height: 102px;
    min-height: 102px;
    max-height: 120px;
    padding: 11px 14px;
    color: #0f172a;
    font: inherit;
    line-height: 1.4;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 22px;
    outline: none;
    resize: vertical;
}

.cashier-group-chat-composer textarea:focus {
    border-color: #94a3b8;
}

.cashier-group-send-button {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffffff;
    background: #16a34a;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.cashier-group-send-button:hover,
.cashier-group-send-button:focus-visible {
    background: #15803d;
    outline: 2px solid #bbf7d0;
    outline-offset: 2px;
}

/* Ofis kutusu (office_location) */
.panel-office {
    display: inline-flex;
    align-items: center;
    min-width: 200px;
    max-width: 320px;
    padding: 7px 14px;
    overflow: hidden;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #334155;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
}

.panel-office:hover,
.panel-office:focus-visible {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.office-users-modal {
    max-height: min(80vh, 720px);
    overflow-y: auto;
}

.office-users-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.office-users-heading p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
}

.office-users-list {
    display: grid;
    gap: 8px;
    max-height: 52vh;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.office-users-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.office-user-photo {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    background: #e2e8f0;
    border-radius: 50%;
}

.office-user-photo:not(.office-user-photo-empty) {
    object-fit: cover;
}

.office-user-photo-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.office-user-info {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.office-users-list strong {
    color: #172033;
    font-size: 14px;
}

.office-users-list span {
    color: #64748b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

/* İstifadəçinin tam adı (full_name) */
.panel-profile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    margin-left: 16px;
    line-height: 1.25;
}

.panel-fullname {
    overflow: hidden;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #0f172a;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.panel-profile-details {
    overflow: hidden;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.panel-message-icon,
.panel-notification {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin-left: 12px;
    color: #475569;
    border-radius: 8px;
}

.panel-message-icon {
    padding: 0;
    margin-right: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
}

.panel-message-icon:hover,
.panel-message-icon:focus-visible,
.panel-message-icon[aria-expanded="true"] {
    background-color: #f3f4f6;
    outline: none;
}

.panel-favorites-icon {
    color: #475569;
    text-decoration: none;
}

.panel-favorites-icon:hover,
.panel-favorites-icon:focus-visible {
    color: #b45309;
}

.panel-notes-icon {
    cursor: pointer;
}

.panel-notes-icon:hover,
.panel-notes-icon:focus-visible,
.panel-notes-icon[aria-expanded="true"] {
    background-color: #f3f4f6;
    outline: none;
}

.panel-notes-overlay {
    position: fixed;
    z-index: 10020;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.panel-notes-overlay[hidden] {
    display: none;
}

.panel-notes-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.panel-notes-drawer {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    width: min(400px, 100%);
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    padding: 22px;
    background: #ffffff;
    box-shadow: -8px 0 28px rgba(15, 23, 42, 0.14);
    transform: translateX(100%);
    transition: transform 0.22s ease;
}

@media (max-width: 520px) {
    .panel-notes-drawer {
        width: min(340px, calc(100vw - 44px));
        padding: 18px;
    }
}

.panel-notes-overlay.is-open .panel-notes-drawer {
    transform: translateX(0);
}

.panel-notes-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.panel-notes-heading h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.panel-notes-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.panel-notes-form label {
    font-size: 13px;
    font-weight: 650;
    color: #334155;
}

.panel-notes-form-row {
    display: flex;
    gap: 8px;
}

.panel-notes-form-row input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.panel-notes-form-row input:focus {
    border-color: #2563eb;
    outline: 2px solid rgba(37, 99, 235, 0.14);
}

.panel-notes-form-row button {
    flex: 0 0 auto;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    color: #ffffff;
    background: #e11d48;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.panel-notes-form-row button:disabled,
.panel-notes-delete:disabled,
.panel-notes-check:disabled {
    opacity: 0.55;
    cursor: wait;
}

.panel-notes-status {
    margin: 18px 0 8px;
    color: #64748b;
    font-size: 13px;
}

.panel-notes-status:empty {
    display: none;
}

.panel-notes-status.is-error {
    color: #b91c1c;
}

.panel-notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.panel-notes-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.panel-notes-check {
    flex: 0 0 auto;
    display: grid;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    padding: 0;
    appearance: none;
    background-color: #ffffff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 13px 13px;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.panel-notes-check:hover {
    border-color: #e11d48;
}

.panel-notes-check:checked {
    background-color: #e11d48;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3 8 3.2 3.2L13 4.8' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    border-color: #e11d48;
}

.panel-notes-check:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

.panel-notes-item-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    color: #1e293b;
    font-size: 14px;
    line-height: 1.45;
}

.panel-notes-item.is-completed .panel-notes-item-text {
    color: #64748b;
    text-decoration: line-through;
}

.panel-notes-delete {
    flex: 0 0 auto;
    padding: 3px 5px;
    color: #b91c1c;
    font: inherit;
    font-size: 12px;
    background: transparent;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
}

.panel-notes-delete:hover,
.panel-notes-delete:focus-visible {
    background: #fee2e2;
    outline: none;
}

.panel-notes-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: #475569;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.panel-notes-close:hover,
.panel-notes-close:focus-visible {
    background: #f3f4f6;
    outline: none;
}

.panel-messages {
    position: relative;
    display: inline-flex;
}

.panel-notification-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.panel-notification-trigger:hover,
.panel-notification-trigger[aria-expanded="true"] {
    background-color: #f3f4f6;
}

.panel-notification-trigger svg {
    transform: none;
}

.panel-notification-count {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    line-height: 13px;
    text-align: center;
    background: #e11d48;
    border: 1px solid #ffffff;
    border-radius: 999px;
}

.panel-message-count {
    position: absolute;
    top: 1px;
    right: 1px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    line-height: 13px;
    text-align: center;
    background: #e11d48;
    border: 1px solid #ffffff;
    border-radius: 999px;
}

.panel-notification-panel {
    position: absolute;
    top: 44px;
    right: 0;
    z-index: 30;
    width: min(360px, calc(100vw - 24px));
    overflow: hidden;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.panel-message-panel {
    position: absolute;
    top: 44px;
    right: 0;
    z-index: 30;
    width: min(360px, calc(100vw - 24px));
    overflow: hidden;
    color: #0f172a;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.panel-notification-panel[hidden],
.panel-message-panel[hidden],
.panel-notification-count[hidden],
.panel-message-count[hidden],
.panel-notification-read-all[hidden],
.panel-notification-clear-all[hidden] {
    display: none;
}

.panel-notification-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f5;
}

.panel-notification-heading strong {
    font-size: 14px;
}

.panel-notification-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.panel-notification-read-all {
    padding: 0;
    color: #c8102e;
    font: inherit;
    font-size: 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.panel-notification-clear-all {
    padding: 0;
    color: #64748b;
    font: inherit;
    font-size: 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.panel-notification-read-all:hover,
.panel-notification-clear-all:hover {
    text-decoration: underline;
}

.panel-notification-read-all:disabled,
.panel-notification-clear-all:disabled {
    cursor: wait;
    opacity: 0.65;
}

.panel-notification-items {
    max-height: min(420px, calc(100vh - 130px));
    overflow-y: auto;
}

.panel-message-items {
    max-height: min(420px, calc(100vh - 130px));
    overflow-y: auto;
}

.panel-message-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #c8102e;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    background: #fff;
    border-top: 1px solid #eef1f5;
    transition: background-color 0.15s ease;
}

.panel-message-view-all:hover,
.panel-message-view-all:focus-visible {
    color: #9f1239;
    background: #fff7f7;
    text-decoration: none;
}

.panel-message-view-all:focus-visible {
    outline: 2px solid #c8102e;
    outline-offset: -2px;
}

.panel-notification-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 14px 16px;
    color: #334155;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.panel-message-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    width: 100%;
    padding: 14px 16px;
    color: #334155;
    font: inherit;
    text-align: left;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    appearance: none;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.panel-notification-item:last-child {
    border-bottom: 0;
}

.panel-message-item:last-child {
    border-bottom: 0;
}

.panel-notification-item:hover,
.panel-message-item:hover {
    background: #f8fafc;
    text-decoration: none;
}

.panel-message-item:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #c8102e;
    outline-offset: -2px;
}

.panel-notification-item.unread,
.panel-message-item.unread {
    background: #fff7f7;
    box-shadow: inset 3px 0 #e11d48;
}

.panel-message-item.unread:hover {
    background: #fff1f2;
}

.panel-notification-item.unread .panel-notification-item-name-value,
.panel-message-item.unread .panel-notification-item-name-value {
    color: #9f1239;
    font-weight: 700;
}

.panel-notification-item.unread .panel-notification-item-title-value,
.panel-message-item.unread .panel-notification-item-title-value {
    color: #881337;
    font-weight: 600;
}

.panel-notification-item.unread .panel-notification-item-icon,
.panel-message-item.unread .panel-notification-item-icon {
    color: #be123c;
    background: #ffe4e9;
}

.panel-notification-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #c8102e;
    background: #fff0f2;
    border-radius: 12px;
}

.panel-message-item .panel-notification-item-icon {
    color: #64748b;
    background: #f1f5f9;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.panel-message-item.unread .panel-notification-item-icon {
    color: #be123c;
    background: #ffe4e9;
}

.panel-notification-item-icon svg {
    width: 20px;
    height: 20px;
}

.panel-notification-item-content,
.panel-notification-item-name,
.panel-notification-item-title {
    display: block;
    min-width: 0;
}

.panel-message-item .panel-notification-item-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.panel-message-item .panel-notification-item-name-value {
    min-width: 0;
}

.panel-message-unread-badge {
    flex: 0 0 auto;
    padding: 2px 6px;
    color: #be123c;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    background: #ffe4e9;
    border: 1px solid rgba(190, 18, 60, 0.16);
    border-radius: 999px;
}

.panel-message-item:not(.unread) .panel-notification-item-name-value {
    color: #334155;
    font-weight: 600;
}

.panel-messages-page {
    max-width: 960px;
    margin: 0 auto;
}

.panel-messages-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.panel-messages-page-heading h1 {
    margin: 5px 0 0;
    color: #172033;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.2;
}

.panel-messages-page-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
}

.panel-messages-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
}

.panel-messages-select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
}

.panel-messages-select-all input,
.panel-message-select input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}

.panel-messages-total {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

.panel-messages-page-list {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}

.panel-message-page-item {
    min-height: 96px;
    padding: 17px 20px;
}

.panel-message-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #eef2f7;
}

.panel-message-row:last-child {
    border-bottom: 0;
}

.panel-message-select {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.panel-message-row .panel-message-page-item {
    flex: 1 1 auto;
    min-width: 0;
    border-bottom: 0;
}

.panel-message-page-item .panel-notification-item-title-value {
    white-space: normal;
}

.panel-messages-empty {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: #64748b;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.panel-messages-empty > span {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 12px;
    color: #c8102e;
    font-size: 23px;
    place-items: center;
    background: #fff1f2;
    border-radius: 14px;
}

.panel-messages-empty strong {
    color: #334155;
    font-size: 15px;
}

.panel-messages-empty p {
    margin: 5px 0 0;
    font-size: 13px;
}

.panel-messages-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    color: #64748b;
    font-size: 13px;
}

.panel-messages-pagination a,
.panel-messages-pagination .disabled {
    padding: 8px 11px;
    color: #475569;
    font-weight: 600;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.panel-messages-pagination a:hover {
    color: #c8102e;
    border-color: #fda4af;
}

.panel-messages-pagination .disabled {
    color: #94a3b8;
    background: #f8fafc;
}

.panel-notification-item-name-value,
.panel-notification-item-title-value {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-notification-item-name-value {
    color: #172033;
    font-size: 13px;
    font-weight: 650;
}

.panel-notification-item-title-label {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.panel-notification-item-title {
    margin-top: 8px;
}

.panel-notification-item-title-value {
    margin-top: 2px;
    color: #475569;
    font-size: 13px;
}

.panel-notification-item-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
}

.panel-notification-item-date svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.panel-notification-empty {
    margin: 0;
    padding: 20px 16px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

/* Çıxış ikonu */
.panel-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    min-width: 36px;
    height: 36px;
    margin-left: auto;
    margin-right: 34px;
    color: #ef4b35;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.panel-logout:hover {
    color: #c93422;
    background-color: transparent;
}

/* Body: sol sidebar + əsas sahə — grid ilə eyni sütun strukturu */
.panel-body {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    min-height: calc(100vh - 60px);
}

/* Sol sidebar — logo bloku ilə eyni sütunda, eni təbii olaraq eynidir */
.panel-sidebar {
    background-color: #1e293b;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

.panel-sidebar::-webkit-scrollbar {
    display: none;
}

.panel-sidebar-backdrop {
    display: none;
}

.panel-mobile-quick-nav {
    display: none;
}

/* Əsas sahə (açıq boz fon) */
.panel-main {
    min-width: 0;
    padding: 24px;
    background-color: #E2E8F0;
}

.panel-support-widget {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 1000;
}

.panel-support-float {
    position: relative;
    display: inline-flex;
    width: 54px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    padding: 0;
    color: #fff;
    background: #2563eb;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    opacity: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: width 0.25s ease, border-radius 0.25s ease, gap 0.25s ease, padding 0.25s ease;
}

.panel-support-float:hover,
.panel-support-float:focus-visible {
    width: 150px;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
}

.panel-support-float-label {
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.25s ease, opacity 0.18s ease;
}

.panel-support-float:hover .panel-support-float-label,
.panel-support-float:focus-visible .panel-support-float-label {
    max-width: 120px;
    opacity: 1;
}

.panel-support-float svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    transition: width 0.25s ease, height 0.25s ease;
}

.panel-support-card {
    position: absolute;
    right: 0;
    bottom: calc(100% + 16px);
    width: min(370px, calc(100vw - 32px));
    padding: 22px;
    color: #172033;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.2);
    box-sizing: border-box;
    transform-origin: bottom right;
    animation: panel-support-card-open 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.panel-support-card[hidden] {
    display: none;
}

.panel-ai-widget {
    position: fixed;
    right: 24px;
    bottom: 92px;
    z-index: 1001;
}

.panel-ai-widget.has-support-widget {
    bottom: 160px;
}

.panel-ai-greeting {
    position: absolute;
    right: 62px;
    bottom: 12px;
    z-index: 1;
    width: max-content;
    max-width: min(230px, calc(100vw - 110px));
    padding: 10px 13px;
    color: #263247;
    background: #fff;
    border: 1px solid rgba(215, 25, 45, 0.22);
    border-radius: 14px 14px 4px 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    pointer-events: none;
    opacity: 0;
    transform: translateY(5px) scale(0.97);
    transform-origin: bottom right;
    animation: panel-ai-greeting-cycle 18s ease-in-out 2s infinite;
}

.panel-ai-greeting::after {
    position: absolute;
    right: -6px;
    bottom: 10px;
    width: 10px;
    height: 10px;
    background: #fff;
    border-top: 1px solid rgba(215, 25, 45, 0.22);
    border-right: 1px solid rgba(215, 25, 45, 0.22);
    content: "";
    transform: rotate(45deg);
}

.panel-ai-widget:has(.panel-ai-card:not([hidden])) .panel-ai-greeting {
    display: none;
}

@keyframes panel-ai-greeting-cycle {
    0%, 3%, 20%, 100% {
        opacity: 0;
        transform: translateY(5px) scale(0.97);
    }

    5%, 17% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 768px) {
    .panel-support-widget {
        bottom: 24px;
    }

    .panel-ai-widget:not(.has-support-widget) {
        bottom: 24px;
    }

    .panel-ai-widget.has-support-widget {
        bottom: 92px;
    }
}

.panel-ai-float {
    display: inline-flex;
    width: 54px;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 0;
    overflow: hidden;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
    transition: width 0.2s ease, gap 0.2s ease, padding 0.2s ease;
}

.panel-ai-float:focus-visible {
    width: 150px;
    gap: 9px;
    padding: 10px 14px;
}

.panel-ai-float img {
    width: 42px;
    height: 50px;
    flex: 0 0 auto;
    filter:
        drop-shadow(1px 0 0 #ff0033)
        drop-shadow(-1px 0 0 #ff0033)
        drop-shadow(0 1px 0 #ff0033)
        drop-shadow(0 -1px 0 #ff0033);
    object-fit: contain;
}

.panel-ai-float:hover img {
    animation: panel-ai-float-greet 0.65s ease-in-out;
}

@keyframes panel-ai-float-greet {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    25% {
        transform: translateY(-4px) rotate(-5deg);
    }

    50% {
        transform: translateY(0) rotate(4deg);
    }

    75% {
        transform: translateY(-2px) rotate(-2deg);
    }
}

.panel-ai-float-label {
    display: none;
}

.panel-ai-float:focus-visible .panel-ai-float-label {
    display: inline;
}

.panel-ai-card {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    display: flex;
    width: min(360px, calc(100vw - 32px));
    height: min(500px, calc(100vh - 120px));
    max-height: calc(100vh - 120px);
    flex-direction: column;
    color: #172033;
    background: #f7f8fa;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
    box-sizing: border-box;
    overflow: hidden;
    transform-origin: bottom right;
    animation: panel-support-card-open 0.2s ease both;
}

.panel-ai-widget.has-support-widget .panel-ai-card {
    height: min(500px, calc(100vh - 180px));
    max-height: calc(100vh - 180px);
}

.panel-ai-card[hidden] {
    display: none;
}

.panel-ai-card-header {
    display: flex;
    width: 100%;
    height: 76px;
    min-height: 76px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(110deg, #ef1b32, #b51220);
    box-sizing: border-box;
}

.panel-ai-card-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}

.panel-ai-card-header h2 {
    margin: 0;
    color: inherit;
    font-size: 20px;
    line-height: 1.25;
}

.panel-ai-card-heading p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
}

.panel-ai-online-indicator {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    background: #35e28a;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(53, 226, 138, 0.6);
}

.panel-ai-close {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    color: #fff;
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.panel-ai-close:hover,
.panel-ai-close:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.panel-ai-messages {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 24px 18px;
}

.panel-ai-message {
    max-width: 92%;
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px 18px 18px 4px;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.panel-ai-message-assistant {
    align-self: flex-start;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
}

.panel-ai-message-thinking {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0;
    color: #64748b;
    background: transparent;
    box-shadow: none;
}

.assistant-knowledge-list {
    display: grid;
    gap: 14px;
}

.assistant-knowledge-entry {
    display: grid;
    gap: 14px;
}

.assistant-knowledge-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #64748b;
    font-size: 12px;
}

.assistant-knowledge-field {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.assistant-knowledge-field textarea {
    width: 100%;
    min-height: 84px;
    padding: 11px 12px;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    box-sizing: border-box;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.assistant-knowledge-field textarea:focus-visible {
    border-color: #d7192d;
    outline: 3px solid rgba(215, 25, 45, 0.14);
}

.assistant-knowledge-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.panel-ai-thinking-robot {
    position: relative;
    display: grid;
    width: 48px;
    height: 56px;
    flex: 0 0 48px;
    place-items: center;
    animation: panel-ai-thinking-bob 1.8s ease-in-out infinite;
}

.panel-ai-thinking-robot img {
    width: 48px;
    height: 56px;
    object-fit: contain;
}

.panel-ai-thinking-label {
    font-size: 13px;
    font-weight: 600;
}

.panel-ai-thinking-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.panel-ai-thinking-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d7192d;
    animation: panel-ai-thinking-pulse 1.1s ease-in-out infinite;
}

.panel-ai-thinking-dots span:nth-child(2) {
    animation-delay: 0.16s;
}

.panel-ai-thinking-dots span:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes panel-ai-thinking-pulse {
    0%, 60%, 100% {
        opacity: 0.35;
        transform: translateY(0);
    }

    30% {
        opacity: 1;
        transform: translateY(-4px);
    }
}

@keyframes panel-ai-thinking-bob {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-4px);
    }
}

.panel-ai-ip-answer {
    white-space: pre-line;
}

.panel-ai-message-user {
    align-self: flex-end;
    color: #fff;
    background: #d7192d;
    border-radius: 18px 18px 4px 18px;
}

.panel-ai-results {
    display: grid;
    gap: 8px;
    margin: 9px 0 0;
    padding: 0;
    list-style: none;
}

.panel-ai-results li {
    padding: 0;
    background: transparent;
    border: 0;
}

.panel-ai-result-button {
    display: block;
    width: 100%;
    padding: 10px;
    color: inherit;
    text-align: left;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
}

.panel-ai-navigation-link {
    text-decoration: none;
}

.panel-ai-result-button:hover,
.panel-ai-result-button:focus-visible {
    border-color: #f1a3ac;
    box-shadow: 0 0 0 3px rgba(224, 25, 45, 0.08);
    outline: none;
}

.panel-ai-fallback {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: none;
}

.panel-ai-fallback:hover {
    text-decoration: underline;
}

.panel-ai-result-button > span {
    color: #1d4ed8;
    font-weight: 700;
}

.panel-ai-result-button p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 11px;
}

.panel-ai-detail-overlay {
    z-index: 1200;
}

.ip-modal.panel-ai-detail-modal {
    box-sizing: border-box;
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    text-align: left;
}

.panel-ai-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f6;
}

.panel-ai-detail-header .telimat-popup-basliq {
    margin-top: 5px;
}

.panel-ai-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.panel-ai-detail-meta div {
    min-width: 0;
    padding: 11px 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.panel-ai-detail-meta dt {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 11px;
}

.panel-ai-detail-meta dd {
    margin: 0;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.panel-ai-detail-excerpt {
    margin: 18px 0 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.panel-ai-search-highlight {
    padding: 0 2px;
    color: #7c2d12;
    background: #fde68a;
    border-radius: 3px;
    box-shadow: 0 0 0 2px rgba(253, 230, 138, 0.45);
}

.panel-ai-fallback {
    display: inline-block;
    margin-top: 8px;
}

.panel-ai-form {
    display: flex;
    flex: 0 0 auto;
    padding: 12px;
    background: #fff;
    border-top: 1px solid #e9edf1;
}

.panel-ai-form > label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.panel-ai-input-wrap {
    display: flex;
    min-height: 56px;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    padding: 0 10px 0 18px;
    background: #f0f2f5;
    border-radius: 999px;
}

.panel-ai-form textarea {
    min-width: 0;
    min-height: 24px;
    max-height: 90px;
    flex: 1 1 auto;
    padding: 4px 0;
    color: #172033;
    background: transparent;
    border: 0;
    border-radius: 0;
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    resize: none;
}

.panel-ai-form textarea:focus {
    outline: none;
}

.panel-ai-form button {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #e0192d;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.panel-ai-form button svg {
    width: 26px;
    height: 26px;
}

.panel-ai-form button:disabled {
    opacity: 0.45;
    cursor: wait;
}

.panel-support-card::after {
    position: absolute;
    right: 20px;
    bottom: -8px;
    width: 15px;
    height: 15px;
    content: "";
    background: #fff;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

.panel-support-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.panel-support-card-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.panel-support-card-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    color: #e11d48;
    background: #fff1f2;
    border-radius: 13px;
}

.panel-support-card-icon svg {
    width: 22px;
    height: 22px;
}

.panel-support-card-heading h2 {
    margin: 1px 0 5px;
    font-size: 18px;
    line-height: 1.3;
}

.panel-support-card-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.panel-support-card-close {
    display: inline-flex;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.panel-support-form {
    display: grid;
    gap: 8px;
}

.panel-support-form label {
    margin-top: 4px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.panel-support-form input,
.panel-support-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.panel-support-form textarea {
    min-height: 112px;
    resize: vertical;
}

.panel-support-form input:focus,
.panel-support-form textarea:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.panel-support-submit {
    min-height: 44px;
    margin-top: 8px;
    color: #fff;
    background: #e11d48;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    opacity: 1;
    cursor: pointer;
}

.panel-support-form-note {
    margin: 2px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.support-admin-page > .ip-page-heading {
    margin-bottom: 18px;
}

.support-admin-requests {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
}

.support-admin-page .support-admin-requests:not(.support-admin-empty) {
    gap: 10px;
    padding: 16px;
}

.support-admin-requests.support-admin-empty {
    min-height: 270px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.support-admin-placeholder-icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    color: #e11d48;
    background: #fff1f2;
    border-radius: 18px;
}

.support-admin-placeholder-icon svg {
    width: 28px;
    height: 28px;
}

.support-admin-requests h2 {
    margin: 18px 0 7px;
    color: #172033;
    font-size: 18px;
}

.support-admin-requests > p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.support-admin-table {
    min-width: 1120px;
    text-align: left;
}

.support-admin-manage-table {
    min-width: 1160px;
    table-layout: fixed;
}

.support-admin-manage-table th,
.support-admin-manage-table td {
    padding-right: 9px;
    padding-left: 9px;
}

.support-admin-manage-table th:nth-child(1),
.support-admin-manage-table td:nth-child(1) {
    width: 48px;
}

.support-admin-manage-table th:nth-child(2),
.support-admin-manage-table td:nth-child(2) {
    width: 270px;
}

.support-admin-manage-table th:nth-child(3),
.support-admin-manage-table td:nth-child(3) {
    width: 175px;
}

.support-admin-manage-table th:nth-child(4),
.support-admin-manage-table td:nth-child(4) {
    width: 110px;
}

.support-admin-manage-table th:nth-child(5),
.support-admin-manage-table td:nth-child(5) {
    width: 135px;
}

.support-admin-manage-table th:nth-child(6),
.support-admin-manage-table td:nth-child(6) {
    width: 110px;
}

.support-admin-manage-table th:nth-child(7),
.support-admin-manage-table td:nth-child(7) {
    width: 145px;
}

.support-admin-manage-table .support-admin-request-copy {
    min-width: 0;
}

.support-my-table {
    min-width: 760px;
    table-layout: fixed;
}

.support-my-table th:first-child,
.support-my-table td.support-admin-row-number {
    width: 60px;
}

.support-my-table th:last-child,
.support-my-table td:last-child {
    width: 130px;
}

.support-my-table th:nth-last-child(2),
.support-my-table td:nth-last-child(2) {
    width: 180px;
}

.support-my-table td:last-child {
    color: #64748b;
    white-space: nowrap;
}

.support-my-table .support-admin-request-copy {
    min-width: 0;
}

.support-admin-table th:first-child,
.support-admin-table td.support-admin-row-number {
    width: 56px;
    color: #64748b;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.support-admin-request-copy {
    min-width: 280px;
}

.support-request-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 10px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.support-admin-request-copy strong,
.support-admin-table td > strong {
    display: block;
    color: #172033;
    font-size: 13px;
}

.support-admin-request-copy p {
    margin: 6px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
}

.support-admin-result-copy {
    min-width: 200px;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
    white-space: normal;
}

.support-result-pending {
    color: #94a3b8;
    font-style: italic;
}

.support-result-view-button {
    min-height: 32px;
    padding: 5px 12px;
    font-size: 11px;
}

.support-result-modal {
    width: min(560px, calc(100vw - 32px));
    padding: 22px;
    text-align: left;
}

.support-result-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef2f6;
}

.support-result-modal-header .telimat-popup-basliq {
    margin: 4px 0 0;
}

.support-result-modal-header [data-support-result-subject] {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 12px;
}

.support-result-admin {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 12px;
}

.support-result-admin strong {
    color: #334155;
}

.support-result-modal-content {
    margin: 16px 0 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.support-admin-result-cell {
    min-width: 0;
    text-align: center;
}

.support-admin-result-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.support-admin-result-open {
    min-height: 34px;
    padding: 6px 14px;
    font-size: 11px;
}

.support-admin-cancel-button {
    min-height: 34px;
    padding: 6px 10px;
    color: #b91c1c;
    border-color: #fecaca;
    font-size: 11px;
}

.support-admin-cancel-button:hover {
    color: #991b1b;
    background: #fef2f2;
}

.support-request-status.is-cancelled {
    color: #475569;
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.support-request-status.is-completed {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.support-admin-result-modal {
    width: min(560px, calc(100vw - 32px));
    padding: 22px;
    text-align: left;
}

.support-admin-cancel-modal {
    width: min(440px, calc(100vw - 32px));
    text-align: left;
}

.support-admin-cancel-modal .telimat-popup-basliq {
    margin-bottom: 8px;
}

.support-admin-cancel-modal .telimat-popup-metn {
    margin: 0;
}

.support-admin-result-modal-form {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.support-admin-result-modal-form label {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.support-admin-result-modal-form textarea {
    width: 100%;
    min-height: 132px;
    padding: 10px 12px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
}

.support-admin-result-modal-form textarea:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.support-admin-result-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.support-admin-table td small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
}

@keyframes panel-support-card-open {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Yuxar? m?lumat kartlar? (m?s?l?n: Admin / T?limatlar) */
.panel-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.panel-cards-admin {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.panel-cards-admin .panel-card {
    --stat-accent: #64748b;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 116px;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--stat-accent);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.045);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.panel-cards-admin .panel-card:nth-child(1) { --stat-accent: #64748b; }
.panel-cards-admin .panel-card:nth-child(2) { --stat-accent: #16a36a; }
.panel-cards-admin .panel-card:nth-child(3) { --stat-accent: #3b82f6; }
.panel-cards-admin .panel-card:nth-child(4) { --stat-accent: #e89b12; }
.panel-cards-admin .panel-card:nth-child(5) { --stat-accent: #e5484d; }

.panel-cards-admin .panel-card::before {
    position: absolute;
    top: -27px;
    right: -19px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--stat-accent);
    content: "";
    opacity: 0.07;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.panel-cards-admin .panel-card-link {
    color: inherit;
}

.panel-cards-admin .panel-card-link:hover {
    border-color: color-mix(in srgb, var(--stat-accent) 38%, #e2e8f0);
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.panel-cards-admin .panel-card-link:hover::before {
    opacity: 0.12;
    transform: scale(1.12);
}

.panel-cards-admin .panel-card-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--stat-accent) 48%, transparent);
    outline-offset: 3px;
}

.panel-cards-admin .panel-card-link.active {
    border-color: color-mix(in srgb, var(--stat-accent) 42%, #e2e8f0);
    background: color-mix(in srgb, var(--stat-accent) 5%, #ffffff);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--stat-accent) 12%, transparent),
                0 3px 10px rgba(15, 23, 42, 0.05);
}

.panel-cards-admin .panel-card-say {
    position: relative;
    color: #172033;
    font-size: clamp(26px, 2.2vw, 34px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.045em;
}

.panel-cards-admin .panel-card-ad {
    position: relative;
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.panel-cards-admin .panel-card-link::after {
    position: absolute;
    right: 17px;
    bottom: 15px;
    color: var(--stat-accent);
    content: "→";
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.panel-cards-admin .panel-card-link:hover::after,
.panel-cards-admin .panel-card-link.active::after {
    opacity: 1;
    transform: translateX(0);
}

.panel-card {
    padding: 16px 18px 14px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.panel-card:hover {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.panel-card-say {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: #0f172a;
}

.panel-card-ad {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.015em;
    color: #64748b;
}

/* Yığılmış hal (burger basıldıqda):
   - logo bloku və sidebar eyni dar enə qalır (--sidebar-w dəyişir)
   - logo blokunda yalnız loqo qalır, mətn gizlənir */
.panel-page.panel-sidebar-hidden {
    --sidebar-w: 56px;
}

.panel-page.panel-sidebar-hidden .panel-logo-block {
    justify-content: center;
    padding: 0;
}

.panel-page.panel-sidebar-hidden .panel-logo-text {
    display: none;
}

/* Y???l? halda menyu da sad?l??ir: yaln?z ikonlar qal?r */
.panel-page.panel-sidebar-hidden .panel-menu-item span,
.panel-page.panel-sidebar-hidden .panel-submenu {
    display: none;
}

.panel-page.panel-sidebar-hidden .panel-menu-item {
    justify-content: center;
    padding: 10px 0;
}

.panel-page.panel-sidebar-hidden .panel-menu-item svg {
    flex: 0 0 20px;
}

/* ---------------------------------------- Kiçik ekranlar - */
@media (max-width: 900px) {
    .login-right {
        padding: 32px 16px 48px;
    }

    .panel-office {
        display: none;
    }

    .panel-notification {
        position: relative;
    }

    .panel-header-search {
        flex-basis: 40px;
        min-width: 40px;
        max-width: none;
        margin-right: 8px;
    }

    .panel-header-search.is-open .telimat-axtaris-input {
        width: min(280px, calc(100vw - 210px));
    }

    .panel-notification-panel {
        position: fixed;
        top: 56px;
        right: 12px;
    }

    .panel-cards {
        grid-template-columns: 1fr;
    }

    .panel-cards-admin {
        grid-template-columns: repeat(5, minmax(140px, 1fr));
        overflow-x: auto;
        padding: 3px 2px 10px;
        scroll-snap-type: x proximity;
        scrollbar-color: #cbd5e1 transparent;
        scrollbar-width: thin;
    }

    .panel-cards-admin .panel-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 520px) {
    .login-page {
        min-height: 100vh;
        min-height: 100svh;
    }

    .login-right {
        padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .login-card {
        width: min(100%, 320px);
        padding: 20px 22px 18px;
        border-radius: 24px;
    }

    .login-title {
        gap: 8px;
        margin-bottom: 16px;
        font-size: clamp(20px, 5.6vw, 24px);
    }

    .login-title-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .login-btn {
        box-sizing: border-box;
        min-width: 190px;
        height: 42px;
        padding: 0 22px;
        font-size: 15px;
        border-radius: 7px;
    }

    .login-card .login-test-admin {
        margin-top: 10px;
    }

    .login-copyright {
        max-width: 100%;
        padding: 0 4px;
        line-height: 1.5;
    }
}

@media (max-width: 900px) {
    .panel-cashier-group-link {
        width: 36px;
        margin-right: 4px;
        padding: 0;
    }

    .panel-cashier-group-link-label {
        display: none;
    }
}

@media (max-width: 767px) {
    .panel-sidebar {
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 0.2s ease, visibility 0.2s ease;
    }

    .panel-page.panel-mobile-sidebar-open .panel-sidebar {
        visibility: visible;
        transform: translateX(0);
    }

    .panel-sidebar-backdrop {
        position: fixed;
        inset: 60px 0 0;
        z-index: 17;
        display: block;
        width: 100%;
        padding: 0;
        background: rgba(15, 23, 42, 0.45);
        border: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .panel-page.panel-mobile-sidebar-open .panel-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel-ai-thinking-dots span,
    .panel-ai-thinking-robot,
    .panel-ai-float:hover img {
        animation: none;
    }

    .panel-ai-greeting {
        animation-name: panel-ai-greeting-cycle-reduced;
        animation-timing-function: steps(1, end);
    }

    @keyframes panel-ai-greeting-cycle-reduced {
        0%, 3%, 20%, 100% {
            opacity: 0;
        }

        5%, 17% {
            opacity: 1;
        }
    }

    .panel-cards-admin .panel-card,
    .panel-cards-admin .panel-card::before,
    .panel-cards-admin .panel-card-link::after {
        transition: none;
    }
}

@media (max-width: 520px) {
    .ms-card {
        padding: 24px 16px;
    }

    .panel-burger {
        flex: 0 0 32px;
        width: 32px;
        margin: 0 4px;
    }

    .panel-profile {
        flex: 0 1 100px;
        margin-left: 4px;
        max-width: 100px;
    }

    .panel-header-search {
        flex: 0 0 40px;
        flex-basis: 40px;
        width: 40px;
        min-width: 40px;
        margin: 0 6px;
    }

    .panel-header-search.is-open .telimat-axtaris-input {
        width: min(240px, calc(100vw - 150px));
    }

    .panel-notification {
        margin-right: 4px;
    }

    .panel-logout {
        flex: 0 0 auto;
        width: auto;
        margin-right: 4px;
        padding: 0 6px;
    }

    .panel-fullname {
        font-size: 14px;
    }

    .panel-profile-details {
        font-size: 10px;
    }
}

@media (max-width: 767px) {
    .panel-topbar {
        gap: 0;
        padding-right: 4px;
        padding-left: 0 !important;
    }

    .panel-logo-block {
        display: none !important;
    }

    .panel-burger {
        flex: 0 0 32px;
        width: 32px;
        margin: 0 2px;
    }

    .panel-cashier-group-link {
        flex-basis: 32px;
        width: 32px;
        min-height: 36px;
        margin: 0 2px;
    }

    .panel-profile {
        flex: 1 1 0;
        width: auto;
        min-width: 48px;
        max-width: none !important;
        margin: 0 4px;
    }

    .panel-fullname {
        font-size: 12px;
    }

    .panel-profile-details {
        display: none;
    }

    .telimat-axtaris.panel-header-search {
        flex: 0 0 32px;
        width: 32px;
        min-width: 32px;
        margin: 0 2px;
    }

    .panel-header-search.is-open .telimat-axtaris-input {
        width: min(260px, calc(100vw - 100px));
    }

    .panel-notification {
        flex: 0 0 32px;
        width: 32px;
        margin: 0 4px;
    }

    .panel-notification-trigger,
    .panel-message-icon,
    .panel-favorites-icon {
        width: 32px;
        height: 36px;
    }

    .panel-message-icon {
        flex-basis: 32px;
        margin-left: 0;
    }

    .panel-favorites-icon {
        flex: 0 0 32px;
        margin: 0 4px;
    }

    .panel-logout {
        flex: 0 0 32px;
        width: 32px;
        min-width: 32px;
        height: 36px;
        margin: 0 2px;
        padding: 0;
    }

    .panel-logout span {
        display: none;
    }

    .panel-message-panel {
        position: fixed;
        top: 60px;
        right: 12px;
        display: flex;
        flex-direction: column;
        width: min(360px, calc(100vw - 24px));
        max-height: calc(100vh - 72px);
        max-height: calc(100dvh - 72px);
    }

    .panel-message-panel[hidden] {
        display: none;
    }

    .panel-message-items {
        min-height: 0;
        max-height: none;
        flex: 1 1 auto;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .panel-message-panel .panel-notification-item-title-value {
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .panel-messages,
    .panel-favorites-icon {
        display: none !important;
    }

    .panel-mobile-quick-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 16;
        display: grid;
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px));
        background: #1e293b;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.2);
    }

    .panel-mobile-quick-nav-item {
        display: flex;
        min-width: 0;
        min-height: 52px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 5px 4px;
        color: #8b98ab;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .panel-mobile-quick-nav-item svg {
        width: 21px;
        height: 21px;
        flex: 0 0 21px;
    }

    .panel-mobile-quick-nav-icon-wrap {
        position: relative;
        display: inline-flex;
        width: 21px;
        height: 21px;
        flex: 0 0 21px;
    }

    .panel-mobile-quick-nav-badge {
        position: absolute;
        top: -5px;
        right: -9px;
        min-width: 15px;
        height: 15px;
        padding: 0 3px;
        color: #fff;
        background: #e11d48;
        border: 1px solid #fff;
        border-radius: 999px;
        font-size: 9px;
        font-weight: 700;
        line-height: 13px;
        text-align: center;
    }

    .panel-mobile-quick-nav-item.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.07);
    }

    .panel-main-with-quick-nav {
        padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
    }

    .panel-ai-widget {
        bottom: calc(160px + env(safe-area-inset-bottom, 0px));
    }

    .panel-ai-widget.has-support-widget {
        bottom: calc(228px + env(safe-area-inset-bottom, 0px));
    }

    .panel-support-widget {
        bottom: calc(160px + env(safe-area-inset-bottom, 0px));
    }

}

@media (max-width: 360px) {
    .panel-profile {
        min-width: 32px;
    }
}

/* ================== T?limat popup (t?sdiq ekran?) == */

.telimat-popup-fon {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(15, 23, 42, 0.5);
}

.telimat-popup-fon[hidden] {
    display: none;
}

.telimat-popup {
    width: 420px;
    max-width: 100%;
    padding: 28px 28px 24px;
    text-align: center;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.telimat-popup-basliq {
    margin: 0 0 10px;
    font-size: 19px;
    font-weight: 600;
    color: #0f172a;
}

.telimat-popup-metn {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

.telimat-popup-emeller {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.telimat-fayl-emeller {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.telimat-video {
    margin: 20px 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.telimat-video-bas {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.telimat-video-ikon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: #2563eb;
    background: #dbeafe;
    border-radius: 10px;
}

.telimat-video-ikon svg {
    width: 22px;
    height: 22px;
}

.telimat-video-bas strong,
.telimat-video-bas span:not(.telimat-video-ikon) {
    display: block;
}

.telimat-video-bas strong {
    color: #0f172a;
    font-size: 14px;
}

.telimat-video-bas div span {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.telimat-video video {
    display: block;
    width: 100%;
    max-height: 70vh;
    border-radius: 8px;
    background: #0f172a;
}

.telimat-upload-progress {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .62);
}

.telimat-upload-progress[hidden] {
    display: none;
}

.telimat-upload-progress-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(100%, 460px);
    padding: 22px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #fff;
    color: #1e3a8a;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .25);
}

.telimat-upload-spinner {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 3px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: telimat-upload-spin .8s linear infinite;
}

.telimat-upload-progress-content {
    min-width: 0;
    flex: 1;
}

.telimat-upload-progress-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
}

.telimat-upload-progress-label strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.telimat-upload-progress-label span {
    flex: 0 0 auto;
    font-weight: 700;
}

.telimat-upload-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 99px;
    background: #dbeafe;
}

.telimat-upload-progress-track > span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    transition: width .15s ease;
}

.telimat-upload-progress.is-complete .telimat-upload-progress-track > span {
    background: #16a34a;
}

.telimat-upload-progress.is-error {
    border-color: #fecaca;
    background: rgba(127, 29, 29, .45);
    color: #991b1b;
}

.telimat-upload-progress.is-error .telimat-upload-progress-card {
    border-color: #fecaca;
    background: #fef2f2;
}

.telimat-upload-progress.is-error .telimat-upload-spinner {
    display: none;
}

@keyframes telimat-upload-spin {
    to { transform: rotate(360deg); }
}

.telimat-pdf {
    margin-top: 0;
}

.telimat-pdf-sehife {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.telimat-pdf-canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.telimat-pdf-sehife .textLayer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    color: transparent;
    line-height: 1;
    text-align: initial;
    transform-origin: 0 0;
    user-select: text;
    -webkit-user-select: text;
}

.telimat-pdf-sehife .textLayer span,
.telimat-pdf-sehife .textLayer br {
    position: absolute;
    color: transparent;
    white-space: pre;
    cursor: text;
    transform-origin: 0 0;
}

.telimat-pdf-sehife .textLayer ::selection {
    color: transparent;
    background: rgba(37, 99, 235, .28);
}

.telimat-pdf-status {
    margin: 8px 0;
    color: #64748b;
    font-size: 13px;
}

.telimat-fayl-emeller .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
}

.telimat-fayl-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}

.telimat-fayl-modal[hidden] {
    display: none;
}

.telimat-fayl-dialog {
    display: flex;
    flex-direction: column;
    width: min(1100px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.telimat-fayl-modal-bas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding: 14px 20px;
    border-bottom: 1px solid #e8edf3;
}

.telimat-fayl-modal-metn {
    min-width: 0;
}

.telimat-fayl-modal-metn h2 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
}

.telimat-fayl-modal-metn p {
    overflow: hidden;
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.telimat-fayl-modal-emeller {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
}

.telimat-fayl-modal-emeller .btn {
    min-height: 38px;
    justify-content: center;
}

.telimat-fayl-modal-bagla {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.telimat-fayl-modal-bagla:hover {
    color: #b91c1c;
    background: #fff1f2;
    transform: rotate(4deg);
}

.telimat-fayl-modal-mezmun {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    overflow: auto;
    background: #f1f5f9;
}

.telimat-fayl-modal-iframe {
    display: block;
    width: 100%;
    height: min(72vh, 740px);
    min-height: 420px;
    background: #ffffff;
    border: 0;
}

.telimat-fayl-modal-sekil {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 180px);
    object-fit: contain;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.12);
}

.telimat-fayl-modal-destek {
    max-width: 520px;
    margin: 32px;
    padding: 28px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.65;
    text-align: center;
}

@media (max-width: 640px) {
    .telimat-fayl-modal {
        padding: 10px;
    }

    .telimat-fayl-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 14px;
    }

    .telimat-fayl-modal-bas {
        gap: 10px;
        min-height: 66px;
        padding: 12px;
    }

    .telimat-fayl-modal-emeller {
        gap: 6px;
    }

    .telimat-fayl-modal-emeller .btn {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .telimat-fayl-modal-bagla {
        width: 36px;
        height: 36px;
    }

    .telimat-fayl-modal-iframe {
        height: calc(100vh - 110px);
        min-height: 280px;
    }

    .telimat-fayl-modal-sekil {
        max-height: calc(100vh - 110px);
    }

}

/* ====== ?stifad?�i g�r�n�?�: yay?mlanm?? t?limat kartlar? == */

.telimat-kartlar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.telimat-kart {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 184px;
    padding: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 0, 60, 0.045), transparent 36%),
        #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.045);
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.telimat-kart[hidden],
.ip-user-card[hidden],
.ip-table tr[hidden] {
    display: none !important;
}

.telimat-kart:hover {
    text-decoration: none;
    border-color: rgba(255, 0, 60, 0.28);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-3px);
}

.telimat-kart:focus-visible {
    outline: 3px solid rgba(255, 0, 60, 0.3);
    outline-offset: 3px;
}

.telimat-kart-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.telimat-kart-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.telimat-kart-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    color: #FF003C;
    background: linear-gradient(145deg, #fff0f3, #ffe0e8);
    border: 1px solid rgba(255, 0, 60, 0.09);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.telimat-kart:hover .telimat-kart-ikon {
    transform: rotate(-4deg) scale(1.05);
}

.telimat-kartderc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #edf1f5;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.telimat-kart-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #c7f0d6;
    border-radius: 999px;
    color: #166534;
    background: #ecfdf3;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.telimat-kartbas {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -0.015em;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.telimat-kartkec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    font-weight: 600;
    color: #FF003C;
}

.telimat-kartkec-ox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #FF003C;
    background: #fff0f3;
    border-radius: 50%;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.telimat-kart:hover .telimat-kartkec-ox {
    color: #ffffff;
    background: #FF003C;
    transform: translateX(2px);
}

.telimat-bos {
    margin: 0 0 4px;
    font-size: 14px;
    color: #64748b;
}

.telimat-axtaris {
    display: flex;
    align-items: center;
    flex: 0 1 340px;
    min-width: 220px;
    height: 40px;
    padding: 0 6px 0 0;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.panel-header-search {
    position: relative;
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    margin: 0 12px 0 auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.telimat-axtaris.panel-header-search:focus-within {
    border-color: transparent;
    box-shadow: none;
}

.panel-header-search .telimat-axtaris-input {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 40px;
    padding: 0 42px 0 16px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    visibility: hidden;
    opacity: 0;
    transition: width 0.25s ease, opacity 0.15s ease, box-shadow 0.2s ease;
}

.panel-header-search.is-open .telimat-axtaris-input {
    width: 320px;
    visibility: visible;
    opacity: 1;
}

.panel-header-search .telimat-axtaris-input:focus {
    border-color: #FF003C;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 0, 60, 0.12);
}

.panel-header-search .telimat-axtaris-duyme {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
}

.panel-header-search .telimat-axtaris-temizle {
    display: none;
    position: absolute;
    top: 6px;
    right: 40px;
    z-index: 2;
}

.panel-header-search.is-open .telimat-axtaris-temizle {
    display: inline-flex;
}

.panel-search-suggestions {
    position: absolute;
    top: 46px;
    right: 0;
    z-index: 30;
    width: 360px;
    max-width: min(360px, calc(100vw - 32px));
    max-height: min(420px, calc(100vh - 90px));
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

.panel-search-suggestions[hidden] {
    display: none;
}

.panel-search-suggestion {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
}

.panel-search-suggestion:hover,
.panel-search-suggestion:focus {
    color: inherit;
    background: #f8fafc;
    text-decoration: none;
}

.panel-search-suggestion-type {
    color: #be123c;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.panel-search-suggestion-title {
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-search-suggestion-detail {
    display: -webkit-box;
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.panel-search-suggestions-message {
    margin: 0;
    padding: 16px;
    color: #64748b;
    font-size: 13px;
}

.panel-search-suggestions-message.is-error {
    color: #b91c1c;
}

.panel-search-suggestions-all {
    display: block;
    padding: 12px 14px;
    color: #be123c;
    font-size: 12px;
    font-weight: 650;
    text-align: center;
}

.panel-search-suggestions-all:hover,
.panel-search-suggestions-all:focus {
    background: #fff1f2;
    text-decoration: none;
}

.telimat-axtaris:focus-within {
    border-color: #FF003C;
    box-shadow: 0 0 0 3px rgba(255, 0, 60, 0.12);
}

.telimat-axtaris-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 4px 0 16px;
    font-family: inherit;
    font-size: 14px;
    line-height: 40px;
    color: #0f172a;
    background-color: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.telimat-axtaris-input::placeholder {
    color: #94a3b8;
}

.telimat-axtaris-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.telimat-axtaris-duyme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    color: #ffffff;
    background-color: #FF003C;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.telimat-axtaris-duyme:hover {
    color: #ffffff;
    background-color: #d10033;
}

.telimat-axtaris-temizle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin: 0 2px 0 4px;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    color: #94a3b8;
    border-radius: 50%;
}

.telimat-axtaris-temizle:hover {
    color: #FF003C;
    background-color: #f1f5f9;
    text-decoration: none;
}

.portal-search-results {
    width: 100%;
    max-width: 1100px;
    margin: 20px auto 0;
}

.portal-search-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.portal-search-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 650;
}

.portal-search-heading p,
.portal-search-message {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.portal-search-list {
    display: grid;
    gap: 12px;
}

.portal-search-result {
    display: block;
    padding: 18px 20px;
    color: inherit;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.portal-search-result:hover {
    color: inherit;
    border-color: rgba(255, 0, 60, 0.35);
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    transform: translateY(-1px);
}

.portal-search-result-type {
    display: inline-flex;
    margin-bottom: 7px;
    padding: 3px 9px;
    color: #be123c;
    background: #fff1f2;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
}

.portal-search-result h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 650;
}

.portal-search-result p {
    display: -webkit-box;
    margin: 8px 0 10px;
    overflow: hidden;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.portal-search-result-meta {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.portal-search-result-file {
    display: block;
    margin: -2px 0 7px;
    color: #475569;
    font-size: 12px;
}

.portal-search-message {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.portal-search-error {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

@media (max-width: 900px) {
    .panel-header-search.is-open .telimat-axtaris-input {
        width: min(280px, calc(100vw - 210px));
    }
}

@media (max-width: 520px) {
    .panel-search-suggestions {
        position: fixed;
        top: 60px;
        right: 12px;
        width: min(360px, calc(100vw - 24px));
        max-width: none;
    }

    .panel-header-search.is-open .telimat-axtaris-input {
        width: min(240px, calc(100vw - 190px));
    }
}

/* ================== T?limat detal? (oxu s?hif?si) == */

.telimat-detalkart {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 30px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

/* S?hif? ba?l??? c?rg?si: ba?l?q solda, axtar?? sa?da (istifad?�i g�r�n�?�) */
.telimat-basliqsetr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.panel-module-heading-actions,
.panel-module-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-module-heading-actions {
    justify-content: flex-end;
}

.telimat-basliqsetr .panel-module-heading-actions {
    flex: 1 1 460px;
    min-width: 0;
}

.telimat-basliqsetr .panel-module-heading-actions .ip-admin-search {
    flex: 1 1 320px;
}

.panel-module-detail-actions {
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.panel-favorite-form {
    margin: 0;
}

.panel-favorite-toggle {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    color: #475569;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.panel-favorite-toggle:hover,
.panel-favorite-toggle.is-favorite {
    color: #a16207;
    background: #fffbeb;
    border-color: #facc15;
}

.panel-favorite-toggle svg {
    width: 17px;
    height: 17px;
}

.panel-favorites-page {
    max-width: 1100px;
    margin: 0 auto;
}

.panel-favorites-list {
    display: grid;
    gap: 12px;
}

.panel-favorite-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.panel-favorite-card > a {
    display: grid;
    min-width: 0;
    flex: 1;
    gap: 5px;
    color: #172033;
    text-decoration: none;
}

.panel-favorite-card > a:hover strong {
    color: #b45309;
}

.panel-favorite-type,
.panel-favorite-card time {
    color: #64748b;
    font-size: 12px;
}

.panel-favorite-card strong {
    overflow-wrap: anywhere;
    font-size: 15px;
}

.panel-favorite-card form {
    margin: 0;
}

.panel-favorite-remove {
    padding: 7px 10px;
    color: #64748b;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.panel-favorite-remove:hover,
.panel-favorite-remove:focus-visible {
    color: #b91c1c;
    border-color: #fecaca;
}

.panel-module-detail-actions .telimat-geri {
    margin-bottom: 0;
}

.panel-manage-shortcut {
    flex: 0 0 auto;
}

/* Admin axtarış + Yeni təlimat düyməsi — bir sətrdə, səliqəli */
.telimat-admin-arac {
    display: flex;
    align-items: center;
    gap: 12px;
}

.telimat-sehifebas {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.telimat-geri {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 9px 18px 9px 13px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #ffffff;
    background-color: #FF003C;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 0, 60, 0.28);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.telimat-geri:hover {
    color: #ffffff;
    background-color: #d10033;
    box-shadow: 0 4px 14px rgba(255, 0, 60, 0.35);
    transform: translateX(-2px);
    text-decoration: none;
}

.telimat-detalbas {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}

.telimat-detalmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    font-size: 13px;
    color: #94a3b8;
    border-bottom: 1px solid #eef2f7;
}

.telimat-detalmeta-melumat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.telimat-detalmeta-melumat svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #64748b;
}

.telimat-detalmeta strong {
    color: #475569;
    font-weight: 600;
}

.telimat-detalmetn {
    font-family: "Gilroy", sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #1e293b;
    overflow-wrap: break-word;
}

.telimat-detalmetn * {
    font-family: "Gilroy", sans-serif !important;
}

.telimat-detalmetn img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .panel-main .telimat-detalkart {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        margin: 0 auto;
        padding: 20px 16px;
    }

    .telimat-detalkart .panel-module-detail-actions {
        align-items: center;
        gap: 8px;
    }

    .telimat-detalkart .panel-module-detail-actions .telimat-geri {
        min-width: 0;
        padding-right: 12px;
        padding-left: 10px;
        font-size: 13px;
    }

    .telimat-detalkart .panel-manage-shortcut {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .telimat-detalkart .panel-favorite-form {
        flex: 1 1 100%;
    }

    .telimat-detalkart .panel-favorite-toggle {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        text-align: left;
    }

    .telimat-detalkart .telimat-detalbas,
    .telimat-detalkart .telimat-detalmetn {
        overflow-wrap: anywhere;
    }

    .telimat-detalkart .telimat-detalmeta {
        gap: 8px 14px;
    }
}

/* =========================== Sidebar menyusu (?sas + dropdown) == */

.panel-menu {
    padding: 10px 0;
}

.panel-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.015em;
    color: #8b98ab;
    text-align: left;
    text-decoration: none;
    background: none;
    border: none;
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.panel-menu-item svg {
    flex: 0 0 20px;
    opacity: 0.75;
}

.panel-menu-item:hover {
    color: #d3dae4;
    background-color: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.panel-menu-item:hover svg {
    opacity: 1;
}

/* Aktiv menyu: daxil olunan ba?l?q a? yaz? + a? ikon */
.panel-menu-item.active {
    color: #ffffff;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.07);
    border-left-color: #FF003C;
}

.panel-menu-item.active svg {
    opacity: 1;
}

/* Alt menyular (yum?aq animasiya il? a�?l?r) */
.panel-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.panel-menu-group.open > .panel-submenu {
    max-height: none;
}

.panel-subitem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 18px 8px 50px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.015em;
    color: #78869b;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.panel-subitem-nested {
    padding-left: 66px;
    font-size: 12px;
}

.ip-sidebar-category-toggle {
    width: 100%;
    color: inherit;
    background: transparent;
    border: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.ip-sidebar-category-group {
    width: 100%;
}

.ip-sidebar-category-group > .ip-sidebar-category-toggle {
    padding: 8px 18px 8px 50px;
    font-size: 13px;
    font-weight: 400;
    color: #78869b;
}

.ip-sidebar-category-toggle:hover,
.ip-sidebar-category-toggle:focus-visible {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.ip-sidebar-category-group.open > .ip-sidebar-category-toggle {
    color: #78869b;
    background-color: transparent;
}

.ip-sidebar-category-toggle:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}

.ip-sidebar-category-content {
    padding: 0 0 4px;
    border-left: 2px solid rgba(255, 255, 255, 0.08);
    margin-left: 50px;
}

.ip-sidebar-category-content[hidden] {
    display: none;
}

.ip-sidebar-category-content .panel-subitem-nested {
    padding-left: 16px;
}

.panel-subitem-pending {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.panel-subitem-badge {
    flex: 0 0 auto;
    min-width: 20px;
    padding: 2px 6px;
    color: #fff;
    background: #c8102e;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

#cash-handover-unread-count[hidden] {
    display: none;
}

.panel-menu-badge {
    margin-left: auto;
}

.panel-menu-group.open > .panel-menu-toggle .panel-menu-badge {
    display: none;
}

.panel-subitem:hover {
    color: #e4e9f1;
    background-color: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

/* Aktiv alt menyu: daxil olunan yaz? a? olur */
.panel-subitem.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
    border-left-color: #FF003C;
}

/* ============ Admin: Telimatlar (kartlar + forma) ============ */

.panel-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px; /* axtarış qutusu ilə eyni hündürlük */
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.btn:hover { text-decoration: none; }

.btn-esas {
    color: #ffffff;
    background-color: #FF003C;
}

.btn-esas:hover { background-color: #d10033; }

.btn-geri {
    color: #334155;
    background-color: #ffffff;
    border-color: #cbd5e1;
}

.btn-geri:hover { background-color: #f1f5f9; }

.telimat-ugurlu {
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 14px;
    color: #166534;
    background-color: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 10px;
}

/* Vahid toast bildiriş sistemi — ekranın sağ-üstündə çıxır, özü bağlanır */
.toast-qutu {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 36px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-left-width: 5px;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16);
    animation: toast-giris 0.25s ease-out;
}

.toast-ugurlu { border-left-color: #16a34a; }
.toast-ugurlu .toast-ikon { color: #16a34a; }

.toast-xeta { border-left-color: #dc2626; }
.toast-xeta .toast-ikon { color: #dc2626; }

.toast-melumat { border-left-color: #2563eb; }
.toast-melumat .toast-ikon { color: #2563eb; }

.toast-ikon {
    flex: 0 0 auto;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.toast-mesaj { flex: 1 1 auto; }
.toast-mesaj ul { margin: 0; padding-left: 18px; }

.toast-bagla {
    flex: 0 0 auto;
    padding: 0 2px;
    font-size: 16px;
    line-height: 1;
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
}

.toast-bagla:hover { color: #0f172a; }

@keyframes toast-giris {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

.toast-gedir {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.pwa-install-banner {
    position: fixed;
    z-index: 10000;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    max-width: 520px;
    margin: 0 auto;
    padding: 14px;
    color: #1b1a19;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.2);
}

.pwa-install-banner[hidden] {
    display: none;
}

.pwa-install-content {
    flex: 1 1 auto;
    min-width: 0;
}

.pwa-install-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.pwa-install-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #475569;
}

.pwa-install-content .pwa-install-help {
    margin-top: 5px;
}

.pwa-install-action {
    flex: 0 0 auto;
    padding: 9px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    color: #ffffff;
    background: #ff003b;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.pwa-install-close {
    align-self: flex-start;
    flex: 0 0 auto;
    padding: 0 2px;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    background: none;
    border: 0;
    cursor: pointer;
}

.telimat-form-kart {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    padding: 28px 32px 30px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.telimat-form-bas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
}

.telimat-form-title {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.telimat-form-bas .btn {
    min-width: 92px;
    justify-content: center;
}

.telimat-form-kart form > .telimat-uc-sutun {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(190px, 0.8fr) minmax(260px, 1.15fr);
    align-items: start;
    gap: 20px;
    margin-bottom: 24px;
}

.telimat-xeta {
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 14px;
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 10px;
}

.telimat-xeta ul { margin: 0; padding-left: 18px; }

.telimat-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    color: #0f172a;
}

.telimat-input {
    width: 100%;
    max-width: 100%;
    height: 44px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #d6dee8;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.telimat-input:focus {
    outline: none;
    border-color: #FF003C;
    box-shadow: 0 0 0 3px rgba(255, 0, 60, 0.11);
}

.telimat-tarix {
    max-width: 260px;
}

/* İki sütunlu layoutda başlıq xanı çox geräßigen olmasın */
.telimat-iki-sutun .telimat-input:not(.telimat-tarix) {
    max-width: 700px;
}

.telimat-uc-sutun {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.telimat-sutun {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-width: 0;
}

.telimat-sutun-tarix {
    max-width: none;
    text-align: left;
}

.telimat-sutun .telimat-tarix,
.telimat-sutun .telimat-fayl {
    width: 100%;
    max-width: none;
}

.telimat-sutun .telimat-komek {
    min-height: 34px;
}

@media (max-width: 640px) {
    .telimat-iki-sutun {
        flex-direction: column;
        gap: 12px;
    }

    .telimat-sutun-tarix {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .telimat-form-kart form > .telimat-uc-sutun {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .telimat-form-kart form > .telimat-uc-sutun > .telimat-sutun:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .telimat-form-kart {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .telimat-form-bas {
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .telimat-form-title {
        font-size: 20px;
    }

    .telimat-form-kart form > .telimat-uc-sutun {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 20px;
    }

    .telimat-form-kart form > .telimat-uc-sutun > .telimat-sutun:first-child {
        grid-column: auto;
    }

    .telimat-sutun .telimat-komek {
        min-height: 0;
    }
}

.telimat-fayl {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 44px;
    padding: 5px 8px;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #d6dee8;
    border-radius: 10px;
    box-sizing: border-box;
}

.telimat-fayl::file-selector-button {
    margin-right: 9px;
    padding: 7px 10px;
    border: 1px solid #d6dee8;
    border-radius: 7px;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.telimat-fayl::file-selector-button:hover {
    background-color: #e2e8f0;
    border-color: #94a3b8;
}

.telimat-komek {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.telimat-emeller {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #eef2f7;
}

.telimat-emeller .btn {
    min-width: 128px;
    min-height: 42px;
    justify-content: center;
}

/* Word tipli mini redaktor */
.redaktor {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    border: 1px solid #d6dee8;
    border-radius: 12px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.035);
}

.telimat-form-kart > form > .telimat-label {
    margin-bottom: 9px;
}

.redaktor-aletler {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 10px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.redaktor-aletler button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.redaktor-aletler button:hover {
    color: #FF003C;
    background-color: #fff1f4;
    border-color: #FF003C;
}

.redaktor-aletler button:focus-visible,
.redaktor-sec:focus-visible,
.redaktor-reng:focus-within {
    outline: 3px solid rgba(255, 0, 60, 0.16);
    outline-offset: 1px;
}

.redaktor-ayir {
    width: 1px;
    height: 24px;
    margin: 0 3px;
    background-color: #e2e8f0;
}

.redaktor-sahe {
    min-height: 300px;
    padding: 18px 20px;
    font-family: "Gilroy", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #0f172a;
    outline: none;
}

.redaktor-sahe * {
    font-family: "Gilroy", sans-serif !important;
}

.redaktor-font-label {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 8px;
    font-family: "Gilroy", sans-serif;
    font-size: 13px;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.redaktor:focus-within {
    border-color: #FF003C;
    box-shadow: 0 0 0 3px rgba(255, 0, 60, 0.08);
}

.redaktor-sahe:empty:before {
    content: "Telimatin metnini bura yazin...";
    color: #94a3b8;
}

.redaktor-sahe img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
}

.redaktor-sahe img.redaktor-sekil-secilmis {
    outline: 2px solid #FF003C;
    outline-offset: 2px;
}

/* Yeni aletler: srift/olcu secimleri, rengler, sekil olcusu */
.redaktor-sec {
    height: 28px;
    max-width: 110px;
    padding: 0 6px;
    font-family: inherit;
    font-size: 13px;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.redaktor-sec-dar {
    max-width: 96px;
}

.redaktor-reng {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
}

.redaktor-reng input[type="color"] {
    width: 22px;
    height: 20px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.redaktor-sekil-olcu {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

.redaktor-sekil-olcu[hidden] {
    display: none;
}

.redaktor-sekil-duzulusu {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding-left: 4px;
    border-left: 1px solid #e2e8f0;
}

.redaktor-sekil-duzulusu button {
    min-width: 30px;
}

/* ================== Admin: Telimat kartları konteyneri (yan yana kiçik kartlar) == */

.telimat-admin-kartlar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    grid-auto-rows: auto;
    grid-auto-flow: row;
}

@media (max-width: 1100px) {
    .telimat-admin-kartlar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .telimat-admin-kartlar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .telimat-admin-kartlar {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ================== Admin: Telimat kartlari (emeliyyat ikonlari) == */

.telimat-admin-kart {
    --telimat-accent: #16a36a;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 206px;
    padding: 20px;
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--telimat-accent) 7%, transparent), transparent 38%),
        #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--telimat-accent);
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.045);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.telimat-admin-kartlar > .telimat-admin-kart {
    width: auto;
    min-width: 0;
    grid-column: auto / span 1;
    grid-row: auto / span 1;
    align-self: stretch;
}

.telimat-admin-kart-deaktiv {
    --telimat-accent: #e5484d;
}

.telimat-admin-kart-arxiv {
    --telimat-accent: #e89b12;
}

.telimat-admin-kart-silinmis {
    --telimat-accent: #64748b;
    background:
        radial-gradient(circle at 100% 0, rgba(100, 116, 139, 0.06), transparent 38%),
        #fbfcfe;
}

.telimat-admin-kart:hover {
    border-color: color-mix(in srgb, var(--telimat-accent) 35%, #e2e8f0);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.085);
    transform: translateY(-2px);
}

.telimat-admin-kart-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.telimat-admin-kart-basliq {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.telimat-admin-kart-ad {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    color: #0f172a;
    line-height: 1.4;
    letter-spacing: -0.015em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.telimat-admin-kart-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    white-space: nowrap;
}

.telimat-admin-kart-status::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.telimat-status-aktiv {
    color: #166534;
    background-color: #ecfdf3;
    border: 1px solid #c7f0d6;
}

.telimat-status-deaktiv {
    color: #991b1b;
    background-color: #fff1f1;
    border: 1px solid #ffd4d4;
}

.telimat-status-arxiv {
    color: #713f12;
    background-color: #fff8e6;
    border: 1px solid #f9e3a2;
}

.telimat-status-silinmis {
    color: #475569;
    background-color: #f1f5f9;
    border: 1px solid #dbe3ed;
}

.telimat-admin-kart-emeller {
    display: flex;
    flex-direction: row;
    gap: 7px;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.telimat-admin-duyme {
    --action-color: #475569;
    --action-bg: #f8fafc;
    --action-border: #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--action-border);
    border-radius: 12px;
    background-color: var(--action-bg);
    color: var(--action-color);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease,
                background-color 0.16s ease, color 0.16s ease;
    text-decoration: none;
}

.telimat-admin-duyme-duzelt {
    --action-color: #2563eb;
    --action-bg: #eff6ff;
    --action-border: #dbeafe;
}

.telimat-admin-duyme-arxiv {
    --action-color: #a16207;
    --action-bg: #fffbeb;
    --action-border: #fef0bd;
}

.telimat-admin-duyme-berpa {
    --action-color: #15803d;
    --action-bg: #f0fdf4;
    --action-border: #dcfce7;
}

.telimat-admin-duyme-sil {
    --action-color: #dc2626;
    --action-bg: #fff1f2;
    --action-border: #ffe0e4;
}

.telimat-admin-duyme-sil-qatig {
    --action-color: #b42332;
    --action-bg: #fff1f2;
    --action-border: #fecdd3;
}

.telimat-admin-duyme-etiketli {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 40px;
    gap: 8px;
    padding: 0 10px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.telimat-admin-duyme-etiketli svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
}

.telimat-admin-duyme-status {
    --action-color: #475569;
    --action-bg: #f1f5f9;
    --action-border: #e2e8f0;
}

.telimat-admin-duyme-status-aktiv {
    --action-color: #6d28d9;
    --action-bg: #f5f3ff;
    --action-border: #e9d5ff;
}

.telimat-admin-duyme-status-deaktiv {
    --action-color: #15803d;
    --action-bg: #f0fdf4;
    --action-border: #dcfce7;
}

.telimat-admin-duyme:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px color-mix(in srgb, var(--action-color) 16%, transparent);
    border-color: color-mix(in srgb, var(--action-color) 32%, #ffffff);
    background-color: #ffffff;
    color: var(--action-color);
    text-decoration: none;
}

.telimat-admin-duyme:active {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.telimat-admin-duyme:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--action-color) 34%, transparent);
    outline-offset: 2px;
}

.telimat-admin-duyme svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.telimat-admin-kart-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.telimat-admin-kart-yuxari {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.telimat-admin-kart-ikon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--telimat-accent);
    background: color-mix(in srgb, var(--telimat-accent) 10%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--telimat-accent) 15%, #ffffff);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.2s ease;
}

.telimat-admin-kart:hover .telimat-admin-kart-ikon {
    transform: translateY(-2px);
}

.telimat-admin-kart-ad a {
    color: inherit;
    text-decoration: none;
}

.telimat-admin-kart-ad a:hover {
    color: var(--telimat-accent);
}

.telimat-admin-kart-footer {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    min-width: 0;
    width: 100%;
}

.telimat-admin-kart-footer .telimat-admin-duyme {
    background-color: var(--action-bg);
}

.telimat-admin-kart-silinmis .telimat-admin-kart-emeller {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.telimat-admin-kart-silinmis .telimat-admin-kart-emeller .telimat-admin-duyme {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    flex: none;
    white-space: normal;
}

.telimat-admin-kart-tarix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.telimat-admin-kart-tarix svg {
    flex: 0 0 auto;
    color: #94a3b8;
}

.telimat-admin-kart a:focus-visible,
.telimat-admin-kart .telimat-admin-duyme:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--telimat-accent, #FF003C) 38%, transparent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .telimat-kart,
    .telimat-kart-ikon,
    .telimat-kartkec-ox,
    .telimat-admin-kart,
    .telimat-admin-duyme {
        transition: none;
    }
}

.telimat-bos {
    text-align: center;
    padding: 30px;
    color: #64748b;
    font-size: 14px;
}

.ip-admin-page,
.ip-user-page {
    max-width: 1440px;
    margin: 0 auto;
}

.ip-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.exam-page-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.exam-archive-section {
    margin-top: 28px;
}

.exam-archive-heading {
    margin-bottom: 14px;
}

.exam-archive-heading h2 {
    margin: 3px 0 6px;
    color: #172033;
    font-size: 22px;
}

.cash-handover-page-heading {
    display: block;
}

.cash-handover-day-label {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 13px;
}

.cash-handover-filters {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    margin: 16px auto 0;
    gap: 10px;
}

.cash-handover-filters > label {
    display: grid;
    gap: 5px;
    min-width: 130px;
}

.cash-handover-filters .cash-handover-filter-search {
    flex: 1 1 220px;
    max-width: 320px;
}

.cash-handover-filters .cash-handover-filter-status {
    flex: 0 1 180px;
}

.cash-handover-filters .cash-handover-filter-store {
    position: relative;
    display: grid;
    gap: 5px;
    min-width: 130px;
    flex: 0 1 190px;
}

.cash-handover-filter-store > span {
    color: #475569;
    font-size: 12px;
    font-weight: 650;
}

.cash-handover-store-trigger {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    overflow: hidden;
    padding: 8px 32px 8px 10px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.cash-handover-store-trigger::after {
    position: absolute;
    right: 12px;
    top: 33px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #64748b;
    border-bottom: 1.5px solid #64748b;
    content: "";
    transform: rotate(45deg);
}

.cash-handover-store-trigger:focus,
.cash-handover-store-search:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.cash-handover-store-dropdown {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.cash-handover-store-search {
    margin-bottom: 7px;
}

.cash-handover-store-options {
    display: grid;
    max-height: 220px;
    overflow-y: auto;
}

.cash-handover-store-options > button {
    padding: 9px 10px;
    color: #172033;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.cash-handover-store-options > button:hover,
.cash-handover-store-options > button[aria-selected="true"] {
    background: #fff1f2;
    color: #be123c;
}

.cash-handover-store-empty {
    display: block;
    padding: 8px 10px;
    color: #64748b;
    font-size: 12px;
}

.cash-handover-store-empty[hidden] {
    display: none;
}

.cash-handover-filters > label > span {
    color: #475569;
    font-size: 12px;
    font-weight: 650;
}

.cash-handover-filter-store > .cash-handover-store-dropdown > .cash-handover-store-search {
    height: 38px;
    margin-bottom: 7px;
}

.cash-handover-filter-store > small {
    color: #b42318;
    font-size: 12px;
}

.cash-handover-filters > label > span {
    color: #475569;
    font-size: 12px;
    font-weight: 650;
}

.cash-handover-filters input,
.cash-handover-filters select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    height: 40px;
    padding: 8px 10px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
}

.cash-handover-filters input:focus,
.cash-handover-filters select:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.cash-handover-filters > .cash-handover-filter-clear {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 104px;
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    margin-bottom: 0;
    white-space: nowrap;
}

.cash-handover-filter-clear svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.ip-page-heading h1 {
    margin: 3px 0 6px;
    color: #172033;
    font-size: clamp(24px, 3vw, 30px);
    letter-spacing: -0.035em;
}

.ip-page-heading p,
.ip-panel-heading p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.ip-admin-search {
    position: relative;
    flex: 1 1 280px;
    max-width: 420px;
}

.ip-admin-search > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ip-admin-search input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 9px 12px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.ip-admin-search input:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.ip-eyebrow {
    color: #c8102e;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ip-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ip-summary span {
    padding: 9px 12px;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
}

.ip-summary strong {
    color: #172033;
}

.ip-alert {
    margin: 0 0 18px;
    padding: 12px 15px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 14px;
}

.ip-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.ip-alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.ip-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
    margin-bottom: 18px;
}

.ip-panel-card {
    min-width: 0;
    padding: 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}

.system-health-summary {
    margin-bottom: 18px;
}

.system-health-tabs {
    display: flex;
    gap: 4px;
    margin: 0 0 20px;
    padding: 5px;
    overflow-x: auto;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.system-health-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    color: #475569;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.system-health-tab:hover {
    color: #172033;
    background: rgba(255, 255, 255, 0.7);
}

.system-health-tab.is-active {
    color: #172033;
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.system-health-tab:focus-visible {
    outline: 3px solid rgba(225, 29, 72, 0.24);
    outline-offset: 1px;
}

.system-health-group {
    margin: 0;
}

.system-health-group[hidden] {
    display: none;
}

.system-health-group-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 16px;
}

.system-health-group-heading > div {
    flex: 1 1 260px;
}

.system-health-group-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 19px;
}

.system-health-group-heading p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.system-health-group-status-details {
    flex: 1 0 100%;
}

.system-health-email-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.system-health-group-checks {
    margin-top: 16px;
}

.system-health-mail-test {
    margin-bottom: 0;
}

.system-health-mail-test > h3 {
    margin: 0;
    color: #172033;
    font-size: 18px;
}

.system-health-mail-test > p {
    margin: 8px 0 16px;
    color: #64748b;
    font-size: 13px;
}

.system-health-mail-test .ip-alert {
    margin-bottom: 14px;
}

.system-health-mail-test .ip-alert-success {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.system-health-mail-test-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.system-health-mail-test-form > label {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.system-health-mail-test-form > label > span {
    color: #475569;
    font-size: 12px;
    font-weight: 650;
}

.system-health-mail-test-form input,
.system-health-mail-test-form select {
    width: 100%;
    min-width: 0;
    height: 42px;
    box-sizing: border-box;
    padding: 8px 10px;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
}

.system-health-mail-test-form input:focus,
.system-health-mail-test-form select:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.system-health-mail-test-form > button {
    min-height: 42px;
    white-space: nowrap;
}

.system-health-mail-loading[hidden] {
    display: none;
}

.system-health-mail-loading {
    position: fixed;
    z-index: 900;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    color: #172033;
    background: rgba(15, 23, 42, 0.48);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.system-health-mail-loading > strong {
    color: #fff;
    font-size: 17px;
}

.system-health-mail-loading > span:last-child {
    color: #e2e8f0;
    font-size: 13px;
    text-align: center;
}

.system-health-delivery > h3 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 18px;
}

.system-health-delivery > p {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.system-health-delivery-empty {
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
}

.system-health-delivery-table-wrap {
    overflow-x: auto;
}

.system-health-delivery-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.system-health-delivery-table th,
.system-health-delivery-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.system-health-delivery-table th {
    color: #475569;
    font-weight: 700;
    white-space: nowrap;
}

.system-health-delivery-table td {
    color: #334155;
}

.system-health-delivery-table td small {
    display: block;
    margin-top: 5px;
    color: #b91c1c;
}

.system-health-delivery-status {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.system-health-delivery-status-smtp_accepted {
    color: #166534;
    background: #dcfce7;
}

.system-health-delivery-status-failed {
    color: #991b1b;
    background: #fee2e2;
}

.system-health-delivery-status-sending {
    color: #92400e;
    background: #fef3c7;
}

.system-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.system-health-card {
    padding: 18px;
}

.system-health-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.system-health-card-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 16px;
}

.system-health-card-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 16px;
}

.system-health-card > p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.system-health-status {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.system-health-status-ok {
    color: #166534;
    background: #dcfce7;
}

.system-health-status-warning {
    color: #92400e;
    background: #fef3c7;
}

.system-health-status-error {
    color: #991b1b;
    background: #fee2e2;
}

.system-health-card-warning {
    border-color: #fcd34d;
}

.system-health-card-error {
    border-color: #fca5a5;
}

.system-health-quota-progress {
    display: block;
    width: 100%;
    height: 9px;
    margin-top: -8px;
    overflow: hidden;
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
}

.system-health-quota-progress::-webkit-progress-bar {
    border-radius: 999px;
    background: #e2e8f0;
}

.system-health-quota-progress::-webkit-progress-value {
    border-radius: 999px;
    background: #16a34a;
}

.system-health-quota-progress-warning::-webkit-progress-value {
    background: #d97706;
}

.system-health-quota-progress-error::-webkit-progress-value {
    background: #dc2626;
}

.system-health-quota-progress::-moz-progress-bar {
    border-radius: 999px;
    background: #16a34a;
}

.system-health-quota-progress-warning::-moz-progress-bar {
    background: #d97706;
}

.system-health-quota-progress-error::-moz-progress-bar {
    background: #dc2626;
}

@media (max-width: 640px) {
    .system-health-tabs {
        margin-right: -2px;
        margin-left: -2px;
    }

    .system-health-tab {
        padding-right: 11px;
        padding-left: 11px;
    }

    .system-health-mail-test-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .system-health-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.behavior-records-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.behavior-records-create-button {
    flex: 0 0 auto;
    gap: 8px;
    white-space: nowrap;
}

.behavior-records-create-button svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}

.behavior-record-modal {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.behavior-record-detail-modal {
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.behavior-record-detail-list {
    display: grid;
    gap: 15px;
    margin: 0;
}

.behavior-record-detail-list > div[hidden] {
    display: none;
}

.behavior-record-detail-list dt {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}

.behavior-record-detail-list dd {
    margin: 0;
    color: #172033;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.behavior-record-detail-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
}

.behavior-record-delete-button {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

.behavior-record-delete-button:hover:not(:disabled) {
    background: #b91c1c;
    border-color: #b91c1c;
}

.behavior-record-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.behavior-record-modal-heading .telimat-popup-basliq {
    margin: 4px 0 0;
}

.behavior-record-form,
.behavior-record-positive-fields {
    display: grid;
    gap: 16px;
}

.behavior-record-positive-fields {
    padding-top: 2px;
}

.behavior-record-positive-fields[hidden] {
    display: none;
}

.behavior-record-negative-fields {
    display: grid;
    gap: 16px;
    padding-top: 2px;
}

.behavior-record-negative-fields[hidden] {
    display: none;
}

.behavior-record-field {
    display: grid;
    gap: 7px;
}

.behavior-record-field[hidden] {
    display: none;
}

.behavior-record-field label {
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.behavior-record-field input,
.behavior-record-field select,
.behavior-record-field textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 9px 12px;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
}

.behavior-record-field textarea {
    min-height: 88px;
    resize: vertical;
}

.behavior-record-field input[type="date"] {
    height: 42px;
    appearance: none;
    -webkit-appearance: none;
    color-scheme: light;
    cursor: pointer;
}

.behavior-record-field input:focus,
.behavior-record-field select:focus,
.behavior-record-field textarea:focus {
    border-color: #64748b;
    outline: 3px solid rgba(100, 116, 139, 0.16);
}

.behavior-record-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.behavior-record-confirm-modal {
    width: min(440px, calc(100vw - 32px));
    text-align: left;
}

.behavior-record-confirm-modal .telimat-popup-basliq {
    margin-bottom: 8px;
}

.behavior-record-confirm-modal .telimat-popup-metn {
    margin: 0;
    color: #64748b;
    line-height: 1.55;
}

.behavior-record-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.behavior-record-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.behavior-record-filters label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.behavior-record-filters input,
.behavior-record-filters select {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    height: 40px;
    padding: 8px 10px;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}

.behavior-record-filters input[type="date"] {
    color-scheme: light;
    cursor: pointer;
}

.behavior-record-filters input:focus,
.behavior-record-filters select:focus {
    border-color: #64748b;
    outline: 3px solid rgba(100, 116, 139, 0.16);
}

.behavior-record-filters > button {
    min-height: 40px;
    white-space: nowrap;
}

.behavior-record-item[hidden] {
    display: none !important;
}

.behavior-record-filter-empty {
    margin-bottom: 16px;
}

.behavior-score-table-wrap {
    overflow-x: auto;
}

.behavior-score-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.behavior-score-table th,
.behavior-score-table td {
    padding: 13px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.behavior-score-table th {
    color: #64748b;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
}

.behavior-score-table td {
    color: #172033;
    font-size: 14px;
}

.behavior-score-table th:first-child,
.behavior-score-rank {
    width: 56px;
    color: #64748b;
    text-align: center;
}

.behavior-score-table td:last-child {
    width: 38%;
    min-width: 100px;
}

.behavior-score-bar-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 7px;
    white-space: nowrap;
}

.behavior-score-bar-value strong {
    font-size: 15px;
}

.behavior-score-bar-value span {
    color: #64748b;
    font-size: 12px;
}

.behavior-score-bar {
    position: relative;
    height: 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #eef2f7 0%, #e5eaf1 100%);
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.behavior-score-bar > span {
    position: relative;
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    box-shadow: 0 0 8px color-mix(in srgb, currentColor 25%, transparent);
    transition: width 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.behavior-score-bar > span::after {
    position: absolute;
    inset: 1px 2px auto;
    height: 35%;
    background: rgba(255, 255, 255, 0.36);
    border-radius: inherit;
    content: "";
}

.behavior-score-bar-high {
    color: #15803d;
}

.behavior-score-bar-high > span {
    background: linear-gradient(90deg, #22c55e 0%, #15803d 100%);
}

.behavior-score-bar-medium {
    color: #b45309;
}

.behavior-score-bar-medium > span {
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%);
}

.behavior-score-bar-low {
    color: #b91c1c;
}

.behavior-score-bar-low > span {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.behavior-score-table tbody tr:last-child td {
    border-bottom: 0;
}

.behavior-record-item {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #94a3b8;
    border-radius: 11px;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.behavior-record-item:hover,
.behavior-record-item:focus-visible {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.behavior-record-item:focus-visible {
    outline: 3px solid rgba(100, 116, 139, 0.24);
    outline-offset: 2px;
}

.behavior-record-item.is-positive {
    border-left-color: #16a34a;
}

.behavior-record-item.is-negative {
    border-left-color: #dc2626;
}

.behavior-record-item-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #172033;
}

.behavior-record-item p {
    margin: 9px 0 0;
    color: #475569;
    line-height: 1.5;
}

.behavior-record-item-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #edf0f4;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.behavior-record-item-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.behavior-record-item-meta svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 960px) {
    .behavior-record-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .behavior-record-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .behavior-record-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .behavior-record-filters {
        grid-template-columns: minmax(0, 1fr);
    }
}

.behavior-records-tabs.is-single {
    grid-template-columns: max-content;
}

.behavior-records-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 16px 20px;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.behavior-records-tabs.is-single .behavior-records-tab {
    width: max-content;
    max-width: 100%;
    min-width: 220px;
    justify-self: start;
    justify-content: flex-start;
}

.behavior-records-tab svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.behavior-records-tab:hover,
.behavior-records-tab.is-active {
    color: #1d4ed8;
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.behavior-records-tab:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.3);
    outline-offset: 2px;
}

.behavior-records-tab-panel[hidden] {
    display: none;
}

.ip-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ip-modal-heading .telimat-popup-basliq {
    margin: 5px 0 0;
}

.ip-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 19px;
}

.ip-panel-heading h2 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.ip-form,
.ip-category-create {
    display: grid;
    gap: 14px;
}

.leave-planning-fields {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.leave-planning-extra-days {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #d7dee8;
    border-radius: 9px;
}

.leave-planning-extra-days legend {
    padding: 0 6px;
    color: #334155;
    font-size: 11px;
    font-weight: 650;
}

.leave-planning-extra-days p {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.35;
}

.leave-planning-extra-months {
    display: grid;
    gap: 5px;
}

.leave-planning-month-row {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(72px, 100px) auto;
    align-items: end;
    gap: 6px;
}

.ip-button.leave-planning-remove-month {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
}

.leave-planning-remove-month svg {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.ip-button.ip-button-muted.leave-planning-remove-month,
.ip-button.ip-button-muted.leave-planning-remove-month:disabled {
    color: #fff;
    background: #dc2626;
    border-color: #dc2626;
}

.leave-planning-remove-month.ip-button-muted:hover:not(:disabled) {
    color: #fff;
    background: #b91c1c;
    border-color: #b91c1c;
}

.leave-planning-month-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    color: #334155;
    font-size: 12px;
}

.leave-planning-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.leave-planning-export-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.leave-planning-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.leave-planning-clear-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.leave-planning-clear-button svg {
    width: 17px;
    height: 17px;
}

.leave-planning-clear-modal {
    width: min(460px, calc(100vw - 32px));
}

.leave-planning-clear-modal .telimat-popup-metn {
    margin-bottom: 20px;
}

.leave-planning-clear-modal .ip-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.leave-planning-export-button svg {
    width: 17px;
    height: 17px;
}

.leave-planning-edit-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 6px;
}

.leave-planning-edit-button svg {
    width: 18px;
    height: 18px;
}

.leave-planning-fields label {
    min-width: 0;
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.leave-planning-substitute-field {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.leave-planning-fields .leave-planning-note {
    grid-column: auto;
}

.leave-planning-substitute-picker {
    position: relative;
    min-width: 0;
}

.leave-planning-substitute-trigger {
    display: flex;
    width: 100%;
    height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    overflow: hidden;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
}

.leave-planning-substitute-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leave-planning-substitute-trigger svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.leave-planning-substitute-trigger:focus,
.leave-planning-substitute-search:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.leave-planning-substitute-dropdown {
    position: absolute;
    z-index: 20;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.leave-planning-substitute-dropdown[hidden],
.leave-planning-substitute-option[hidden],
.leave-planning-substitute-empty[hidden],
.leave-planning-substitute-error[hidden] {
    display: none !important;
}

.leave-planning-substitute-search {
    width: 100%;
    height: 38px;
    margin-bottom: 6px;
    padding: 8px 10px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.leave-planning-substitute-options {
    display: grid;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.leave-planning-substitute-option {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 9px;
    color: #172033;
    background: #fff;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.leave-planning-substitute-option:hover,
.leave-planning-substitute-option[aria-selected="true"] {
    background: #f1f5f9;
}

.leave-planning-substitute-option small {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 400;
}

.leave-planning-substitute-option > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leave-planning-substitute-empty {
    margin: 0;
    padding: 10px 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
}

.leave-planning-substitute-error {
    display: block;
    margin-top: 5px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 500;
}

.ip-form label,
.ip-category-create label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.ip-form input,
.ip-form select,
.leave-planning-fields input,
.leave-planning-fields select,
.leave-planning-fields textarea,
.ip-category-create input,
.ip-category-create select {
    width: 100%;
    min-width: 0;
    padding: 9px 11px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.leave-planning-fields input,
.leave-planning-fields select {
    font-size: 14px;
}

.leave-planning-fields [data-leave-planning-end-date] {
    background: #f8fafc;
}

.ip-form input,
.ip-form select,
.leave-planning-fields input,
.leave-planning-fields select,
.ip-category-create input,
.ip-category-create select {
    height: 42px;
    padding-right: 11px;
    padding-left: 11px;
}

.leave-planning-fields textarea {
    min-height: 88px;
    resize: vertical;
}

.ip-form input:focus,
.ip-form select:focus,
.leave-planning-fields input:focus,
.leave-planning-fields select:focus,
.leave-planning-fields textarea:focus,
.ip-category-create input:focus,
.ip-category-create select:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

@media (max-width: 640px) {
    .leave-planning-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .leave-planning-fields .leave-planning-note {
        grid-column: auto;
    }
}

.store-admin-heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 9px;
}

.store-admin-heading-actions.has-store-search {
    grid-template-columns: minmax(180px, 1fr) auto auto;
}

.store-admin-heading-actions.has-store-search .store-admin-search {
    grid-column: 1;
}

.store-admin-heading-actions.has-store-search > .ip-button[data-store-open-modal="create"] {
    grid-column: 2;
}

.store-admin-heading-actions.has-store-search > .ip-button[data-store-open-modal="assign"] {
    grid-column: 3;
}

.store-admin-search {
    display: block;
    min-width: 0;
}

.store-admin-search > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.store-admin-search input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    padding: 8px 11px;
    color: #334155;
    background: #fff;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
}


    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 7px 8px;
    text-align: center;
    white-space: normal;
}

.store-admin-search input:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.admin-groups-panel {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.admin-groups-panel .ip-table {
    table-layout: fixed;
    text-align: left;
}

.admin-groups-panel .ip-table th:first-child,
.admin-groups-panel .ip-table td:first-child {
    width: 48%;
}

.admin-groups-panel .ip-table th:nth-child(2),
.admin-groups-panel .ip-table td:nth-child(2) {
    width: 20%;
    text-align: center;
}

.admin-groups-panel .ip-table th:last-child,
.admin-groups-panel .ip-table td:last-child {
    width: 32%;
    text-align: right;
}

.admin-group-name-button {
    padding: 0;
    color: #263244;
    background: transparent;
    border: 0;
    font: inherit;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.admin-group-name-button:hover {
    color: #be123c;
    text-decoration: underline;
}

.admin-group-name-button:focus-visible {
    outline: 2px solid #e11d48;
    outline-offset: 3px;
    border-radius: 3px;
}

.admin-group-remove-button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.admin-group-remove-button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 12px;
}

.manual-user-create-card {
    max-width: 820px;
}

.manual-user-create-warning {
    margin: 0 0 18px;
    padding: 12px 14px;
    color: #854d0e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}

.manual-user-create-card .ip-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-user-create-card .ip-form-actions {
    grid-column: 1 / -1;
}

.admin-group-members-overlay .store-user-list {
    max-height: min(50vh, 360px);
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.admin-group-members-overlay .store-user-list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f4;
}

.admin-group-members-overlay .store-user-list > li:last-child {
    border-bottom: 0;
}

.admin-group-members-overlay .store-user-list > li > div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.admin-group-members-overlay .store-user-list strong,
.admin-group-members-overlay .store-user-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-group-members-overlay .store-user-list strong {
    color: #263244;
    font-size: 13px;
}

.admin-group-members-overlay .store-user-list span {
    color: #64748b;
    font-size: 12px;
}

.store-admin-search-empty {
    margin: 16px 0;
}

.store-admin-modal {
    width: min(480px, calc(100vw - 32px));
}

.store-admin-modal .ip-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ip-modal-heading .telimat-popup-basliq {
    margin: 5px 0 0;
}
.ip-panel-heading {
    margin-bottom: 16px;
}

.store-admin-modal .ip-panel-heading h2 {
    margin: 0 0 6px;
}

.store-admin-modal .ip-panel-heading p {
    max-width: 360px;
}

.store-admin-modal .ip-form {
    margin-top: 0;
}

.store-user-picker {
    position: relative;
}

.store-user-picker-trigger {
    position: relative;
    width: 100%;
    height: 42px;
    padding: 9px 34px 9px 11px;
    overflow: hidden;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.store-user-picker-trigger::after {
    position: absolute;
    top: 15px;
    right: 13px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #64748b;
    border-bottom: 1.5px solid #64748b;
    content: "";
    transform: rotate(45deg);
}

.store-user-picker-trigger:focus,
.store-user-picker-search:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.12);
}

.store-user-picker-dropdown {
    position: absolute;
    z-index: 220;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.store-user-picker-dropdown[hidden] {
    display: none;
}

.store-user-picker-search {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    margin-bottom: 7px;
    padding: 8px 10px;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
}

.store-user-picker-options {
    display: grid;
    max-height: 220px;
    overflow-y: auto;
}

.store-user-picker-options > button {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    color: #172033;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.store-user-picker-options > button:hover,
.store-user-picker-options > button[aria-selected="true"] {
    color: #be123c;
    background: #fff1f2;
}

.store-user-picker-options > button small {
    color: #64748b;
    font-size: 11px;
}

.store-user-picker-options > button[hidden] {
    display: none;
}

.store-user-picker-empty {
    display: block;
    padding: 8px 10px;
    color: #64748b;
    font-size: 12px;
}

.store-user-picker-empty[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .store-admin-heading-actions {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-admin-heading-actions.has-store-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-admin-heading-actions.has-store-search .store-admin-search {
        grid-column: 1 / -1;
    }

    .store-admin-heading-actions.has-store-search > .ip-button[data-store-open-modal="create"] {
        grid-column: 1;
    }

    .store-admin-heading-actions.has-store-search > .ip-button[data-store-open-modal="assign"] {
        grid-column: 2;
    }

    .store-admin-page > .ip-records-panel {
        padding: 14px 12px 8px;
    }
}

.store-user-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.store-name-label {
    display: inline-block;
    max-width: 100%;
    color: #172033;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.store-name-cell {
    cursor: pointer;
}

.store-name-cell:hover .store-name-label,
.store-name-cell:focus-visible .store-name-label {
    color: #c8102e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.store-row-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.store-row-actions .ip-button {
    min-height: 34px;
    padding: 6px 10px;
}

.store-delete-action {
    color: #fff;
    background: #b91c1c;
    border-color: #b91c1c;
    white-space: nowrap;
}

.store-delete-action:hover {
    color: #fff;
    background: #991b1b;
    border-color: #991b1b;
}

.store-admin-page > .ip-records-panel .ip-table th:nth-child(1),
.store-admin-page > .ip-records-panel .ip-table td:nth-child(1) {
    width: 47%;
    text-align: left;
}

.store-admin-page > .ip-records-panel .ip-table th:nth-child(2),
.store-admin-page > .ip-records-panel .ip-table td:nth-child(2) {
    width: 6%;
    text-align: center;
}

.store-admin-page > .ip-records-panel .ip-table th:nth-child(3),
.store-admin-page > .ip-records-panel .ip-table td:nth-child(3) {
    width: 47%;
    text-align: right;
}

.store-admin-page > .ip-records-panel .ip-table th:first-child {
    padding-left: 28px;
    text-indent: 32px;
}

.store-admin-page > .ip-records-panel .ip-table td:first-child {
    padding-left: 28px;
}

.store-admin-page > .ip-records-panel .ip-table th:nth-child(2),
.store-admin-page > .ip-records-panel .ip-table td:nth-child(2) {
    padding-right: 2px;
    padding-left: 2px;
}

.store-admin-page > .ip-records-panel .ip-table th:nth-child(2) {
    text-indent: -12px;
}

.store-admin-page > .ip-records-panel .ip-table td:nth-child(2) {
    border-bottom-color: transparent;
}

.store-admin-page > .ip-records-panel .ip-table th:last-child,
.store-admin-page > .ip-records-panel .ip-table td:last-child {
    padding-right: 28px;
}

.store-admin-page > .ip-records-panel .ip-table tbody tr {
    transition: background-color 0.15s ease;
}

.store-admin-page > .ip-records-panel .ip-table tbody tr:hover {
    background-color: #fff8f9;
}

.store-user-count {
    display: inline-flex;
    min-width: 34px;
    height: 30px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    color: #9f1239;
    background: #fff1f2;
    border: 1px solid #ffe4e6;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.store-users-modal .store-user-list {
    max-height: min(50vh, 360px);
    overflow-y: auto;
}

.store-user-chip {
    display: inline-grid;
    gap: 2px;
    padding: 7px 9px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
}

.store-user-chip small {
    color: #64748b;
    font-size: 11px;
}

.store-admin-page > .ip-records-panel {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 8px auto 0;
    padding: 18px 22px 10px;
}

.store-admin-page > .ip-records-panel .ip-table {
    table-layout: fixed;
    text-align: left;
}


.cash-handover-card {
    width: 100%;
    max-width: 1100px;
    margin-inline: auto;
    box-sizing: border-box;
}

.ip-page-heading.cash-handover-new-heading {
    margin-bottom: 12px;
}

.cash-handover-new-card {
    max-width: 900px;
    padding: 20px;
}

.cash-handover-new-card .cash-handover-form {
    gap: 14px;
}

.cash-handover-new-card .cash-handover-field {
    gap: 6px;
}

.cash-handover-new-card .cash-handover-field input,
.cash-handover-new-card .cash-handover-field select,
.cash-handover-new-card .cash-handover-field textarea {
    min-height: 40px;
    padding: 8px 10px;
}

.cash-handover-new-card .cash-handover-field textarea {
    min-height: 76px;
}

.cash-handover-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cash-handover-form-fields {
    display: contents;
}

.cash-handover-field {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.cash-handover-field > label {
    display: block;
}

.cash-handover-field > label span {
    color: #c8102e;
}

.cash-handover-field input,
.cash-handover-field select,
.cash-handover-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 11px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
}

.cash-handover-field textarea {
    min-height: 86px;
    resize: vertical;
}

.cash-handover-field input[type="file"] {
    padding: 7px;
}

.cash-handover-file-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cash-handover-file-actions[hidden] {
    display: none;
}

.cash-handover-file-actions span {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
}

.cash-handover-field input:focus,
.cash-handover-field select:focus,
.cash-handover-field textarea:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.cash-handover-field small {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
}

.cash-handover-field-wide {
    grid-column: 1 / -1;
}

.cash-handover-other-office {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cash-handover-other-office input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #d7193f;
}

.cash-handover-office-note {
    grid-column: 1 / -1;
    margin-top: -12px;
    color: #64748b;
    font-size: 12px;
}

#cash-handover-other-office-fields[hidden] {
    display: none;
}

.cash-handover-submit-note {
    align-self: center;
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.cash-handover-submit {
    display: inline-flex;
    justify-self: start;
    align-items: center;
    gap: 9px;
    min-width: 130px;
}

.cash-handover-submit:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none;
}

.cash-handover-submit-spinner {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cash-handover-submit-spin 0.7s linear infinite;
}

.cash-handover-loading-modal {
    z-index: 700;
    background: rgba(15, 23, 42, 0.52);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: cash-handover-loading-fade-in 180ms ease-out both;
}

.cash-handover-loading-spinner {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border: 6px dotted #d7193f;
    border-top-color: #fb7185;
    border-left-color: rgba(215, 25, 63, 0.32);
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(215, 25, 63, 0.4));
    animation: cash-handover-submit-spin 1s linear infinite;
}

.work-shift-loading-modal {
    flex-direction: column;
    gap: 14px;
}

.work-shift-loading-label {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

@keyframes cash-handover-loading-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cash-handover-submit-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cash-handover-loading-modal {
        animation: none;
    }

    .cash-handover-loading-spinner {
        animation-duration: 2.5s;
    }
}

.cash-handover-file-modal {
    z-index: 600;
}

.cash-handover-list {
    display: grid;
    gap: 12px;
}

.cash-handover-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 20px;
    padding: 16px 18px;
    font: inherit;
    color: #172033;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cash-handover-list-item[hidden] {
    display: none;
}

.cash-handover-list-item > .cash-handover-status {
    justify-self: end;
}

.cash-handover-list-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    transform: translateY(-1px);
}

.cash-handover-list-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.cash-handover-list-main strong {
    overflow-wrap: anywhere;
}

.cash-handover-list-main > .cash-handover-list-participant {
    color: #475569;
    font-size: 12px;
}

.cash-handover-list-participant > span {
    color: #64748b;
    font-weight: 600;
}

.cash-handover-list-main > span,
.cash-handover-status-row time {
    color: #64748b;
    font-size: 12px;
}

.cash-handover-list-main > .cash-handover-list-datetime {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cash-handover-list-date,
.cash-handover-list-time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-variant-numeric: tabular-nums;
}

.cash-handover-list-date svg,
.cash-handover-list-time svg {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: #94a3b8;
}

.cash-handover-list-datetime-separator {
    color: #cbd5e1;
}

.cash-handover-list-amount {
    color: #475569;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.cash-handover-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 6px 10px;
    color: #475569;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.cash-handover-status-pending {
    color: #92400e;
    background: #fef3c7;
}

.cash-handover-status-accepted_correct {
    color: #166534;
    background: #dcfce7;
}

.cash-handover-status-accepted_excess,
.cash-handover-status-accepted_shortage {
    color: #1d4ed8;
    background: #dbeafe;
}

.cash-handover-status-rejected {
    color: #b91c1c;
    background: #fee2e2;
}

.cash-handover-detail-modal {
    z-index: 300;
    overflow-y: auto;
}

.ip-modal.cash-handover-detail-modal-dialog {
    display: grid;
    width: min(900px, 100%);
    box-sizing: border-box;
    max-height: calc(100vh - 40px);
    gap: 20px;
    overflow-y: auto;
    text-align: left;
}

.cash-handover-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cash-handover-modal-header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
}

.cash-handover-detail {
    display: grid;
    gap: 20px;
}

.cash-handover-back {
    width: fit-content;
    color: #475569;
    font-size: 13px;
    font-weight: 650;
}

.cash-handover-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cash-handover-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
    align-items: stretch;
    gap: 20px;
}

.cash-handover-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin: 0;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.cash-handover-file-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.cash-handover-modal-file-links:not([hidden]) {
    display: flex;
    justify-content: center;
    width: 100%;
}

.cash-handover-file-panel h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.cash-handover-file-panel h2 svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: #475569;
}

.cash-handover-file-panel > p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.cash-handover-file-panel .ip-text-action {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.cash-handover-summary > div {
    min-width: 0;
}

.cash-handover-summary dt {
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.cash-handover-summary .cash-handover-summary-label {
    display: flex;
    align-items: center;
    gap: 7px;
}

.cash-handover-summary-label svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #64748b;
}

.cash-handover-summary dd {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

#cash-handover-modal-note {
    white-space: pre-wrap;
}

.cash-handover-decision-form {
    display: grid;
    gap: 16px;
}

.cash-handover-decision-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cash-handover-confirmation-modal {
    position: fixed;
    z-index: 700;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
}

.cash-handover-confirmation-modal[hidden] {
    display: none;
}

.cash-handover-confirmation-dialog {
    width: min(440px, 100%);
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.cash-handover-confirmation-dialog h2 {
    margin: 0;
    color: #172033;
    font-size: 18px;
}

.cash-handover-confirmation-dialog p {
    margin: 12px 0 22px;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.cash-handover-confirmation-dialog .cash-handover-decision-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 10px;
}

.cash-handover-confirmation-dialog .cash-handover-decision-actions .ip-button {
    min-width: 138px;
    white-space: nowrap;
}

.cash-handover-difference-hint {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 13px;
}

.cash-handover-difference-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cash-handover-decision-fields[hidden],
.cash-handover-field[hidden] {
    display: none;
}

.cash-handover-decision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cash-handover-decision-actions[hidden] {
    display: none;
}

.cash-handover-response {
    padding: 16px 18px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.cash-handover-response p {
    margin: 0;
}

.cash-handover-response p + p {
    margin-top: 8px;
}

@media (max-width: 640px) {
    .cash-handover-confirmation-dialog .cash-handover-decision-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .cash-handover-confirmation-dialog .cash-handover-decision-actions .ip-button {
        width: 100%;
    }
    .cash-handover-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .cash-handover-field-wide {
        grid-column: auto;
    }

    .cash-handover-submit-note {
        grid-row: auto;
    }

    .cash-handover-list-item {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .cash-handover-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .cash-handover-summary,
    .cash-handover-decision-fields,
    .cash-handover-difference-inputs {
        grid-template-columns: minmax(0, 1fr);
    }

    .cash-handover-status-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.ip-form-actions,
.ip-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ip-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ip-button:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.ip-button-primary {
    color: #fff;
    background: #d7193f;
}

.ip-button-primary:hover {
    background: #b91435;
}

.cash-handover-decision-actions .cash-handover-accept-correct {
    color: #ffffff;
    background: #15803d;
}

.cash-handover-decision-actions .cash-handover-accept-correct:hover {
    background: #166534;
}

.ip-button-muted {
    color: #475569;
    background: #fff;
    border-color: #dbe2ea;
}

.ip-button-muted:hover {
    background: #f8fafc;
}

.ip-category-create {
    margin-bottom: 15px;
    padding-bottom: 17px;
    border-bottom: 1px solid #edf0f4;
}

.ip-category-manage-trigger {
    display: grid;
    align-content: center;
    gap: 8px;
    grid-column: 1 / -1;
    width: 100%;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ip-category-manage-trigger:hover,
.ip-category-manage-trigger:focus-visible {
    border-color: #cbd5e1;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.08);
}

.ip-category-manage-title {
    color: #172033;
    font-size: 18px;
    font-weight: 700;
}

.ip-category-manage-description {
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.ip-category-manage-count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    color: #c8102e;
    font-size: 13px;
    font-weight: 650;
}

.ip-category-manage-modal {
    width: 620px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    text-align: left;
}

.ip-category-breadcrumb {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 13px;
}

.ip-category-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.ip-category-breadcrumb a:hover {
    color: #c8102e;
    text-decoration: underline;
}

.ip-category-manage-modal .ip-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ip-modal-heading .telimat-popup-basliq {
    margin: 5px 0 0;
}
.ip-panel-heading {
    align-items: flex-start;
}

.ip-category-manage-modal .ip-panel-heading p {
    margin: 0;
    color: #718096;
    font-size: 13px;
}

.ip-import-guide {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.ip-import-guide strong {
    width: 100%;
    color: #334155;
    font-size: 13px;
}

.ip-import-guide > span {
    padding: 6px 9px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.ip-import-guide small {
    width: 100%;
    color: #718096;
    font-size: 12px;
    line-height: 1.5;
}

.ip-import-example {
    color: #c8102e;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.ip-import-example:hover {
    text-decoration: underline;
}

.ip-import-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}

.ip-import-file-label {
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.ip-import-form input[type="file"] {
    min-width: 0;
    max-width: 100%;
    color: #475569;
    font: inherit;
    font-size: 13px;
}

.ip-category-list {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ip-category-list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f4f7;
}

.ip-category-list > li:last-child {
    border-bottom: 0;
}

.ip-category-list > li > div:first-child {
    display: grid;
    gap: 3px;
}

.ip-category-list strong {
    color: #1e293b;
    font-size: 14px;
}

.ip-category-list span {
    color: #718096;
    font-size: 12px;
}

.ip-row-actions form {
    display: inline-flex;
    margin: 0;
}

.ip-text-action {
    padding: 3px 1px;
    color: #475569;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.ip-text-action:hover {
    color: #c8102e;
    text-decoration: underline;
}

.ip-text-danger {
    color: #b91c1c;
}

.ip-modal {
    width: 440px;
    text-align: left;
}

.ip-modal.admin-user-permissions-modal {
    width: min(900px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.ip-modal.pending-user-approval-modal {
    width: min(900px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.ip-modal.exam-create-modal {
    width: min(560px, calc(100vw - 32px));
    max-height: calc(100vh - 56px);
    padding: 24px 26px;
    overflow-y: auto;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.exam-invite-overlay .exam-create-modal {
    display: flex;
    flex-direction: column;
    min-height: 520px;
}

.exam-invite-overlay .exam-create-modal .exam-create-form {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.exam-invite-overlay .exam-create-modal .exam-question-create-actions {
    margin-top: auto;
    padding-top: 18px;
}

.exam-create-modal .ip-modal-heading {
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f5;
}

.exam-create-modal .ip-modal-heading .telimat-popup-basliq {
    margin: 3px 0 0;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.exam-create-modal .ip-modal-heading .ip-text-action {
    flex: 0 0 auto;
    margin-top: 3px;
    padding: 7px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
}

.exam-create-modal .ip-modal-heading .ip-text-action:hover {
    color: #b91c1c;
    background: #fff7f7;
    border-color: #fecaca;
}

.exam-create-form {
    gap: 14px;
}

.exam-archive-user-field {
    display: grid;
    gap: 7px;
}

.exam-create-form input[type="number"],
.exam-create-form input[type="text"] {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.exam-create-form input[type="number"]:focus,
.exam-create-form input[type="text"]:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.exam-create-form input[readonly] {
    color: #475569;
    background: #f8fafc;
    font-weight: 700;
}

.exam-create-form .exam-create-open-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 12px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
}

.exam-create-open-toggle input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    padding: 0;
    accent-color: #d7193f;
}

.exam-create-open-count[hidden] {
    display: none;
}

.exam-invite-picker-field {
    display: grid;
    gap: 7px;
}

.exam-invite-overlay [data-exam-invite-submit] {
    gap: 7px;
}

.exam-invite-overlay [data-exam-invite-submit] svg {
    width: 16px;
    height: 16px;
}

.exam-invite-picker-label {
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.exam-invite-picker {
    position: relative;
}

.exam-invite-picker-trigger {
    display: flex;
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.exam-invite-picker-trigger:focus-visible {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.exam-invite-picker-chevron {
    color: #64748b;
    font-size: 17px;
    line-height: 1;
}

.exam-invite-user-dropdown {
    position: absolute;
    z-index: 10;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.exam-invite-user-dropdown[hidden] {
    display: none;
}

.exam-invite-user-search {
    width: 100%;
    min-width: 0;
    height: 38px;
    margin-bottom: 6px;
    padding: 8px 10px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.exam-invite-user-search:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.exam-invite-user-options {
    max-height: 288px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.exam-invite-user-option {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    color: #334155;
    background: transparent;
    border: 0;
    border-radius: 7px;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.exam-invite-user-option:hover,
.exam-invite-user-option[aria-selected="true"] {
    color: #9f1239;
    background: #fff1f2;
}

.exam-invite-user-option[hidden] {
    display: none;
}

.exam-invite-user-empty {
    margin: 0;
    padding: 10px;
    color: #64748b;
    font-size: 12px;
}

.exam-invite-user-empty[hidden] {
    display: none;
}

.exam-count-cell {
    min-width: 145px;
}

.exam-total-question-count,
.exam-question-count-breakdown {
    display: block;
}

.exam-total-question-count {
    color: #334155;
    font-weight: 700;
}

.exam-question-count-breakdown {
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.exam-status-badge {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 0 9px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.exam-operations-cell {
    min-width: 250px;
    white-space: nowrap;
}

#exam-archive-table .exam-operations-cell {
    min-width: 170px;
}

#exam-archive-table .exam-question-text-cell {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
}

#exam-archive-table [data-email-sent="true"] {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
    cursor: default;
}

.my-exam-start-button {
    gap: 6px;
}

.my-exam-start-button svg {
    width: 16px;
    height: 16px;
}

.my-exam-start-button.is-unavailable,
.my-exam-start-button.is-unavailable:disabled {
    color: #64748b;
    background: #e2e8f0;
    border-color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.82;
    transform: none;
}

.exam-operations-cell .ip-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 31px;
    margin: 2px 4px 2px 0;
    padding: 5px 8px;
    font-size: 11px;
}

.exam-operations-cell [data-exam-edit][aria-disabled="true"] {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    opacity: 0.75;
    cursor: not-allowed;
}

.exam-operations-cell [data-exam-invite][aria-disabled="true"] {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    opacity: 0.75;
}

.exam-operation-icon {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.ip-modal.exam-question-create-modal {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100vh - 56px);
    padding: 24px 26px;
    overflow-y: auto;
    text-align: left;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.exam-question-create-modal .ip-modal-heading {
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f5;
}

.exam-question-create-modal .ip-modal-heading .telimat-popup-basliq {
    margin: 3px 0 0;
    font-size: 21px;
    letter-spacing: -0.02em;
}

.exam-question-create-description {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.exam-question-create-modal .ip-modal-heading .ip-text-action {
    flex: 0 0 auto;
    margin-top: 3px;
    padding: 7px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
}

.exam-question-create-modal .ip-modal-heading .ip-text-action:hover {
    color: #b91c1c;
    background: #fff7f7;
    border-color: #fecaca;
}

.exam-question-create-form {
    gap: 14px;
}

.exam-question-create-form > label {
    gap: 8px;
}

.exam-question-create-form > label[hidden] {
    display: none;
}

.exam-question-create-form select,
.exam-question-create-form textarea {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.exam-question-create-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 13px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
    box-sizing: border-box;
}

.exam-question-create-form textarea:focus,
.exam-question-create-form select:focus,
.exam-question-option > input[type="text"]:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.exam-question-options {
    min-width: 0;
    margin: 0;
    padding: 15px 16px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fbfcfe;
}

.exam-question-options[hidden] {
    display: none;
}

.exam-question-options legend {
    padding: 0 7px;
    color: #334155;
    font-size: 14px;
    font-weight: 650;
}

.exam-question-options-help {
    margin: 0 0 13px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.exam-question-option-list {
    display: grid;
    gap: 9px;
}

.exam-question-option {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.exam-question-option:focus-within {
    border-color: #f1a0b2;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.07);
}

.exam-question-option-label {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #9f1239;
    background: #fff1f2;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.exam-question-option > input[type="text"] {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 9px 10px;
    color: #172033;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.exam-question-create-form .exam-question-correct-option {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.exam-question-correct-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #d7193f;
}

.exam-question-add-option {
    min-height: 36px;
    margin-top: 13px;
    color: #334155;
    background: #fff;
    border-color: #d7dee8;
}

.exam-question-add-option:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.exam-question-add-option span {
    margin-right: 6px;
    font-size: 17px;
    line-height: 1;
}

.exam-question-create-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid #edf1f5;
}

.exam-question-operations {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    white-space: nowrap;
}

.exam-question-operations .ip-button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
}

.exam-result-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 18px 0;
}

.exam-result-toolbar label {
    display: grid;
    min-width: 190px;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 650;
}

.exam-result-toolbar input,
.exam-result-toolbar select {
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    color: #1e293b;
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    font: inherit;
}

.exam-result-toolbar input:focus,
.exam-result-toolbar select:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, 0.13);
}

.exam-result-toolbar .exam-result-search-field {
    flex: 1 1 280px;
    max-width: 360px;
}

.exam-result-toolbar .exam-result-month-field {
    flex: 0 1 220px;
}

.exam-result-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 4px;
}

.exam-result-stat-card {
    --exam-stat-accent: #2563eb;
    display: flex;
    min-width: 0;
    min-height: 104px;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.045);
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.exam-result-stat-card:hover {
    border-color: color-mix(in srgb, var(--exam-stat-accent) 40%, #e2e8f0);
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.09);
    transform: translateY(-1px);
}

.exam-result-stat-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--exam-stat-accent) 35%, transparent);
    outline-offset: 2px;
}

.exam-result-stat-card.is-active {
    border-color: var(--exam-stat-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--exam-stat-accent) 14%, transparent);
}

.exam-result-stat-card:nth-child(1) { --exam-stat-accent: #2563eb; }
.exam-result-stat-card[data-result-filter="perfect"] {
    --exam-stat-accent: #d99a12;
    background: #fffbeb;
    border-color: #fde68a;
}
.exam-result-stat-card[data-result-filter="highest"] {
    --exam-stat-accent: #16a36a;
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.exam-result-stat-card[data-result-filter="above_average"] {
    --exam-stat-accent: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.exam-result-stat-card[data-result-filter="below_average"] {
    --exam-stat-accent: #ea580c;
    background: #fff7ed;
    border-color: #fed7aa;
}
.exam-result-stat-card[data-result-filter="weakest"] {
    --exam-stat-accent: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}
.exam-result-stat-card:nth-child(7) { --exam-stat-accent: #e5484d; }

.exam-result-stat-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    color: #fff;
    background: var(--exam-stat-icon-background, var(--exam-stat-accent));
    border-radius: 12px;
}

.exam-result-stat-icon-perfect { --exam-stat-icon-background: #a16207; }
.exam-result-stat-icon-highest { --exam-stat-icon-background: #15803d; }
.exam-result-stat-icon-above { --exam-stat-icon-background: #1d4ed8; }
.exam-result-stat-icon-below { --exam-stat-icon-background: #c2410c; }
.exam-result-stat-icon-weakest { --exam-stat-icon-background: #b91c1c; }

.exam-result-stat-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.exam-result-stat-copy {
    min-width: 0;
}

.exam-result-stat-value {
    color: #172033;
    font-size: clamp(23px, 2vw, 30px);
    font-variant-numeric: tabular-nums;
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1;
}

.exam-result-stat-label {
    margin-top: 7px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

#my-exam-results-table {
    min-width: 760px;
}

#my-exam-results-table tbody tr:hover {
    background: #f8fafc;
}

#my-exam-results-table tbody tr.is-perfect-result:hover {
    background: transparent;
}

.exam-result-cashier {
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 11px;
}

.exam-result-cashier-avatar {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.exam-result-cashier-photo {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    object-fit: cover;
    background: #e8eefc;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #dbe3f0, 0 2px 5px rgba(15, 23, 42, 0.1);
}

.exam-result-cashier-initials {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #3158a5;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.02em;
    z-index: 1;
}

.exam-result-cashier-photo[data-exam-result-profile-photo] {
    position: relative;
    z-index: 2;
}

.exam-result-cashier-photo[data-exam-result-profile-photo][hidden] {
    display: none;
}

.exam-result-cashier-name {
    color: #1e293b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

#my-exam-results-table .is-perfect-result .exam-result-cashier-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #854d0e;
    font-weight: 750;
}

.exam-result-perfect-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    color: #854d0e;
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border: 1px solid #facc15;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
}

.exam-result-store {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

#my-exam-results-table .is-perfect-result .exam-result-store {
    color: #854d0e;
    background: #fffbeb;
    border-color: #fde68a;
}

#my-exam-results-table .is-perfect-result .exam-result-store svg {
    color: #ca8a04;
}

.exam-result-store svg,
.exam-result-completed-at svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    color: #64748b;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.exam-result-score {
    display: grid;
    min-width: 125px;
    gap: 6px;
}

.exam-result-score-value {
    width: fit-content;
    padding: 4px 9px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 999px;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 750;
}

.exam-result-score-value.is-perfect {
    padding: 5px 11px;
    color: #854d0e;
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    border-color: #facc15;
    box-shadow: 0 0 0 2px rgb(250 204 21 / 18%);
    font-size: 13px;
}

.exam-result-score-track {
    display: block;
    height: 5px;
    overflow: hidden;
    background: #e8edf3;
    border-radius: 999px;
}

.exam-result-score-track > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #34d399, #16a36a);
    border-radius: inherit;
}

#my-exam-results-table .is-perfect-result .exam-result-score-track > span {
    background: linear-gradient(90deg, #facc15, #d97706);
}

.exam-result-score-detail {
    color: #64748b;
    font-size: 11px;
    font-weight: 550;
    line-height: 1.4;
}

.exam-result-completed-at {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.exam-results-modal {
    width: min(900px, calc(100vw - 40px));
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
}

.exam-archive-pdf-modal {
    display: flex;
    width: min(1100px, calc(100vw - 40px));
    height: min(820px, calc(100vh - 40px));
    max-height: calc(100vh - 40px);
    flex-direction: column;
    overflow: hidden;
}

.exam-archive-pdf-modal .ip-modal-heading {
    flex: 0 0 auto;
}

.exam-archive-pdf-frame {
    display: block;
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    background: #f1f5f9;
    border: 0;
    border-radius: 10px;
}

.exam-results-list {
    display: grid;
    max-height: min(560px, calc(100vh - 260px));
    gap: 12px;
    overflow-y: auto;
    padding: 2px 4px 2px 1px;
}

.exam-results-participant {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.exam-results-participant > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 14px 16px;
    color: #1e293b;
    background: #f8fafc;
    cursor: pointer;
    list-style: none;
}

.exam-results-participant > summary::-webkit-details-marker {
    display: none;
}

.exam-results-participant > summary::after {
    content: "+";
    color: #64748b;
    font-size: 20px;
    font-weight: 500;
}

.exam-results-participant[open] > summary::after {
    content: "−";
}

.exam-results-participant-name {
    font-size: 14px;
    font-weight: 700;
}

.exam-results-participant-summary {
    color: #64748b;
    font-size: 12px;
}

.exam-results-question-list {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.exam-results-question {
    padding: 13px 14px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
}

.exam-results-question h3 {
    margin: 0 0 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
    white-space: pre-wrap;
}

.exam-results-answer-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.exam-results-answer {
    margin: 6px 0 0;
    padding: 10px 12px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.exam-results-answer.is-correct {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.exam-results-answer.is-wrong {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.exam-results-options {
    display: grid;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.exam-results-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 12px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.exam-results-option.is-correct {
    color: #166534;
    background: #f0fdf4;
    border-color: #86efac;
}

.exam-results-option.is-wrong {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fca5a5;
}

.exam-results-option-text {
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.exam-results-option-markers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.exam-results-option-marker {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 2px 8px;
    color: #475569;
    background: #e2e8f0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.exam-results-option-marker.is-correct {
    color: #166534;
    background: #dcfce7;
}

.exam-results-option-marker.is-wrong {
    color: #b91c1c;
    background: #fee2e2;
}

.exam-results-option-marker.is-selected {
    color: #1d4ed8;
    background: #dbeafe;
}

.exam-open-review-pending {
    display: block;
    margin-top: 4px;
    color: #b45309;
    font-size: 11px;
    font-weight: 650;
}

.exam-open-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.exam-open-review-actions .ip-button {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 12px;
}

.exam-open-review-actions .ip-button.is-selected {
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.16);
    transform: translateY(-1px);
}

.exam-review-confirmation {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
}

.exam-review-confirmation[hidden] {
    display: none;
}

.exam-review-selection-count {
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.exam-results-answer.is-empty,
.exam-results-no-answers {
    color: #64748b;
    background: #f8fafc;
    border-color: #e2e8f0;
}

.exam-results-no-answers {
    margin: 0;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
}

.exam-results-error {
    color: #b91c1c !important;
}

.my-exam-result-cell {
    min-width: 180px;
    white-space: nowrap;
    vertical-align: middle;
}

.my-exam-result-info {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
}

.my-exam-result-view {
    min-height: 34px;
    flex: 0 0 auto;
    margin-left: 10px;
    padding: 7px 12px;
    gap: 7px;
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 650;
}

.my-exam-result-view:hover:not(:disabled) {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
}

.my-exam-result-view:disabled {
    color: #94a3b8;
    background: #f1f5f9;
    border-color: #e2e8f0;
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
}

.my-exam-result-view svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

@media (max-width: 900px) {
    .exam-result-stats {
        grid-template-columns: repeat(6, minmax(155px, 1fr));
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .exam-result-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 14px 14px 0;
    }

    .exam-result-toolbar .exam-result-search-field,
    .exam-result-toolbar .exam-result-month-field {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
    }

    .ip-modal.exam-create-modal {
        width: min(560px, calc(100vw - 24px));
        max-height: calc(100vh - 40px);
        padding: 20px 16px;
        border-radius: 15px;
    }

    .exam-invite-overlay .exam-create-modal {
        min-height: min(520px, calc(100vh - 40px));
    }

    .exam-create-modal .ip-modal-heading {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .exam-create-modal .ip-modal-heading .telimat-popup-basliq {
        font-size: 19px;
    }

    .ip-modal.exam-question-create-modal {
        width: min(560px, calc(100vw - 24px));
        max-height: calc(100vh - 40px);
        padding: 20px 16px;
        border-radius: 15px;
    }

    .exam-question-create-modal .ip-modal-heading {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .exam-question-create-modal .ip-modal-heading .telimat-popup-basliq {
        font-size: 19px;
    }

    .exam-results-modal {
        width: min(900px, calc(100vw - 24px));
        max-height: calc(100vh - 32px);
        padding: 20px 16px;
    }

    .exam-archive-pdf-modal {
        width: calc(100vw - 24px);
        height: calc(100vh - 32px);
        max-height: calc(100vh - 32px);
        padding: 16px 12px;
    }

    .exam-results-list {
        max-height: calc(100vh - 240px);
    }

    .exam-question-option {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 9px;
        padding: 9px;
    }

    .exam-question-option-label {
        width: 28px;
        height: 28px;
    }

    .exam-question-create-form .exam-question-correct-option {
        grid-column: 2;
        padding-bottom: 2px;
    }
}

@media (max-width: 480px) {
    .exam-result-stats {
        gap: 9px;
    }

    .exam-result-stat-card {
        min-height: 92px;
        gap: 9px;
        padding: 12px 10px;
    }

    .exam-result-stat-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 10px;
    }

    .exam-result-stat-icon svg {
        width: 19px;
        height: 19px;
    }

    .exam-result-stat-label {
        font-size: 11px;
    }
}

.pending-user-approval-options {
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.ip-modal .ip-form {
    margin-top: 18px;
}

.ip-modal-actions {
    margin-top: 8px;
}

.ip-button-danger {
    color: #fff;
    background: #b91c1c;
}

.ip-button-danger:hover {
    background: #991b1b;
}

.ip-records-panel {
    padding-bottom: 10px;
}

.admin-user-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-user-filters label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 650;
}

.admin-user-filter-search {
    flex: 1 1 320px;
    max-width: 460px;
}

.admin-user-filter-role {
    flex: 0 1 220px;
}

.admin-user-filters input,
.admin-user-filters select {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 9px 12px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.admin-user-filters input:focus,
.admin-user-filters select:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.admin-user-filter-reset {
    min-height: 42px;
}

.admin-user-filter-empty {
    margin: 16px 0 8px;
}

.ip-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.ip-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ip-table th {
    padding: 10px 12px;
    color: #64748b;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ip-table th:first-child {
    border-radius: 8px 0 0 8px;
}

.ip-table th:last-child {
    border-radius: 0 8px 8px 0;
}

.ip-table td {
    padding: 13px 12px;
    color: #475569;
    border-bottom: 1px solid #eef2f6;
    font-size: 13px;
    vertical-align: middle;
}

.deleted-items-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
}

.deleted-items-actions form {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
}

.deleted-items-actions .ip-button {
    white-space: nowrap;
}

.deleted-items-loading {
    flex-direction: column;
    gap: 16px;
}

.deleted-items-loading-label {
    color: #ffffff;
    font-size: 15px;
    font-weight: 650;
}

#exam-question-bank-table .exam-question-type-cell,
#exam-question-bank-table .exam-question-answer-cell {
    width: 1%;
    white-space: nowrap;
}

.exam-question-text-cell {
    min-width: 280px;
}

.exam-question-bank-summary {
    margin: -8px 0 18px;
}

.exam-question-text {
    display: -webkit-box;
    padding: 4px 0;
    color: #1e293b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
    overflow-wrap: anywhere;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.exam-question-type-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.exam-question-type-badge.is-multiple-choice {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #dbeafe;
}

.exam-question-type-badge.is-open {
    color: #7e22ce;
    background: #faf5ff;
    border-color: #f3e8ff;
}

.exam-question-answer-badge {
    display: inline-grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.admin-user-name-cell {
    cursor: pointer;
    font-weight: 650;
}

.admin-user-name-cell:hover,
.admin-user-name-cell:focus-visible {
    color: #c8102e;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-user-name-cell:focus-visible {
    outline: 2px solid rgba(200, 16, 46, 0.35);
    outline-offset: -3px;
}

#admin-users-table {
    min-width: 900px;
}

#admin-users-table th:first-child,
#admin-users-table td.admin-user-row-number {
    width: 56px;
    color: #64748b;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.admin-user-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-user-actions form {
    margin: 0;
}

.exam-attempt-open {
    overflow: hidden;
}

.exam-attempt-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.exam-attempt-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.72);
    backdrop-filter: blur(5px);
}

.exam-attempt-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(1120px, calc(100vw - 40px));
    max-height: min(920px, calc(100vh - 40px));
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 22px;
    box-shadow: 0 32px 90px rgba(2, 6, 23, 0.36);
    overscroll-behavior: contain;
    scrollbar-color: #94a3b8 transparent;
    scrollbar-width: thin;
}

.exam-attempt-dialog:focus {
    outline: none;
}

.exam-attempt-dialog > .ip-page-heading {
    position: sticky;
    top: 0;
    z-index: 4;
    min-height: 76px;
    margin: 0;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(12px);
}

.exam-attempt-dialog > .ip-page-heading h1 {
    font-size: clamp(19px, 2.2vw, 26px);
}

.exam-attempt-exit-link {
    flex: 0 0 auto;
}

.exam-attempt-dialog > .exam-attempt-error,
.exam-attempt-dialog > .exam-attempt-expired,
.exam-attempt-dialog > .exam-attempt-question-list {
    margin-right: 24px;
    margin-left: 24px;
}

.exam-attempt-dialog > .exam-attempt-error,
.exam-attempt-dialog > .exam-attempt-expired {
    margin-top: 18px;
}

.exam-attempt-toolbar {
    position: sticky;
    top: 76px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    margin: 0 0 18px;
    padding: 12px 24px 15px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.exam-attempt-toolbar::before {
    position: absolute;
    inset: 12px auto 12px 0;
    width: 4px;
    background: linear-gradient(180deg, #ef4444, #be123c);
    border-radius: 0 4px 4px 0;
    content: "";
}

.exam-attempt-timer {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #0f172a;
}

.exam-attempt-timer-icon {
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    color: #c8102e;
}

.exam-attempt-timer-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.09em;
    white-space: nowrap;
}

.exam-attempt-timer strong {
    display: inline-flex;
    min-width: 116px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    color: #fff;
    background: #172033;
    border: 1px solid #29364d;
    border-radius: 11px;
    font-variant-numeric: tabular-nums;
    font-size: 23px;
    font-weight: 750;
    letter-spacing: 0.055em;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.exam-attempt-save-status {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
}

.exam-attempt-save-status::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: #94a3b8;
    border-radius: 50%;
    content: "";
}

.exam-attempt-save-status.is-error {
    color: #b91c1c;
}

.exam-attempt-save-status.is-error::before {
    background: #dc2626;
}

.exam-attempt-progress {
    position: absolute;
    right: 16px;
    bottom: 0;
    left: 16px;
    height: 3px;
    overflow: hidden;
    background: #e8edf4;
    border-radius: 3px 3px 0 0;
}

.exam-attempt-progress span {
    display: block;
    width: var(--exam-time-remaining, 100%);
    height: 100%;
    background: linear-gradient(90deg, #be123c, #ef4444);
    border-radius: inherit;
    transition: width 0.5s linear, background-color 0.3s ease;
}

.exam-attempt-toolbar.is-warning .exam-attempt-timer strong {
    background: #78350f;
    border-color: #92400e;
}

.exam-attempt-toolbar.is-warning .exam-attempt-timer-icon {
    color: #d97706;
}

.exam-attempt-toolbar.is-warning .exam-attempt-progress span {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.exam-attempt-toolbar.is-critical .exam-attempt-timer strong,
.exam-attempt-toolbar.is-expired .exam-attempt-timer strong {
    background: #991b1b;
    border-color: #b91c1c;
}

.exam-attempt-toolbar.is-critical .exam-attempt-timer-icon,
.exam-attempt-toolbar.is-expired .exam-attempt-timer-icon {
    color: #dc2626;
}

.exam-attempt-toolbar.is-critical .exam-attempt-progress span,
.exam-attempt-toolbar.is-expired .exam-attempt-progress span {
    background: #dc2626;
}

.exam-attempt-question-list {
    display: grid;
    gap: 16px;
}

.exam-attempt-finish-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 24px 24px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
}

.exam-attempt-finish-bar p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.exam-attempt-finish-bar .ip-button {
    min-width: 150px;
    min-height: 42px;
    flex: 0 0 auto;
}

.exam-attempt-finish-bar .ip-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.exam-finish-confirmation[hidden],
.exam-finish-loading[hidden],
.exam-finish-confirm-content[hidden] {
    display: none;
}

.exam-finish-confirmation {
    position: fixed;
    inset: 0;
    z-index: 1005;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(5px);
}

.exam-finish-confirmation-dialog {
    width: min(480px, 100%);
    padding: 30px;
    color: #1e293b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32);
    text-align: center;
}

.exam-finish-confirmation-dialog:focus {
    outline: none;
}

.exam-finish-confirmation-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    margin: 0 auto 14px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 800;
}

.exam-finish-confirmation-dialog h2 {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
}

.exam-finish-confirmation-dialog p {
    margin: 10px 0 20px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.exam-finish-confirmation-dialog .exam-finish-confirmation-error {
    margin: -7px 0 16px;
    color: #b91c1c;
    font-size: 13px;
}

.exam-finish-confirmation-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.exam-finish-confirmation-actions .ip-button {
    min-width: 170px;
}

.exam-finish-loading {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 20px 8px;
}

.exam-finish-loading strong {
    color: #0f172a;
    font-size: 17px;
}

.exam-finish-loading > span:last-child {
    color: #64748b;
    font-size: 13px;
}

.exam-finish-loading-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #fee2e2;
    border-top-color: #c8102e;
    border-radius: 50%;
    animation: exam-finish-spin 0.8s linear infinite;
}

@keyframes exam-finish-spin {
    to {
        transform: rotate(360deg);
    }
}

.exam-attempt-question {
    min-width: 0;
    margin: 0;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.exam-attempt-question legend {
    max-width: 100%;
    padding: 0 8px;
    color: #1e293b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    white-space: normal;
}

.exam-attempt-question-number {
    display: block;
    margin-bottom: 5px;
    color: #c8102e;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.exam-attempt-options {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.exam-attempt-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    line-height: 1.5;
}

.exam-attempt-option:has(input:checked) {
    background: #fff1f2;
    border-color: #fda4af;
}

.exam-attempt-option input {
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: #c8102e;
}

.exam-attempt-answer-label {
    display: block;
    margin: 14px 0 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 650;
}

.exam-attempt-question textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 12px;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font: inherit;
    resize: vertical;
}

.exam-attempt-question textarea:focus {
    border-color: #c8102e;
    outline: 3px solid rgba(200, 16, 46, 0.12);
}

.exam-attempt-expired,
.exam-attempt-error {
    margin-bottom: 16px;
    padding: 16px 18px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.exam-leave-warning[hidden] {
    display: none;
}

.exam-leave-warning {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.exam-leave-warning-dialog {
    width: min(460px, 100%);
    padding: 30px;
    color: #1e293b;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.3);
    text-align: center;
}

.exam-leave-warning-dialog:focus {
    outline: none;
}

.exam-leave-warning-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    margin: 0 auto 14px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 50%;
    font-size: 25px;
    font-weight: 800;
}

.exam-leave-warning-dialog h2 {
    margin: 0;
    color: #0f172a;
    font-size: 21px;
}

.exam-leave-warning-dialog p {
    margin: 10px 0 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.exam-leave-warning-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.exam-leave-warning-actions .ip-button {
    min-width: 180px;
}

.exam-attempt-question:disabled {
    opacity: 0.78;
}

@media (max-width: 640px) {
    .exam-attempt-overlay {
        padding: 0;
    }

    .exam-attempt-dialog {
        width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .exam-attempt-dialog > .ip-page-heading {
        min-height: 68px;
        padding: 11px 14px;
    }

    .exam-attempt-dialog > .ip-page-heading h1 {
        font-size: 18px;
    }

    .exam-attempt-dialog > .exam-attempt-error,
    .exam-attempt-dialog > .exam-attempt-expired,
    .exam-attempt-dialog > .exam-attempt-question-list,
    .exam-attempt-dialog > .exam-attempt-finish-bar {
        margin-right: 12px;
        margin-left: 12px;
    }

    .exam-attempt-toolbar {
        top: 68px;
        gap: 8px;
        min-height: 64px;
        padding: 9px 12px 12px;
    }

    .exam-attempt-timer {
        gap: 7px;
    }

    .exam-attempt-timer-icon {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
    }

    .exam-attempt-timer-label {
        font-size: 9px;
    }

    .exam-attempt-timer strong {
        min-width: 91px;
        min-height: 38px;
        padding: 0 8px;
        border-radius: 9px;
        font-size: 19px;
    }

    .exam-attempt-save-status {
        min-height: 32px;
        max-width: 40%;
        font-size: 10px;
        line-height: 1.35;
    }

    .exam-attempt-question {
        padding: 16px 12px;
    }

    .exam-attempt-finish-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
        padding: 14px;
    }

    .exam-attempt-finish-bar .ip-button {
        width: 100%;
    }

    .exam-finish-confirmation {
        padding: 14px;
    }

    .exam-finish-confirmation-dialog {
        padding: 24px 18px;
    }

    .exam-finish-confirmation-actions {
        flex-direction: column-reverse;
    }

    .exam-finish-confirmation-actions .ip-button {
        width: 100%;
    }

    .exam-leave-warning {
        padding: 14px;
    }

    .exam-leave-warning-dialog {
        padding: 24px 18px;
    }

    .exam-leave-warning-actions {
        flex-direction: column-reverse;
    }

    .exam-leave-warning-actions .ip-button {
        width: 100%;
    }
}

.admin-user-actions .ip-button {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 11px;
    white-space: nowrap;
}

.admin-user-actions .ip-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.admin-user-block-overlay .ip-modal-actions {
    margin-top: 18px;
}

.admin-user-block-submit-unblock {
    color: #fff;
    background: #15803d;
}

.admin-user-block-submit-unblock:hover {
    background: #166534;
}

.admin-user-delete-note {
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
    font-size: 12px;
}

.admin-user-role-field {
    margin: 18px 0;
}

.admin-user-role-field select {
    width: 100%;
}

.admin-user-permission-options {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 5px 8px;
    margin: 12px 0 8px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.admin-user-permission-options[data-admin-user-admin-sections][hidden] {
    display: none;
}

.admin-user-permission-options[data-admin-user-admin-dropdown-sections][hidden] {
    display: none;
}


.admin-user-permission-options legend {
    padding: 0 5px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.ip-form .admin-user-permission-option {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 28px;
    color: #334155;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

.ip-form .admin-user-permission-option input {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #c8102e;
}

.ip-form .admin-user-permission-option span {
    min-width: 0;
}

.admin-user-permissions-help {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .admin-user-permission-options {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ip-modal.admin-user-permissions-modal {
        width: min(560px, calc(100vw - 24px));
        max-height: calc(100vh - 24px);
    }

    .ip-modal.pending-user-approval-modal {
        width: min(560px, calc(100vw - 24px));
        max-height: calc(100vh - 24px);
    }

    .admin-user-permission-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .admin-user-permission-options {
        grid-template-columns: minmax(0, 1fr);
    }
}

.admin-user-details-modal .ip-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ip-modal-heading .telimat-popup-basliq {
    margin: 5px 0 0;
}
.ip-panel-heading {
    margin-bottom: 18px;
}

.admin-user-details-modal .ip-panel-heading p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
}

.admin-user-details-list {
    display: grid;
    gap: 10px;
}

.admin-user-detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-detail > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: #c8102e;
}

.admin-user-detail > div {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.admin-user-detail span {
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
}

.admin-user-detail strong {
    color: #172033;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.ip-number-value,
.ip-user-number {
    color: #172033;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ip-status {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.ip-status.is-active {
    color: #166534;
    background: #dcfce7;
}

.ip-status.is-hidden {
    color: #64748b;
    background: #f1f5f9;
}

.ip-empty {
    margin: 0;
    padding: 22px;
    color: #64748b;
    text-align: center;
}

.latest-updates-page {
    max-width: 1180px;
}

.latest-updates-page > .ip-page-heading {
    align-items: center;
    margin-bottom: 24px;
}

.latest-updates-heading {
    display: flex;
    align-items: center;
    gap: 15px;
}

.latest-updates-heading-icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    place-items: center;
    color: #c8102e;
    background: linear-gradient(145deg, #fff1f2, #ffe4e9);
    border: 1px solid #ffe0e6;
    border-radius: 16px;
    box-shadow: 0 5px 14px rgba(200, 16, 46, 0.08);
}

.latest-updates-heading-icon svg {
    width: 27px;
    height: 27px;
}

.latest-updates-heading h1 {
    margin-top: 3px;
}

.latest-updates-heading p {
    margin-top: 6px;
}

.latest-updates-total {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.latest-updates-toolbar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.latest-updates-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 2px 2px 8px;
}

.latest-update-item {
    display: grid;
    flex: 0 1 300px;
    grid-template-columns: 38px minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    align-items: start;
    min-width: 0;
    min-height: 195px;
    box-sizing: border-box;
    gap: 12px;
    padding: 17px;
    position: relative;
    overflow: hidden;
    color: #334155;
    text-decoration: none;
    background: linear-gradient(145deg, #fff 0%, #fbfcfe 100%);
    border: 1px solid #e3e8ef;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease,
        background-color 0.2s ease;
}

.latest-update-item.is-featured {
    border-color: #efd2d8;
    background: linear-gradient(145deg, #fff 0%, #fff9fa 100%);
}

.latest-update-item::before {
    position: absolute;
    inset: 0;
    content: "";
    border: 2px solid #c8102e;
    border-radius: inherit;
    opacity: 0.72;
    pointer-events: none;
}

.latest-update-item:hover,
.latest-update-item:focus-visible {
    transform: translateY(-3px);
    border-color: #e7aab6;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
    text-decoration: none;
}

.latest-update-item.is-information::before {
    border-color: #3b82f6;
}

.latest-update-item:focus-visible {
    outline: 3px solid rgba(200, 16, 46, 0.2);
    outline-offset: 2px;
}

.latest-update-icon {
    display: grid;
    grid-column: 1;
    grid-row: 1;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #c8102e;
    background: linear-gradient(145deg, #fff0f3, #ffe6eb);
    border: 1px solid #f9dce2;
    border-radius: 11px;
}

.latest-update-icon svg {
    width: 21px;
    height: 21px;
}

.latest-update-item.is-information .latest-update-icon {
    color: #2563eb;
    background: #eff6ff;
    border-color: #dbeafe;
}

.latest-update-meta {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.latest-update-type {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 7px;
    color: #9f1239;
    background: #fff1f2;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
}

.latest-update-item.is-information .latest-update-type {
    color: #1d4ed8;
    background: #eff6ff;
}

.latest-update-new {
    display: inline-flex;
    align-items: center;
    min-height: 19px;
    padding: 2px 7px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.latest-update-meta time {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    color: #64748b;
    font-size: 9px;
    white-space: nowrap;
}

.latest-update-meta time svg {
    width: 13px;
    height: 13px;
}

.latest-update-content {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 5px;
}

.latest-update-content strong {
    color: #1e293b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.latest-update-content > span {
    display: -webkit-box;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.latest-update-link-label {
    grid-column: 1 / -1;
    grid-row: 3;
    display: inline-flex;
    align-items: center;
    justify-self: end;
    align-self: flex-end;
    gap: 6px;
    color: #b20f2e;
    font-size: 10px;
    font-weight: 700;
    transition: gap 0.18s ease;
}

.latest-update-link-label svg {
    width: 14px;
    height: 14px;
}

.latest-update-item:hover .latest-update-link-label,
.latest-update-item:focus-visible .latest-update-link-label {
    gap: 9px;
}

.latest-updates-settings-card {
    max-width: 700px;
}

.latest-updates-settings-form {
    gap: 12px;
}

.latest-updates-settings-form > label:not(.latest-updates-enable) {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.latest-updates-settings-form select {
    width: 100%;
    max-width: 320px;
    min-height: 42px;
    padding: 9px 11px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    font: inherit;
}

.latest-updates-enable {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.latest-updates-enable input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #c8102e;
}

.latest-updates-save-success {
    margin: 0 0 16px;
    padding: 11px 13px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 9px;
    font-size: 13px;
}

.role-permissions-card {
    max-width: 1100px;
}

.role-permissions-help {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.cashier-group-status-card {
    margin-bottom: 18px;
}

.cashier-group-status-indicator {
    margin: 0 0 14px;
    padding: 11px 13px;
    border: 1px solid;
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
}

.cashier-group-status-indicator.is-active {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.cashier-group-status-indicator.is-inactive {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.cashier-group-members-form {
    display: grid;
    gap: 16px;
}

.cashier-group-members-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(220px, 1fr);
    align-items: end;
    gap: 8px 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgb(15 23 42 / 5%);
}

.cashier-group-member-filter {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.cashier-group-member-search-label,
.cashier-group-member-job-title-label {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.cashier-group-member-search,
.cashier-group-member-job-title {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 11px;
    color: #1e293b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.cashier-group-member-search:focus,
.cashier-group-member-job-title:focus {
    outline: 2px solid rgb(200 16 46 / 20%);
    border-color: #c8102e;
}

.cashier-group-member-selection-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cashier-group-member-selection-tools .ip-button {
    min-height: 36px;
}

.cashier-group-member-count {
    margin: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.cashier-group-member-options {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    max-height: min(60vh, 680px);
    overflow: auto;
}

.cashier-group-member-options.is-empty::after {
    grid-column: 1 / -1;
    padding: 18px 8px;
    color: #64748b;
    content: "Axtarışa uyğun istifadəçi tapılmadı.";
    font-size: 13px;
    text-align: center;
}

.cashier-group-member-options .cashier-group-member-option.is-filtered-out {
    display: none;
}

.cashier-group-member-options .admin-user-permission-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
    padding: 8px;
    color: #334155;
    border-radius: 8px;
    cursor: pointer;
}

.cashier-group-member-options .admin-user-permission-option:hover {
    background: #f8fafc;
}

.cashier-group-member-options .admin-user-permission-option input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #c8102e;
}

.cashier-group-member-options .admin-user-permission-option span {
    display: block;
    min-width: 0;
}

.cashier-group-member-options .admin-user-permission-option strong,
.cashier-group-member-options .admin-user-permission-option small {
    display: block;
    overflow-wrap: anywhere;
}

.cashier-group-member-options .admin-user-permission-option strong {
    font-size: 13px;
}

.cashier-group-member-options .admin-user-permission-option small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .cashier-group-members-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .cashier-group-member-count {
        text-align: left;
    }
}

.role-permissions-table-wrap {
    max-height: min(68vh, 720px);
    overflow: auto;
}

.role-permissions-table {
    min-width: 560px;
}

.role-permissions-table th:not(:first-child),
.role-permissions-table td {
    text-align: center;
}

.role-permissions-table .role-permissions-group-row th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

.role-permissions-table td {
    width: 110px;
}

.role-permission-checkbox {
    display: inline-grid;
    min-width: 32px;
    min-height: 32px;
    place-items: center;
    cursor: pointer;
}

.role-permission-checkbox input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #c8102e;
}

.role-permissions-unavailable {
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .latest-updates-page > .ip-page-heading {
        align-items: flex-start;
    }

    .latest-updates-heading {
        align-items: flex-start;
        gap: 11px;
    }

    .latest-updates-heading-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 13px;
    }

    .latest-updates-heading-icon svg {
        width: 23px;
        height: 23px;
    }

    .latest-updates-total {
        padding: 7px 9px;
        font-size: 11px;
    }

    .latest-updates-toolbar {
        gap: 8px;
    }

    .latest-update-item {
        min-height: 195px;
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .latest-updates-page > .ip-page-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .latest-updates-toolbar {
        justify-content: flex-end;
    }
}

.ip-user-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ip-user-card {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 18px;
    color: #172033;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}

.ip-card-label {
    color: #718096;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ip-user-number {
    flex: 0 0 auto;
    margin: 0;
    color: #c8102e;
    font-size: 16px;
    white-space: nowrap;
}

.ip-user-owner {
    min-width: 0;
    color: #263449;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ip-user-category-card {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    min-height: 140px;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.ip-user-category-card:hover {
    border-color: #f3a3b4;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
    text-decoration: none;
    transform: translateY(-2px);
}

.ip-category-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: #c8102e;
    background: #fff1f2;
    border-radius: 11px;
}

.ip-category-icon svg {
    width: 22px;
    height: 22px;
}

.ip-category-open {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
}

@media (max-width: 960px) {
    .ip-admin-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ip-user-grid:not(.ip-category-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .admin-user-filters {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-user-filter-search,
    .admin-user-filter-role {
        width: 100%;
        max-width: none;
    }

    .admin-user-filter-reset {
        align-self: flex-start;
    }

    .telimat-basliqsetr {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .panel-module-heading-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        width: 100%;
    }

    .telimat-basliqsetr .panel-module-heading-actions {
        flex: 1 1 100%;
    }

    .panel-module-heading-actions .ip-admin-search {
        flex: 1 1 220px;
    }

    .panel-module-detail-actions {
        align-items: flex-start;
    }

    .panel-favorite-card {
        align-items: flex-start;
    }

    .ip-page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .exam-page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .cash-handover-filters {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .cash-handover-filters > label,
    .cash-handover-filters > .cash-handover-filter-store,
    .cash-handover-filters .cash-handover-filter-search,
    .cash-handover-filters .cash-handover-filter-status {
        width: 100%;
        max-width: none;
    }

    .cash-handover-filters > .cash-handover-filter-clear {
        align-self: flex-start;
    }

    .ip-admin-search {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
    }

    .ip-panel-card {
        padding: 17px;
        border-radius: 12px;
    }

    .manual-user-create-card .ip-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .manual-user-create-card .ip-form-actions {
        grid-column: auto;
    }

    .ip-user-grid,
    .ip-user-grid:not(.ip-category-grid) {
        grid-template-columns: minmax(0, 1fr);
    }

    .ip-table {
        min-width: 720px;
    }
}

.posterminal-send-card {
    width: 100%;
    max-width: 900px;
    margin-inline: auto;
    box-sizing: border-box;
}

.posterminal-send-form {
    gap: 11px;
}

.posterminal-send-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 11px;
    color: #172033;
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.posterminal-send-form textarea:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.posterminal-form-help {
    color: #64748b;
    font-size: 12px;
}

.posterminal-file-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 3px 0 8px;
}

.posterminal-file-preview {
    display: flex;
    width: 142px;
    min-width: 0;
    padding: 7px;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
}

.posterminal-file-preview:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.posterminal-file-preview img,
.posterminal-pdf-badge {
    display: flex;
    width: 100%;
    height: 96px;
    align-items: center;
    justify-content: center;
    object-fit: cover;
    color: #b91c1c;
    background: #fff;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 750;
}

.posterminal-file-preview img {
    -webkit-user-drag: none;
    user-select: none;
}

.posterminal-file-name {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.posterminal-submission-list {
    display: grid;
    gap: 14px;
}

.posterminal-submission-card {
    max-width: 980px;
}

.posterminal-submission-list--admin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
}

.posterminal-submission-list--admin .posterminal-submission-card {
    max-width: none;
}

.posterminal-submission-filters {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    margin: 16px auto 24px;
    gap: 10px;
}

.posterminal-submission-filters label {
    display: grid;
    min-width: 0;
    flex: 0 1 160px;
    gap: 5px;
}

.posterminal-filter-field {
    position: relative;
    display: grid;
    min-width: 130px;
    flex: 0 1 190px;
    gap: 5px;
}

.posterminal-filter-picker {
    position: relative;
    min-width: 0;
}

.posterminal-filter-field > span {
    color: #475569;
    font-size: 12px;
    font-weight: 650;
}

.posterminal-filter-field > select[hidden] {
    display: none;
}

.posterminal-filter-date-control {
    position: relative;
    display: block;
    min-width: 0;
}

.posterminal-filter-date-control > input[type="text"] {
    padding-right: 42px;
}

.posterminal-filter-calendar {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    transform: translateY(-50%);
}

.posterminal-filter-calendar:hover {
    color: #be123c;
    background: #fff1f2;
}

.posterminal-filter-calendar svg {
    width: 18px;
    height: 18px;
}

.posterminal-filter-native-date {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.posterminal-filter-date-error {
    color: #b42318;
    font-size: 12px;
    font-weight: 400;
}

.posterminal-filter-date-error[hidden] {
    display: none;
}

.posterminal-filter-trigger {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 34px 8px 10px;
    overflow: hidden;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.posterminal-filter-trigger::after {
    position: absolute;
    top: 15px;
    right: 13px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #64748b;
    border-bottom: 1.5px solid #64748b;
    content: "";
    pointer-events: none;
    transform: rotate(45deg);
}

.posterminal-filter-trigger:focus,
.posterminal-filter-search:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.posterminal-filter-dropdown {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
}

.posterminal-filter-dropdown[hidden] {
    display: none;
}

.posterminal-filter-search {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin-bottom: 7px;
    padding: 8px 10px;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.posterminal-filter-options {
    display: grid;
    max-height: 220px;
    overflow-y: auto;
}

.posterminal-filter-options > button {
    padding: 9px 10px;
    color: #172033;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.posterminal-filter-options > button:hover,
.posterminal-filter-options > button[aria-selected="true"] {
    color: #be123c;
    background: #fff1f2;
}

.posterminal-filter-options > button[hidden] {
    display: none;
}

.posterminal-filter-no-results {
    display: block;
    padding: 8px 10px;
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
}

.posterminal-filter-no-results[hidden] {
    display: none;
}

.posterminal-submission-filters select,
.posterminal-submission-filters input {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 8px 10px;
    color: #172033;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.posterminal-submission-filters select:focus,
.posterminal-submission-filters input:focus {
    outline: none;
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.posterminal-submission-filters > .ip-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    height: 40px;
    min-height: 40px;
    box-sizing: border-box;
    margin-bottom: 0;
    white-space: nowrap;
}

.posterminal-filter-empty {
    margin: 0 0 16px;
}

.posterminal-admin-submission-card[hidden] {
    display: none;
}

.posterminal-admin-submission-card {
    padding: 0;
    overflow: hidden;
    border: 1px solid #e11d48;
}

.posterminal-submission-open {
    display: grid;
    width: 100%;
    min-height: 100%;
    padding: 22px;
    align-content: center;
    justify-items: start;
    gap: 10px;
    color: #172033;
    background: #fff;
    border: 0;
    text-align: left;
    cursor: pointer;
}

.posterminal-submission-open:hover,
.posterminal-submission-open:focus-visible {
    background: #f8fafc;
}

.posterminal-submission-card.has-unread-audit-notification {
    border-color: #e11d48;
    box-shadow: inset 4px 0 0 #e11d48, 0 0 0 1px rgba(225, 29, 72, 0.12);
}

.posterminal-audit-unread-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    color: #fff;
    background: #c8102e;
    border: 1px solid #a50d25;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.posterminal-audit-unread-badge::before {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    content: "";
    background: #e11d48;
    border-radius: 50%;
}

.posterminal-submission-open:focus-visible {
    outline: 3px solid rgba(225, 29, 72, 0.35);
    outline-offset: -3px;
}

.posterminal-submission-meta {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 14px;
}

.posterminal-submission-meta > svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #64748b;
}

.posterminal-submission-meta > span {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 2px;
    overflow-wrap: anywhere;
}

.posterminal-submission-meta strong {
    min-width: 52px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}

.posterminal-submission-store {
    font-size: 17px;
    font-weight: 650;
}

.posterminal-submission-store strong {
    font-size: 13px;
}

.posterminal-submission-status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 4px 9px;
    color: #854d0e;
    background: #fef9c3;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 650;
}

.posterminal-submission-status.is-checked {
    color: #166534;
    background: #dcfce7;
}

.posterminal-submission-status.is-mismatch {
    color: #9a3412;
    background: #ffedd5;
}

.posterminal-recipient-review {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.posterminal-recipient-review form {
    margin: 0;
}

.posterminal-discussion-history {
    margin-top: 18px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.posterminal-discussion-title {
    margin: 0 0 12px;
    color: #172033;
    font-size: 14px;
}

.posterminal-discussion-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.posterminal-discussion-item {
    padding: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.posterminal-discussion-item > strong {
    color: #334155;
    font-size: 13px;
}

.posterminal-discussion-item > time {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.posterminal-discussion-item > p {
    margin: 9px 0 0;
    color: #334155;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.posterminal-discussion-file {
    width: 76px;
    height: 76px;
    margin: 10px 8px 0 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.posterminal-discussion-file img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.posterminal-discussion-empty,
.posterminal-discussion-loading {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.posterminal-discussion-error {
    margin: 8px 0;
    color: #b91c1c;
    font-size: 13px;
}

.posterminal-discussion-modal {
    width: min(620px, calc(100vw - 32px));
    max-height: min(90vh, 800px);
    overflow-y: auto;
}

.posterminal-discussion-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.posterminal-discussion-form[hidden] {
    display: none;
}

.posterminal-discussion-form label {
    color: #334155;
    font-size: 13px;
    font-weight: 650;
}

.posterminal-discussion-form textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 100px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #172033;
    font: inherit;
    resize: vertical;
}

.posterminal-discussion-form input[type="file"] {
    width: 100%;
    color: #475569;
    font-size: 13px;
}

.posterminal-discussion-form .ip-modal-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.posterminal-response-open {
    margin-top: 14px;
}

.posterminal-submission-count {
    color: #be123c;
    font-size: 12px;
    font-weight: 650;
}

.posterminal-submission-heading h2 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 16px;
}

.posterminal-submission-heading h3 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 16px;
}

.posterminal-submission-cashier {
    display: flex;
    align-items: center;
    gap: 9px;
}

.posterminal-submission-cashier svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #64748b;
}

.posterminal-submission-cashier span {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.posterminal-submission-cashier strong {
    color: #64748b;
    font-size: 12px;
}

.posterminal-submission-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.posterminal-submission-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.posterminal-submission-note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 2px;
    color: #64748b;
}

.posterminal-submission-note strong {
    flex: 0 0 auto;
    color: #64748b;
}

.posterminal-submission-note > span {
    min-width: 0;
}

.posterminal-preview-modal {
    display: flex;
    width: min(1000px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    flex-direction: column;
    gap: 14px;
}

.posterminal-preview-overlay {
    z-index: 220;
}

.posterminal-submission-modal {
    display: flex;
    width: min(900px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    flex-direction: column;
    gap: 16px;
}

.posterminal-submission-modal-content {
    overflow: auto;
}

.posterminal-submission-modal-content .posterminal-file-preview-list {
    max-height: calc(100vh - 220px);
    overflow: auto;
}

.posterminal-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.posterminal-preview-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.posterminal-preview-actions button {
    min-width: 34px;
}

.posterminal-preview-zoom-level {
    min-width: 42px;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.posterminal-preview-actions button:disabled {
    cursor: default;
    opacity: 0.45;
}

.posterminal-preview-header h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
}

.posterminal-submission-modal-heading {
    display: flex;
    min-width: 0;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.posterminal-submission-modal-heading time {
    color: #64748b;
    font-size: 13px;
    white-space: nowrap;
}

.posterminal-preview-content {
    display: block;
    min-height: 220px;
    max-height: calc(100vh - 150px);
    overflow: auto;
    background: #f1f5f9;
    border-radius: 10px;
}

.posterminal-preview-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 170px);
    margin: auto;
    object-fit: contain;
    transform-origin: top left;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.posterminal-preview-content:has(img) {
    cursor: grab;
}

.posterminal-preview-content.is-panning {
    cursor: grabbing;
    user-select: none;
}

.posterminal-preview-content iframe {
    width: 100%;
    height: min(76vh, 850px);
    border: 0;
    background: #fff;
}

@media (max-width: 1100px) {
    .posterminal-submission-list--admin {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .panel-support-widget {
        right: 16px;
        bottom: 84px;
    }

    .panel-ai-widget {
        right: 16px;
        bottom: 84px;
    }

    .panel-ai-widget.has-support-widget {
        bottom: 152px;
    }

    .panel-ai-card {
        max-height: calc(100vh - 130px);
    }

    .panel-support-float {
        width: 48px;
        min-height: 48px;
    }

    .panel-support-float:hover,
    .panel-support-float:focus-visible {
        width: min(150px, calc(100vw - 32px));
    }

    .panel-ai-float:focus-visible {
        width: min(150px, calc(100vw - 32px));
    }

    .posterminal-file-preview {
        width: calc(50% - 5px);
    }

    .posterminal-submission-list--admin {
        grid-template-columns: minmax(0, 1fr);
    }

    .posterminal-submission-filters {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .posterminal-submission-filters > label,
    .posterminal-submission-filters > .posterminal-filter-field {
        width: 100%;
        max-width: none;
    }

    .posterminal-submission-filters > .ip-button {
        align-self: flex-start;
    }

    .posterminal-preview-modal {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        padding: 18px;
    }

    .posterminal-preview-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .posterminal-preview-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel-support-float,
    .panel-support-float-label,
    .panel-support-card {
        animation: none;
        transition: none;
    }
}

.work-shift-store-filter,
.work-shift-history {
    margin-top: 24px;
}

.work-shift-history h2 {
    margin-top: 0;
}

.work-shift-history td small {
    display: block;
    margin-top: 4px;
    color: #777;
}

.work-shift-store-filter {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.work-shift-store-picker {
    position: relative;
    display: grid;
    gap: 6px;
    width: min(320px, 100%);
}

.work-shift-store-label {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.work-shift-store-trigger {
    width: 100%;
    padding: 9px 36px 9px 12px;
    border: 1px solid var(--border-color, #d7dce2);
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.work-shift-store-menu {
    position: absolute;
    z-index: 20;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid var(--border-color, #d7dce2);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.work-shift-store-menu[hidden] {
    display: none;
}

.work-shift-store-menu input[type="search"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color, #d7dce2);
    border-radius: 6px;
}

.work-shift-store-options {
    display: grid;
    max-height: 160px;
    overflow-y: auto;
}

.work-shift-store-option {
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.work-shift-store-option:hover,
.work-shift-store-option[aria-selected="true"] {
    background: #f1f5f9;
}

.work-shift-store-option[hidden] {
    display: none;
}

.work-shift-store-empty {
    margin: 4px 8px;
    color: var(--text-muted, #667085);
    font-size: 13px;
}

.work-shift-store-native {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.work-shift-table-wrap {
    margin-top: 16px;
    width: 100%;
    overflow-x: auto;
}

.work-shift-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.work-shift-name-column {
    width: 160px;
}

.work-shift-table td,
.work-shift-table th {
    min-width: 0;
    padding: 8px 5px;
    vertical-align: middle;
}

.work-shift-table tbody th {
    padding: 8px 12px !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: #475569;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    line-height: 1.35;
    text-align: left !important;
    vertical-align: middle !important;
}

.work-shift-table thead th:first-child {
    padding-left: 12px;
}

.work-shift-table td.work-shift-changed {
    background: #fff3d6 !important;
    box-shadow: inset 0 0 0 1px #e7bd62;
}

.work-shift-change-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--text-muted, #667085);
    font-size: 13px;
}

.work-shift-change-legend span {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    border: 1px solid #e7bd62;
    border-radius: 3px;
    background: #fff3d6;
}

.work-shift-cell {
    display: grid;
    justify-items: stretch;
    gap: 5px;
}

.work-shift-cell input[type="text"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 6px 3px;
    white-space: nowrap;
    font-family: inherit;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}

.work-shift-off {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.work-shift-off-label {
    font-weight: 600;
}

.work-shift-unscheduled {
    color: #777;
}

.work-shift-help {
    margin: 0 0 12px;
    color: var(--text-muted, #667085);
}

.work-shift-result {
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff3f1;
    color: #9e2b20;
}

.work-shift-result.is-success {
    background: #eef9f0;
    color: #246b36;
}

.work-shift-save-actions {
    justify-content: flex-end;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .work-shift-table {
        min-width: 760px;
    }
}

@media (max-width: 640px) {
    .work-shift-store-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .work-shift-store-picker,
    .work-shift-store-filter .ip-button {
        width: 100%;
    }
}
