/* Site-wide styles (RTL, colors, cards, status badges) */
:root {
    --status-active: var(--t-green, #16a34a);
    --status-expired: var(--t-red, #dc2626);
    --status-temporary: var(--t-amber, #f59e0b);
    --status-permanent: var(--t-cyan, #0ea5e9);
    --bg: var(--t-page-bg, #f3f6fb);
    --card-bg: var(--t-surface, #ffffff);
    --muted: var(--t-text-muted, #6b7280);
}

@font-face {
    font-family: 'JF Flat Regular';
    src: url('/fonts/JF-Flat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@keyframes notifySlideIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.96);
    }

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

@keyframes notifySlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
}

@keyframes notifyBarShrink {
    from {
        width: 100%;
    }

    to {
        width: 0;
    }
}

/* ─── Inline notice panels (alert override – app-notify style) ─ */
.alert {
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.55;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-right: 4px solid transparent;
    padding: 0.875rem 1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.10), 0 1px 4px rgba(15, 23, 42, 0.04);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    position: relative;
    overflow: hidden;
}

.alert::before {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.alert-info {
    background: #f8faff;
    border-color: rgba(0, 0, 0, 0.06);
    border-right-color: #2563eb;
    color: #1e3a8a;
}

.alert-info::before {
    content: "ℹ";
    background: #dbeafe;
    color: #2563eb;
}

.alert-warning {
    background: #fffef5;
    border-color: rgba(0, 0, 0, 0.06);
    border-right-color: #d97706;
    color: #78350f;
}

.alert-warning::before {
    content: "⚠";
    background: #fef3c7;
    color: #d97706;
}

.alert-danger {
    background: #fffafa;
    border-color: rgba(0, 0, 0, 0.06);
    border-right-color: #dc2626;
    color: #7f1d1d;
}

.alert-danger::before {
    content: "!";
    background: #fee2e2;
    color: #dc2626;
}

.alert-success {
    background: #fafffe;
    border-color: rgba(0, 0, 0, 0.06);
    border-right-color: #16a34a;
    color: #14532d;
}

.alert-success::before {
    content: "✓";
    background: #dcfce7;
    color: #16a34a;
}

.alert-light {
    background: #f8fafc;
    border-color: #e2e8f0;
    border-right-color: #cbd5e1;
    color: #475569;
}

.alert-light::before {
    content: "ℹ";
    background: #e2e8f0;
    color: #64748b;
}

.app-inline-note {
    position: relative;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.65;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-right: 4px solid transparent;
    padding-block: 0.95rem;
    padding-inline-start: 4rem;
    padding-inline-end: 1rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08), 0 1px 4px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.app-inline-note::before {
    position: absolute;
    top: 0.95rem;
    inset-inline-start: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.app-inline-note-info {
    background: #f8faff;
    border-color: rgba(0, 0, 0, 0.06);
    border-right-color: #2563eb;
    color: #1e3a8a;
}

.app-inline-note-info::before {
    content: "ℹ";
    background: #dbeafe;
    color: #2563eb;
}

.app-inline-note-warning {
    background: #fffef5;
    border-color: rgba(0, 0, 0, 0.06);
    border-right-color: #d97706;
    color: #78350f;
}

.app-inline-note-warning::before {
    content: "⚠";
    background: #fef3c7;
    color: #d97706;
}

.app-inline-note-danger {
    background: #fffafa;
    border-color: rgba(0, 0, 0, 0.06);
    border-right-color: #dc2626;
    color: #7f1d1d;
}

.app-inline-note-danger::before {
    content: "!";
    background: #fee2e2;
    color: #dc2626;
}

.app-inline-note-success {
    background: #fafffe;
    border-color: rgba(0, 0, 0, 0.06);
    border-right-color: #16a34a;
    color: #14532d;
}

.app-inline-note-success::before {
    content: "✓";
    background: #dcfce7;
    color: #16a34a;
}

.app-inline-note-muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    border-right-color: #cbd5e1;
    color: #475569;
}

.app-inline-note-muted::before {
    content: "ℹ";
    background: #e2e8f0;
    color: #64748b;
}

[data-theme="dark"] .app-inline-note {
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow: 0 4px 18px rgba(2, 6, 23, 0.35), 0 1px 4px rgba(2, 6, 23, 0.2);
}

[data-theme="dark"] .app-inline-note-info {
    background: rgba(30, 64, 175, 0.18);
    color: #bfdbfe;
}

[data-theme="dark"] .app-inline-note-warning {
    background: rgba(146, 64, 14, 0.18);
    color: #fde68a;
}

[data-theme="dark"] .app-inline-note-danger {
    background: rgba(127, 29, 29, 0.2);
    color: #fecaca;
}

[data-theme="dark"] .app-inline-note-success {
    background: rgba(20, 83, 45, 0.18);
    color: #bbf7d0;
}

[data-theme="dark"] .app-inline-note-muted {
    background: rgba(51, 65, 85, 0.45);
    color: #cbd5e1;
}

/* ─── Confirm action modal ─────────────────────────────────── */
.app-confirm-modal {
    border-radius: 20px;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.app-confirm-modal .app-confirm-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: #92400e;
    line-height: 1;
}

.app-confirm-modal .app-confirm-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.app-confirm-modal .app-confirm-message {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-confirm-modal .app-confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.app-confirm-modal .app-confirm-actions .btn {
    min-width: 90px;
}

html,
body {
    height: 100%;
    direction: rtl;
    background: var(--bg);
}

body {
    min-height: 100vh;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    font-family: 'JF Flat Regular', 'Tajawal', 'DIN Next LT Arabic', 'DINNextLTArabic', Tahoma, Arial, sans-serif;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 1240px;
}

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

main {
    flex: 1 0 auto;
}

.app-footer {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
    overflow-wrap: anywhere;
}

.app-footer .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.app-footer-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    color: var(--muted);
}

/* Notification icons in header - compact modern style */
.notification-icons {
    gap: 8px;
}

.icon-pill {
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.12s, transform 0.08s;
}

.icon-pill:hover {
    background: rgba(0, 0, 0, 0.04);
}

.nav-icon-small {
    width: 20px;
    height: 20px;
    display: block;
}

@media (max-width: 767px) {

    .nav-icon-small {
        width: 18px;
        height: 18px;
    }
}

.home-mini-stat-primary strong {
    color: #2563eb;
}

.home-mini-stat-success strong {
    color: #16a34a;
}

.home-mini-stat-info strong {
    color: #0ea5e9;
}

.home-mini-stat-warning strong {
    color: #d97706;
}

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


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

.quick-link-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4fb;
}

.quick-link-card-blue strong {
    color: #2563eb;
}

.quick-link-card-green strong {
    color: #16a34a;
}

.quick-link-card-dark strong {
    color: #0f172a;
}

.quick-link-card-cyan strong {
    color: #0891b2;
}

.compact-metric-primary strong {
    color: #2563eb;
}

.compact-metric-success strong {
    color: #16a34a;
}

.compact-metric-info strong {
    color: #0ea5e9;
}

.compact-metric-warning strong {
    color: #d97706;
}

.app-shell-container {
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(14px, 2.2vw, 36px);
}

.nav-link-icon,
.user-menu-toggle,
.user-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-icon,
.menu-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.icon-only-trigger {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    position: relative;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

a,
button,
.btn,
.dropdown-item,
.nav-link,
.page-link,
.app-sidebar-link,
.notif-dd-row,
.user-menu-link,
.icon-only-trigger {
    -webkit-tap-highlight-color: transparent;
}

.icon-only-trigger:hover,
.icon-only-trigger:focus {
    background: var(--t-surface-hover, #eef7ff);
}

.icon-only-trigger::before {
    content: none;
}

.icon-only-trigger:hover::before,
.icon-only-trigger:focus::before {
    opacity: 0;
}

.user-menu-toggle {
    border: 0;
    background: var(--t-surface-soft, #f8fafc);
    color: var(--t-text, #1f2937);
    border-radius: 999px;
    transition: background 0.2s ease;
}

.user-menu-toggle:hover,
.user-menu-toggle:focus {
    background: var(--t-surface-hover, #eef7ff);
}

.user-menu {
    position: relative;
}

.user-menu-panel {
    min-width: min(320px, calc(100vw - 28px));
    max-width: min(420px, calc(100vw - 28px));
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    margin-top: 2px;
    inset: calc(100% + 2px) auto auto 0 !important;
    z-index: 5000;
}

.user-menu-panel .dropdown-item,
.user-menu-detail-row {
    white-space: normal;
    word-break: break-word;
}

.icon-only-trigger.dropdown-toggle::after {
    display: none;
}

.user-menu-header {
    padding: 10px 12px 8px;
}

.user-menu-link {
    border-radius: 10px;
    padding: 10px 12px;
}

.user-menu-detail-list {
    display: grid;
    gap: 8px;
    padding: 6px 10px 10px;
}

.user-menu-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--t-detail-bg, #f8fafc);
    color: var(--t-text-secondary, #334155);
}

.user-menu-detail-row span {
    color: #64748b;
    font-size: 0.9rem;
}

.user-menu-panel .dropdown-divider {
    margin: 0.4rem 0;
}

.notification-bell-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-bell-trigger,
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: 0 0 44px;
    border-radius: var(--t-input-radius, 8px);
    border: 1px solid rgba(214, 223, 234, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.notification-bell-trigger:hover,
.notification-bell-trigger:focus-visible,
.theme-toggle-btn:hover,
.theme-toggle-btn:focus-visible {
    background: var(--t-surface-hover, #f8fbff);
    border-color: var(--t-border-strong, rgba(147, 197, 253, 0.95));
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12), 0 0 0 3px rgba(125, 211, 252, 0.12);
}

.theme-toggle-btn {
    color: #c9831b;
    background: linear-gradient(180deg, rgba(255, 249, 235, 0.98), rgba(255, 241, 214, 0.94));
    border-color: rgba(245, 158, 11, 0.22);
}

.theme-toggle-btn[data-theme-state="dark"] {
    color: #ffbf66;
}

.theme-toggle-btn[data-theme-state="light"] {
    color: #d97706;
}

.theme-toggle-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.theme-toggle-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.notification-bell-trigger .nav-icon-small {
    width: 16px;
    height: 16px;
    opacity: 0.92;
}

.notification-bell-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.67rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    position: absolute;
    top: -5px;
    inset-inline-start: -5px;
    box-shadow: 0 0 0 2px #fff;
}

/* ─── Notification Dropdown (flat design) ─────────────────── */
.notif-dd {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    inset-inline-start: auto;
    width: min(340px, calc(100vw - 16px));
    min-width: min(300px, calc(100vw - 16px));
    max-width: min(360px, calc(100vw - 16px));
    max-height: min(65vh, 460px);
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    padding: 0;
    border: 1px solid var(--t-dropdown-border, rgba(226, 232, 240, 0.88));
    border-radius: 16px;
    background: var(--t-dropdown-bg, #fff);
    box-shadow: var(--t-dropdown-shadow, 0 12px 36px rgba(15, 23, 42, 0.13), 0 2px 8px rgba(15, 23, 42, 0.06));
    margin-top: 0;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.notif-dd.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.notif-dd:not(.show) {
    display: none !important;
}

.notif-dd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.notif-dd-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
}

.notif-dd-viewall {
    font-size: 0.72rem;
    font-weight: 600;
    color: #3b82f6;
    text-decoration: none;
}

.notif-dd-viewall:hover {
    color: #2563eb;
}

.notif-dd-body {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    padding: 4px 0;
}

.notif-dd-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    transition: background 0.15s ease;
    position: relative;
}

.notif-dd-row:hover {
    background: var(--t-dropdown-hover, #f8fafc);
}

.notif-dd-row:focus,
.notif-dd-row:active {
    background: var(--t-dropdown-hover, #f8fafc);
    outline: none;
}

.notif-dd-row+.notif-dd-row {
    border-top: 1px solid rgba(226, 232, 240, 0.45);
}

/* Colored icon circle */
.notif-dd-ic {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-dd-ic img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.notif-ic-red {
    background: #dc2626;
}

.notif-ic-green {
    background: #059669;
}

.notif-ic-blue {
    background: #3b82f6;
}

.notif-ic-purple {
    background: #7c3aed;
}

/* Unread blue dot */
.notif-dd-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background: #3b82f6;
    flex-shrink: 0;
}

.notif-dd-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.notif-dd-name {
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-dd-time {
    color: #94a3b8;
    font-size: 0.68rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.notif-dd-foot {
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    padding: 10px 16px;
    text-align: center;
}

.notif-dd-foot a {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notif-dd-foot a:hover {
    color: #3b82f6;
}

.notif-dd-foot-ic {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* Empty state */
.notif-dd-empty {
    padding: 32px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.notif-dd-empty-bell {
    width: 44px;
    height: 44px;
    opacity: 0.22;
    margin-bottom: 4px;
}

.notif-dd-empty-msg {
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
}

.notif-dd-empty-sub {
    color: #94a3b8;
    font-size: 0.7rem;
    line-height: 1.5;
}

.user-menu-link:hover {
    background: var(--t-dropdown-hover, #f4f7fb);
}

@media (max-width: 991.98px) {

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

    .app-footer .container-fluid {
        justify-content: center;
        text-align: center;
    }

    .user-menu-panel {
        min-width: min(92vw, 320px);
        max-width: calc(100vw - 20px);
        width: calc(100vw - 20px);
        inset: calc(100% + 8px) auto auto 0 !important;
    }

    .notif-dd {
        width: calc(100vw - 16px);
        min-width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: min(70vh, 460px);
        border-radius: 12px;
        top: calc(100% + 6px);
        inset-inline-end: 0;
        inset-inline-start: auto;
        transform-origin: top center;
    }
}

/* Card */
.app-card-surface,
.card-permit,
.card-visit {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
}

.card-permit-compact {
    max-width: 760px;
}

.app-form-surface {
    padding: 16px;
}

.app-dashboard-surface {
    padding: 14px;
}

.app-filter-panel {
    padding: 14px;
}

.card-permit .title,
.card-visit .title {
    font-weight: 700;
    font-size: 1.05rem;
}

.card-permit .meta,
.card-visit .meta {
    color: var(--muted);
    font-size: 0.95rem;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.status-green {
    background: var(--status-active);
}

.status-red {
    background: var(--status-expired);
}

.status-yellow {
    background: var(--status-temporary);
    color: #111;
}

.status-blue {
    background: var(--status-permanent);
}

/* Tables */
.table thead th {
    background: var(--t-table-head-bg, #f1f5f9);
}

.table tbody tr {
    background: var(--card-bg);
}

/* QR image sizing */
.qr-img {
    width: 110px;
    height: 110px;
    border-radius: 6px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Print-friendly badge */
@media print {
    body {
        background: #fff;
    }

    .navbar,
    .footer {
        display: none;
    }

    .app-card-surface,
    .card-permit,
    .card-visit {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Small utilities */
.text-muted-ar {
    color: var(--muted)
}

/* Ensure RTL form alignment */
.form-control {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

.form-select {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

.app-main-surface .table,
.app-main-surface .table-responsive .table {
    font-size: 0.75rem;
    line-height: 1.45;
    font-weight: 400;
}

.app-main-surface .table> :not(caption)>*>* {
    padding: 0.55rem 0.7rem;
}

.app-main-surface .table thead th {
    font-size: 0.69rem;
    font-weight: 500;
    white-space: nowrap;
}

.app-main-surface .table td,
.app-main-surface .table th {
    vertical-align: middle;
}

.app-main-surface .table-responsive {
    border-radius: 12px;
}

.app-main-surface .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.app-main-surface .form-control,
.app-main-surface .form-select {
    min-height: 38px;
    padding: 0.38rem 0.7rem;
    font-size: 0.86rem;
    border-radius: var(--t-input-radius, 16px);
}

.app-main-surface textarea.form-control {
    min-height: 92px;
}

.app-main-surface .input-group-text {
    padding: 0.38rem 0.7rem;
    font-size: 0.82rem;
    border-radius: var(--t-input-radius, 16px);
}

.app-main-surface .btn {
    min-height: 36px;
    padding: 0.38rem 0.82rem;
    font-size: 0.82rem;
    border-radius: 10px;
    line-height: 1.1;
}

.app-main-surface .btn-sm {
    min-height: 30px;
    padding: 0.28rem 0.65rem;
    font-size: 0.76rem;
    border-radius: 9px;
}

.ltr-field {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

input[type="datetime-local"] {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

input {
    direction: rtl;
    text-align: right;
    unicode-bidi: plaintext;
}

