html, body, select, input, textarea {
    color-scheme: light !important;
}

@font-face {
    font-family: 'Cairo';
    src: url('/fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/fonts/Cairo-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/fonts/Cairo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/fonts/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/fonts/Cairo-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/fonts/Cairo-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('/fonts/Cairo-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

/* ═══════════════════════════════════════════════
   الثيم العام — عاجي طبي وأمبر لؤلؤي دافئ (Ivory Dental Theme)
   ═══════════════════════════════════════════════ */

:root {
    /* لوحة الألوان */
    --dc-sky-50:  #FDFBF7;
    --dc-sky-100: #F6F0E6;
    --dc-sky-200: #EAE2D5;
    --dc-sky-500: #7D6E60;
    --dc-sky-600: #8C6033;
    --dc-sky-700: #8C6033;
    --dc-sky-900: #754E26;

    /* النصوص */
    --dc-ink:      #2C241E;
    --dc-ink-soft: #473C33;
    --dc-muted:    #7D6E60;
    --dc-faint:    #A89A8B;

    /* الأسطح والحدود */
    --dc-surface:     #FFFFFF;
    --dc-canvas:      #FDFBF7;
    --dc-line:        #EAE2D5;
    --dc-line-strong: #D8CEBD;

    /* أدوار دلالية */
    --dc-accent:      var(--dc-sky-600);
    --dc-accent-soft: var(--dc-sky-100);
    --dc-focus:       rgba(140, 96, 51, 0.25);

    /* ألوان Bootstrap */
    --bs-blue: #7D6E60;
    --bs-primary: #8C6033;
    --bs-primary-rgb: 140, 96, 51;
    --bs-secondary: #8C6033;
    --bs-secondary-rgb: 125, 110, 96;
    --bs-link-color: #8C6033;
    --bs-link-color-rgb: 140, 96, 51;
    --bs-link-hover-color: #8C6033;
    --bs-link-hover-color-rgb: 117, 78, 38;
    --bs-focus-ring-color: rgba(140, 96, 51, 0.25);
    --bs-focus-ring-width: 0.25rem;
    --bs-border-color: #EAE2D5;
    --bs-body-color: #2C241E;
    --bs-body-bg: #FFFFFF;
    --bs-emphasis-color: #2C241E;
}

html, body {
    font-family: 'Cairo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--dc-ink);
    background: var(--dc-canvas);
}

/* ═══ الروابط ═══ */
a, .btn-link {
    color: var(--dc-sky-600);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover, .btn-link:hover {
    color: var(--dc-sky-700);
    text-decoration: underline;
}

a:focus, .btn-link:focus {
    color: var(--dc-sky-700);
    outline: 2px solid var(--dc-sky-500);
    outline-offset: 2px;
    text-decoration: none;
}

/* ═══ التناسب مع مقاسات الشاشات ═══
   من لابتوب 14 بوصة (1366×768) حتى شاشة 24 بوصة (1920×1080) وما بعدها.
   قواعد عامة حتى تسري على الصفحات التي تعرّف تنسيقاتها داخل مكوّناتها. */

@media (min-width: 1600px) {
    .container, .container-fluid, .container-lg, .container-xl {
        max-width: 1560px;
        margin-inline: auto;
    }
}

@media (max-width: 1366px) {
    html { font-size: 15px; }
}

@media (max-width: 1100px) {
    html { font-size: 14.5px; }
}

@media (max-width: 900px) {
    html { font-size: 14px; }
}

@media (max-width: 768px) {
    .table-responsive, .clinical-table-wrap, .plan-table-wrap, .lines-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table { font-size: 0.92rem; }

    .row > [class*='col-'] { margin-bottom: 0.75rem; }
}

@media (max-width: 576px) {
    html { font-size: 13.5px; }

    h1, .h1 { font-size: 1.45rem; }
    h2, .h2 { font-size: 1.25rem; }
    h3, .h3 { font-size: 1.1rem; }

    .card, .clinical-card { border-radius: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

a:active, .btn-link:active {
    color: #5E3D1C;
}

a.active, .nav-link.active {
    color: #2C241E !important;
    font-weight: 700;
}

/* ═══ Buttons — Primary ═══ */
.btn-primary {
    color: #ffffff;
    background-color: #8C6033;
    border-color: #8C6033;
    transition: all 0.15s;
}

.btn-primary:hover {
    color: #ffffff;
    background-color: #5E3D1C;
    border-color: #5E3D1C;
}

.btn-primary:focus,
.btn-primary.focus {
    color: #ffffff;
    background-color: #5E3D1C;
    border-color: #5E3D1C;
    box-shadow: 0 0 0 0.25rem rgba(140, 96, 51, 0.22);
}

.btn-primary:active,
.btn-primary.active,
.btn-primary:first-child:active,
.show > .btn-primary.dropdown-toggle {
    color: #ffffff !important;
    background-color: #5E3D1C !important;
    border-color: #5E3D1C !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    color: #ffffff;
    background-color: #A89A8B;
    border-color: #A89A8B;
}

/* ═══ Buttons — Outline Primary ═══ */
.btn-outline-primary {
    color: #2C241E;
    border-color: #8C6033;
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    color: #ffffff !important;
    background-color: #8C6033 !important;
    border-color: #8C6033 !important;
    box-shadow: 0 0 0 0.25rem rgba(140, 96, 51, 0.22);
}

/* ═══ Buttons — Secondary ═══ */
.btn-secondary {
    color: #2C241E;
    background-color: #F6F0E6;
    border-color: #D8CEBD;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    color: #2C241E !important;
    background-color: #EAE2D5 !important;
    border-color: #D8CEBD !important;
    box-shadow: 0 0 0 0.25rem rgba(115, 115, 115, 0.15);
}

/* ═══ All buttons focus ring — gray ═══ */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #A89A8B;
    outline: none;
}

/* ═══ Inputs / Textareas / Selects ═══ */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="search"],
textarea,
select {
    color: #2C241E;
    background-color: #ffffff;
    border-color: #D8CEBD;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    color: #2C241E;
    background-color: #ffffff;
    border-color: #8C6033;
    box-shadow: 0 0 0 0.25rem rgba(115, 115, 115, 0.12);
    outline: none;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
    color: #A89A8B;
}

/* ═══ Checkboxes & Radios ═══ */
.form-check-input:checked {
    background-color: #8C6033;
    border-color: #8C6033;
}

.form-check-input:focus {
    border-color: #8C6033;
    box-shadow: 0 0 0 0.25rem rgba(115, 115, 115, 0.15);
}

.form-check-input:active {
    filter: brightness(90%);
}

/* ═══ Selects ═══ */
select,
select option {
    color: #2C241E !important;
    background-color: #ffffff !important;
}

select option {
    padding: 8px 12px;
}

select option:checked {
    background: #8C6033 linear-gradient(0deg, #8C6033 0%, #8C6033 100%) !important;
    color: #ffffff !important;
}

@-moz-document url-prefix() {
    select,
    select option {
        color: #2C241E !important;
        background-color: #ffffff !important;
    }
}

/* ═══ Global focus outline — kill blue everywhere ═══ */
*:focus {
    outline-color: #8C6033;
}

*:focus-visible {
    outline-color: #8C6033;
}

/* ═══ Selection highlight — High Contrast Inverse ═══ */
::selection, *::selection {
    background-color: #8C6033 !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
}

::-moz-selection, *::-moz-selection {
    background-color: #8C6033 !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
}

/* ═══ Validation ═══ */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #754E26;
}

.invalid {
    outline: 1px solid #8C6033;
}

.validation-message {
    color: #2C241E;
    font-weight: 600;
}

/* ═══ Content / Headings ═══ */
.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

/* ═══ Error boundary ═══ */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #8C6033;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #ffffff;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* ═══ Misc ═══ */
.darker-border-checkbox.form-check-input {
    border-color: #A89A8B;
}

/* ═══ Kill any remaining default blue link states ═══ */
*:any-link:active,
*:any-link:focus,
a:-webkit-any-link {
    color: #2C241E;
}

/* ═══ Alert classes (Bootstrap) — gray shades ═══ */
.alert-primary {
    color: #2C241E;
    background-color: #F6F0E6;
    border-color: #D8CEBD;
}

.alert-info {
    color: #473C33;
    background-color: #FDFBF7;
    border-color: #D8CEBD;
}

/* ═══ Badge ═══ */
.badge.bg-primary {
    background-color: #8C6033 !important;
}

.badge.bg-secondary {
    background-color: #754E26 !important;
}

/* ═══ Progress bar ═══ */
.progress-bar {
    background-color: #8C6033;
}

/* ═══ Pagination ═══ */
.page-link {
    color: #473C33;
}

.page-link:hover {
    color: #2C241E;
    background-color: #F6F0E6;
}

.page-item.active .page-link {
    background-color: #8C6033;
    border-color: #8C6033;
    color: #ffffff;
}

.page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(140, 96, 51, 0.22);
}

.icon {
    display: inline-block;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

.nav-icon .icon {
    width: 19px;
    height: 19px;
}

:root { --ui-scale: 1; }

.content-area {
    zoom: var(--ui-scale, 1);
}

@media print {
    .content-area { zoom: 1; }
}


.table-wrap,
.table-container,
.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
    .range-tabs,
    .filter-tabs,
    .tabs,
    .settings-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        padding-bottom: 4px !important;
        max-width: 100% !important;
    }

    .range-tabs::-webkit-scrollbar,
    .filter-tabs::-webkit-scrollbar,
    .tabs::-webkit-scrollbar,
    .settings-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .range-btn,
    .filter-btn,
    .tab,
    .settings-tab {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .content-area {
        padding: 16px 20px !important;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 14px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .form-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .modal-box,
    .modal-content,
    .action-modal-box {
        width: 85vw !important;
        max-width: 600px !important;
    }
}

@media (max-width: 640px) {
    .page-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .header-actions {
        width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .header-actions > * {
        flex: 1 !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .search-box {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .form-actions {
        flex-direction: column !important;
        padding: 14px 16px !important;
    }

    .form-actions button,
    .form-actions a {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .modal-overlay {
        padding: 8px !important;
    }

    .modal-box,
    .modal-content,
    .action-modal-box {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 8px auto !important;
    }

    .cards-grid {
        grid-template-columns: 1fr !important;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   IVORY DENTAL DESIGN SYSTEM (الأبيض العاجي ودرجاته والدرجات المتوافقة)
   ========================================================================== */
body {
    background-color: #FDFBF7 !important;
    color: #2C241E !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #2C241E !important;
}

/* 1. Icons in DentalCenter */
.icon {
    color: #8C6033;
    fill: currentColor;
    display: inline-block;
    vertical-align: -0.15em;
    flex-shrink: 0;
}

.btn-primary .icon,
.badge-primary .icon,
.nav-item.active .icon,
.btn-dark .icon {
    color: #ffffff !important;
}

/* 2. Global Buttons */
.btn-primary {
    background-color: #8C6033 !important;
    border-color: #8C6033 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(140, 96, 51, 0.25) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #754E26 !important;
    border-color: #754E26 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(117, 78, 38, 0.35) !important;
}

.btn-outline-primary {
    color: #8C6033 !important;
    border-color: #8C6033 !important;
    background-color: transparent !important;
}

.btn-outline-primary:hover {
    background-color: #8C6033 !important;
    color: #ffffff !important;
}

/* 3. Links & Accents */
a, .btn-link {
    color: #8C6033;
}
.text-primary {
    color: #8C6033 !important;
}

a:hover, .btn-link:hover {
    color: #754E26 !important;
}

/* 4. Form Controls */
.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus {
    border-color: #8C6033 !important;
    box-shadow: 0 0 0 0.25rem rgba(140, 96, 51, 0.22) !important;
}

/* 5. Cards & Headers */
.card-header {
    background-color: #F6F0E6 !important;
    border-bottom: 1px solid #EAE2D5 !important;
    color: #2C241E !important;
    font-weight: 700 !important;
}

/* 6. Tables */
.table thead th, .table th {
    background-color: #F6F0E6 !important;
    color: #473C33 !important;
    border-bottom: 2px solid #EAE2D5 !important;
}

.table tbody tr:hover {
    background-color: #F8F4EC !important;
}

/* 7. Badges */
.badge.bg-primary, .badge-primary {
    background-color: #8C6033 !important;
    color: #ffffff !important;
}


/* ==========================================================================
   HIGH-CONTRAST SELECTION & ACTIVE STATES (عكس لون الخط مع لون التحديد دائماً)
   ========================================================================== */

::selection, *::selection {
    background-color: #8C6033 !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
}

::-moz-selection, *::-moz-selection {
    background-color: #8C6033 !important;
    color: #FFFFFF !important;
    text-shadow: none !important;
}

/* Any Active or Selected Container: Every child element flips to pure white */
.active,
.selected,
[aria-selected="true"],
.nav-item.active,
.tab.active,
.filter-btn.active,
.range-btn.active,
.nav-pills .nav-link.active,
.dropdown-item.active,
.dropdown-item:active,
.list-group-item.active,
.pagination .page-item.active .page-link,
.page-link.active,
.btn-primary,
.badge-primary,
.btn-check:checked + .btn {
    background-color: #8C6033 !important;
    border-color: #8C6033 !important;
    color: #FFFFFF !important;
}

/* Force ALL child elements inside active/selected containers to pure white */
.active *,
.selected *,
[aria-selected="true"] *,
.nav-item.active *,
.tab.active *,
.filter-btn.active *,
.range-btn.active *,
.nav-pills .nav-link.active *,
.dropdown-item.active *,
.dropdown-item:active *,
.list-group-item.active *,
.pagination .page-item.active .page-link *,
.page-link.active *,
.btn-primary *,
.badge-primary *,
.btn-check:checked + .btn * {
    color: #FFFFFF !important;
}

/* Ensure icons inside active/selected containers are pure white */
.active .icon,
.selected .icon,
[aria-selected="true"] .icon,
.nav-item.active .icon,
.tab.active .icon,
.filter-btn.active .icon,
.btn-primary .icon,
.badge-primary .icon,
.btn-check:checked + .btn .icon {
    color: #FFFFFF !important;
    fill: currentColor !important;
}

/* Table Rows when Selected or Active */
table tbody tr.selected,
table tbody tr.active,
table tbody tr.selected td,
table tbody tr.active td {
    background-color: #8C6033 !important;
    color: #FFFFFF !important;
}

table tbody tr.selected td *,
table tbody tr.active td * {
    color: #FFFFFF !important;
}

/* Dropdowns & Select Options */
select option:checked,
select option:hover,
select option:focus {
    background: #8C6033 linear-gradient(0deg, #8C6033 0%, #8C6033 100%) !important;
    color: #FFFFFF !important;
}

/* Highlight & Mark */
mark, .highlight, .search-match {
    background-color: #8C6033 !important;
    color: #FFFFFF !important;
    padding: 0 4px;
    border-radius: 4px;
}


/* ==========================================================================
   BUTTON LINKS & ACTION CONTRAST (ضمان ظهور نصوص الأزرار بلون أبيض ناصع دائماً)
   ========================================================================== */
.btn-primary,
a.btn-primary,
button.btn-primary,
.btn-add,
a.btn-add,
.btn-primary-sm,
a.btn-primary-sm,
.chart-link,
a.chart-link,
.action-primary,
a.action-primary,
.action-book,
a.action-book,
.btn-report,
a.btn-report,
.btn-prescription,
a.btn-prescription,
.btn-pdf,
a.btn-pdf,
.btn-pdf-sm,
a.btn-pdf-sm,
.pdf-btn,
a.pdf-btn,
.btn-edit,
a.btn-edit,
.btn-open,
a.btn-open,
.btn-sm.btn-primary,
a.btn-sm.btn-primary {
    background-color: #8C6033 !important;
    border-color: #8C6033 !important;
    color: #FFFFFF !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(140, 96, 51, 0.25) !important;
}

.btn-primary *,
a.btn-primary *,
button.btn-primary *,
.btn-add *,
a.btn-add *,
.btn-primary-sm *,
a.btn-primary-sm *,
.chart-link *,
a.chart-link *,
.action-primary *,
a.action-primary *,
.action-book *,
a.action-book *,
.btn-report *,
a.btn-report *,
.btn-prescription *,
a.btn-prescription *,
.btn-pdf *,
a.btn-pdf *,
.btn-pdf-sm *,
a.btn-pdf-sm *,
.pdf-btn *,
a.pdf-btn *,
.btn-edit *,
a.btn-edit *,
.btn-open *,
a.btn-open * {
    color: #FFFFFF !important;
    fill: currentColor !important;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover,
.btn-add:hover,
a.btn-add:hover,
.btn-primary-sm:hover,
a.btn-primary-sm:hover,
.chart-link:hover,
a.chart-link:hover,
.action-primary:hover,
a.action-primary:hover,
.action-book:hover,
a.action-book:hover,
.btn-report:hover,
a.btn-report:hover,
.btn-prescription:hover,
a.btn-prescription:hover,
.btn-pdf:hover,
a.btn-pdf:hover,
.btn-pdf-sm:hover,
a.btn-pdf-sm:hover,
.pdf-btn:hover,
a.pdf-btn:hover,
.btn-edit:hover,
a.btn-edit:hover,
.btn-open:hover,
a.btn-open:hover,
.btn-sm.btn-primary:hover,
a.btn-sm.btn-primary:hover {
    background-color: #754E26 !important;
    border-color: #754E26 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(117, 78, 38, 0.35) !important;
}

.btn-primary:hover *,
a.btn-primary:hover *,
button.btn-primary:hover *,
.btn-add:hover *,
a.btn-add:hover *,
.btn-primary-sm:hover *,
a.btn-primary-sm:hover *,
.chart-link:hover *,
a.chart-link:hover *,
.action-primary:hover *,
a.action-primary:hover *,
.action-book:hover *,
a.action-book:hover *,
.btn-report:hover *,
a.btn-report:hover *,
.btn-prescription:hover *,
a.btn-prescription:hover *,
.btn-pdf:hover *,
a.btn-pdf:hover *,
.btn-pdf-sm:hover *,
a.btn-pdf-sm:hover *,
.pdf-btn:hover *,
a.pdf-btn:hover *,
.btn-edit:hover *,
a.btn-edit:hover *,
.btn-open:hover *,
a.btn-open:hover *,
.btn-sm.btn-primary:hover *,
a.btn-sm.btn-primary:hover * {
    color: #FFFFFF !important;
    fill: currentColor !important;
}

.btn-secondary,
a.btn-secondary,
.btn-ghost,
a.btn-ghost,
.btn-back,
a.btn-back {
    background-color: #F6F0E6 !important;
    border: 1px solid #D8CEBD !important;
    color: #473C33 !important;
    text-decoration: none !important;
}

.btn-secondary:hover,
a.btn-secondary:hover,
.btn-ghost:hover,
a.btn-ghost:hover,
.btn-back:hover,
a.btn-back:hover {
    background-color: #EAE2D5 !important;
    color: #2C241E !important;
}
