nav.navbar:hover {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

button.button1:hover {
	box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}

div.card {
  width: 100%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  text-align: center;
}


div.cardHeader {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-size: 40px;
}

div.cardContainer {
    padding: 10px;
}


.div-hide {
	display: none;
}

.kv-file-zoom {
	display: none;
}

div.kv-avatar div.file-input div.file-preview {
	width: 200px;
}

/*login form*/
.vertical {
	padding-top: 150px;
	padding-bottom: 150px;
}/* ==========================================================================
   FINE DOORS & INTERIOR
   Inventory Management System
   Global UI / Design System
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {

    /* Brand */
    --fd-primary: #24445f;
    --fd-primary-dark: #19364d;
    --fd-primary-light: #edf4f8;

    /* Accent */
    --fd-accent: #c8955d;
    --fd-accent-light: #f8f0e7;

    /* Status */
    --fd-success: #3f8f70;
    --fd-success-light: #edf7f2;

    --fd-warning: #c58a32;
    --fd-warning-light: #fff7e9;

    --fd-danger: #c45b5b;
    --fd-danger-light: #fdf0f0;

    --fd-info: #4f87a8;
    --fd-info-light: #edf6fa;

    /* Backgrounds */
    --fd-body-bg: #f5f7f9;
    --fd-surface: #ffffff;
    --fd-surface-soft: #fafbfc;

    /* Text */
    --fd-text: #263442;
    --fd-text-secondary: #657381;
    --fd-text-muted: #8b97a3;
    --fd-text-light: #a7b0b8;

    /* Borders */
    --fd-border: #e5e9ed;
    --fd-border-dark: #d8dee4;

    /* Sidebar */
    --fd-sidebar-bg: #1d3448;
    --fd-sidebar-bg-dark: #172b3c;
    --fd-sidebar-text: #cbd7e0;
    --fd-sidebar-muted: #8ea1b0;
    --fd-sidebar-hover: rgba(255, 255, 255, 0.07);
    --fd-sidebar-active: rgba(255, 255, 255, 0.11);

    /* Radius */
    --fd-radius-sm: 8px;
    --fd-radius: 12px;
    --fd-radius-lg: 16px;
    --fd-radius-xl: 20px;

    /* Shadows */
    --fd-shadow-xs:
        0 1px 2px rgba(31, 52, 70, 0.04);

    --fd-shadow-sm:
        0 4px 12px rgba(31, 52, 70, 0.06);

    --fd-shadow:
        0 8px 24px rgba(31, 52, 70, 0.08);

    --fd-shadow-lg:
        0 16px 40px rgba(31, 52, 70, 0.11);

    /* Layout */
    --fd-sidebar-width: 255px;
    --fd-topbar-height: 76px;

    /* Transition */
    --fd-transition:
        180ms ease;

}


/* ==========================================================================
   2. GLOBAL RESET / BASE
   ========================================================================== */

html {
    min-height: 100%;
    background: var(--fd-body-bg);
}

body.fd-app-body {
    min-height: 100vh;
    margin: 0;

    background: var(--fd-body-bg);
    color: var(--fd-text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.55;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


body.fd-app-body *,
body.fd-app-body *::before,
body.fd-app-body *::after {
    box-sizing: border-box;
}


body.fd-app-body a {
    color: inherit;
    text-decoration: none;
}


body.fd-app-body a:hover,
body.fd-app-body a:focus {
    text-decoration: none;
}


body.fd-app-body button,
body.fd-app-body input,
body.fd-app-body select,
body.fd-app-body textarea {
    font-family: inherit;
}


/* Remove old Bootstrap body/container visual interference */

.fd-app-body .container {
    width: auto;
}


/* ==========================================================================
   3. APPLICATION SHELL
   ========================================================================== */

.fd-app-shell {
    min-height: 100vh;
    display: flex;
    background: var(--fd-body-bg);
}


/* ==========================================================================
   4. SIDEBAR
   ========================================================================== */

.fd-sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: var(--fd-sidebar-width);

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            var(--fd-sidebar-bg) 0%,
            var(--fd-sidebar-bg-dark) 100%
        );

    color: var(--fd-sidebar-text);

    z-index: 1100;

    box-shadow:
        8px 0 30px rgba(20, 40, 55, 0.08);
}


/* ==========================================================================
   5. SIDEBAR BRAND
   ========================================================================== */

.fd-brand {
    min-height: 92px;

    display: flex;
    align-items: center;

    padding: 18px 20px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}


.fd-brand-link {
    display: flex;
    align-items: center;

    width: 100%;
}


.fd-brand-mark {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 46px;

    border-radius: 12px;

    background: #ffffff;

    overflow: hidden;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);
}


.fd-brand-mark img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.fd-brand-copy {
    display: flex;
    flex-direction: column;

    margin-left: 12px;

    line-height: 1.15;
}


.fd-brand-copy strong {
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    letter-spacing: -0.2px;
}


.fd-brand-copy small {
    margin-top: 4px;

    color: #aebdca;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.5px;
}


/* ==========================================================================
   6. SIDEBAR SCROLL AREA
   ========================================================================== */

.fd-sidebar-scroll {
    flex: 1;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 16px 12px 20px;

    scrollbar-width: thin;
    scrollbar-color:
        rgba(255, 255, 255, 0.15)
        transparent;
}


.fd-sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}


.fd-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}


.fd-sidebar-scroll::-webkit-scrollbar-thumb {
    background:
        rgba(255, 255, 255, 0.15);

    border-radius: 20px;
}


/* ==========================================================================
   7. SIDEBAR SECTION LABELS
   ========================================================================== */

.fd-nav-label {
    margin: 20px 10px 8px;

    color: var(--fd-sidebar-muted);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.15px;
}


.fd-nav-label:first-child {
    margin-top: 4px;
}


/* ==========================================================================
   8. SIDEBAR NAVIGATION
   ========================================================================== */

.fd-nav {
    margin: 0;
    padding: 0;

    list-style: none;
}


.fd-nav > li {
    margin-bottom: 3px;
}


.fd-nav > li > a,
.fd-nav-toggle {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    min-height: 44px;

    padding: 10px 12px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: var(--fd-sidebar-text);

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background var(--fd-transition),
        color var(--fd-transition),
        transform var(--fd-transition);
}


.fd-nav > li > a:hover,
.fd-nav-toggle:hover {
    background: var(--fd-sidebar-hover);
    color: #ffffff;
}


.fd-nav > li.active > a {
    background: var(--fd-sidebar-active);
    color: #ffffff;

    box-shadow:
        inset 3px 0 0 var(--fd-accent);
}


.fd-nav-link-content {
    display: flex;
    align-items: center;

    min-width: 0;
}


.fd-nav-link-content > i {
    width: 22px;

    margin-right: 10px;

    color: #9fb2c1;

    font-size: 14px;

    text-align: center;

    transition:
        color var(--fd-transition);
}


.fd-nav > li > a:hover .fd-nav-link-content > i,
.fd-nav > li.active > a .fd-nav-link-content > i {
    color: #ffffff;
}


.fd-nav-chevron {
    color: #7f95a6;

    font-size: 10px;

    transition:
        transform var(--fd-transition);
}


.fd-nav-group.is-open
.fd-nav-chevron {
    transform: rotate(180deg);
}


/* ==========================================================================
   9. SIDEBAR SUBNAV
   ========================================================================== */

.fd-subnav {
    display: none;

    margin: 3px 0 7px;
    padding: 3px 0 3px 33px;

    list-style: none;
}


.fd-nav-group.is-open .fd-subnav {
    display: block;
}


.fd-subnav li {
    margin: 2px 0;
}


.fd-subnav a {
    display: flex;
    align-items: center;

    min-height: 37px;

    padding: 8px 10px;

    border-radius: 7px;

    color: #9fb1bf;

    font-size: 12px;

    transition:
        background var(--fd-transition),
        color var(--fd-transition);
}


.fd-subnav a:hover {
    background:
        rgba(255, 255, 255, 0.05);

    color: #ffffff;
}


.fd-subnav a i {
    width: 18px;

    margin-right: 7px;

    font-size: 11px;
}


/* ==========================================================================
   10. SIDEBAR FOOTER
   ========================================================================== */

.fd-sidebar-footer {
    padding: 14px;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);
}


.fd-sidebar-user {
    display: flex;
    align-items: center;

    padding: 9px;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.045);
}


.fd-sidebar-user-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    margin-left: 9px;
}


.fd-sidebar-user-copy strong {
    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.fd-sidebar-user-copy small {
    margin-top: 2px;

    color: #8fa3b2;

    font-size: 10px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================================
   11. MAIN AREA
   ========================================================================== */

.fd-main {
    min-width: 0;

    width: calc(
        100% - var(--fd-sidebar-width)
    );

    margin-left: var(--fd-sidebar-width);

    min-height: 100vh;
}


/* ==========================================================================
   12. TOPBAR
   ========================================================================== */

.fd-topbar {
    position: sticky;

    top: 0;

    min-height: var(--fd-topbar-height);

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background:
        rgba(255, 255, 255, 0.94);

    border-bottom:
        1px solid var(--fd-border);

    backdrop-filter: blur(14px);

    z-index: 900;
}


.fd-topbar-left,
.fd-topbar-actions {
    display: flex;
    align-items: center;
}


.fd-topbar-context {
    display: flex;
    flex-direction: column;

    margin-left: 14px;
}


.fd-topbar-kicker {
    color: var(--fd-text-muted);

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.9px;
}


.fd-topbar-context strong {
    margin-top: 2px;

    color: var(--fd-text);

    font-size: 14px;
    font-weight: 700;
}


/* ==========================================================================
   13. ICON BUTTONS
   ========================================================================== */

.fd-icon-btn {
    position: relative;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--fd-border);
    border-radius: 10px;

    background: #ffffff;

    color: var(--fd-text-secondary);

    cursor: pointer;

    transition:
        background var(--fd-transition),
        color var(--fd-transition),
        border-color var(--fd-transition),
        box-shadow var(--fd-transition);
}


.fd-icon-btn:hover {
    background: var(--fd-primary-light);

    border-color:
        #d7e2e9;

    color: var(--fd-primary);

    box-shadow:
        var(--fd-shadow-xs);
}


.fd-mobile-toggle {
    display: none;
}


/* ==========================================================================
   14. USER MENU
   ========================================================================== */

.fd-user-menu {
    display: flex;
    align-items: center;

    min-height: 48px;

    padding: 4px 8px 4px 5px;

    border: 0;
    border-radius: 12px;

    background: transparent;

    cursor: pointer;

    transition:
        background var(--fd-transition);
}


.fd-user-menu:hover {
    background: var(--fd-surface-soft);
}


.fd-user-copy {
    display: flex;
    flex-direction: column;

    min-width: 0;

    margin: 0 10px;

    text-align: left;
}


.fd-user-copy strong {
    color: var(--fd-text);

    font-size: 12px;
    font-weight: 650;
}


.fd-user-copy small {
    margin-top: 1px;

    color: var(--fd-text-muted);

    font-size: 10px;
}


.fd-user-menu > i {
    color: var(--fd-text-muted);

    font-size: 10px;
}


/* ==========================================================================
   15. AVATARS
   ========================================================================== */

.fd-avatar {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    border-radius: 11px;

    background:
        var(--fd-primary-light);

    color: var(--fd-primary);

    font-size: 14px;
}


.fd-avatar-sm {
    width: 32px;
    height: 32px;

    flex-basis: 32px;

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.08);

    color: #d6e0e7;

    font-size: 12px;
}


.fd-avatar-table {
    width: 30px;
    height: 30px;

    flex-basis: 30px;

    border-radius: 8px;

    font-size: 11px;
}


/* ==========================================================================
   16. TOPBAR DROPDOWNS
   ========================================================================== */

.fd-topbar-dropdown {
    position: relative;
}


.fd-dropdown-toggle {
    cursor: pointer;
}


.fd-dropdown-menu {
    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    display: none;

    min-width: 220px;

    padding: 8px;

    background: #ffffff;

    border:
        1px solid var(--fd-border);

    border-radius: 12px;

    box-shadow:
        var(--fd-shadow-lg);

    z-index: 1500;
}


.fd-topbar-dropdown.is-open
.fd-dropdown-menu {
    display: block;
}


.fd-user-dropdown {
    min-width: 190px;
}


.fd-user-dropdown > a {
    display: flex;
    align-items: center;

    padding: 10px 11px;

    border-radius: 8px;

    color: var(--fd-text-secondary);

    font-size: 12px;

    transition:
        background var(--fd-transition),
        color var(--fd-transition);
}


.fd-user-dropdown > a:hover {
    background:
        var(--fd-primary-light);

    color: var(--fd-primary);
}


.fd-user-dropdown > a i {
    width: 20px;

    margin-right: 8px;

    text-align: center;
}


/* ==========================================================================
   17. NOTIFICATION BELL
   ========================================================================== */

#navNotifications {
    margin-right: 8px;
}


#navNotifications
.fd-icon-btn {
    border-color: transparent;
    background: transparent;
}


#navNotifications
.fd-icon-btn:hover {
    background: var(--fd-primary-light);
}


.fd-notification-badge {
    position: absolute;

    top: 2px;
    right: 2px;

    min-width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 4px;

    border: 2px solid #ffffff;
    border-radius: 20px;

    background: var(--fd-danger);

    color: #ffffff;

    font-size: 8px;
    font-weight: 700;

    line-height: 1;
}


.fd-notification-menu {
    width: 350px;
    max-width: calc(100vw - 30px);

    max-height: 430px;

    overflow-y: auto;

    padding: 0;
}


.fd-notification-menu > * {
    max-width: 100%;
}


/* ==========================================================================
   18. PAGE CONTAINER
   ========================================================================== */

.fd-page-container {
    max-width: 100%;

    padding:
        28px 30px 40px;
}


/* ==========================================================================
   19. DASHBOARD
   ========================================================================== */

.fd-dashboard {
    width: 100%;
}


.fd-dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 26px;
}


.fd-dashboard-heading {
    min-width: 0;
}


.fd-eyebrow {
    display: block;

    margin-bottom: 5px;

    color: var(--fd-primary);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}


.fd-dashboard-heading h1 {
    margin: 0;

    color: var(--fd-text);

    font-size: 27px;
    font-weight: 750;

    line-height: 1.2;

    letter-spacing: -0.7px;
}


.fd-dashboard-heading p {
    margin: 7px 0 0;

    color: var(--fd-text-secondary);

    font-size: 13px;
}


.fd-dashboard-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


/* ==========================================================================
   20. BUTTONS
   ========================================================================== */

.fd-btn {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 9px 15px;

    border: 1px solid transparent;
    border-radius: 9px;

    font-size: 12px;
    font-weight: 650;

    cursor: pointer;

    transition:
        transform var(--fd-transition),
        box-shadow var(--fd-transition),
        background var(--fd-transition),
        border-color var(--fd-transition);
}


.fd-btn:hover {
    transform: translateY(-1px);
}


.fd-btn-primary {
    background: var(--fd-primary);
    color: #ffffff !important;

    box-shadow:
        0 5px 14px rgba(36, 68, 95, 0.18);
}


.fd-btn-primary:hover {
    background: var(--fd-primary-dark);
    color: #ffffff !important;

    box-shadow:
        0 8px 18px rgba(36, 68, 95, 0.22);
}


.fd-btn-secondary {
    background: #ffffff;

    border-color: var(--fd-border);

    color: var(--fd-text-secondary) !important;
}


.fd-btn-secondary:hover {
    background: var(--fd-primary-light);

    border-color: #d5e0e8;

    color: var(--fd-primary) !important;
}


/* ==========================================================================
   21. KPI GRID
   ========================================================================== */

.fd-kpi-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-bottom: 18px;
}


.fd-kpi-grid-four {
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
}


.fd-kpi-grid-three {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
}


/* ==========================================================================
   21b. REVENUE & PROFIT TREND (Phase F — role-aware dashboard)
   ========================================================================== */

.fd-financials-card {
    margin-bottom: 18px;
}

.fd-card-header h3 {
    margin: 0;
    color: var(--fd-text);
    font-size: 15px;
    font-weight: 700;
}

.fd-card-subtitle {
    margin: 3px 0 0;
    color: var(--fd-text-muted);
    font-size: 11px;
}

.fd-financials-range select {
    min-width: 160px;
    font-size: 12px;
}

.fd-financials-caveat {
    margin: 0;
    padding: 10px 20px;
    background: var(--fd-warning-light);
    color: var(--fd-warning);
    font-size: 11.5px;
    border-bottom: 1px solid var(--fd-border);
}

.fd-trend-chart {
    padding: 20px;
}

.fd-trend-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 160px;
}

.fd-trend-col {
    flex: 1 1 0;
    min-width: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.fd-trend-bar-pair {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 100%;
    height: 100%;
}

.fd-trend-bar {
    flex: 1 1 0;
    min-height: 1px;
    border-radius: 2px 2px 0 0;
}

.fd-trend-bar-revenue {
    background: var(--fd-primary);
    opacity: .55;
}

.fd-trend-bar-profit {
    background: var(--fd-success);
}

.fd-trend-label {
    margin-top: 6px;
    color: var(--fd-text-muted);
    font-size: 9px;
    white-space: nowrap;
}

.fd-trend-legend {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--fd-border);
}

.fd-trend-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fd-text-muted);
    font-size: 11px;
}

.fd-trend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.fd-trend-swatch-revenue {
    background: var(--fd-primary);
    opacity: .55;
}

.fd-trend-swatch-profit {
    background: var(--fd-success);
}


/* ==========================================================================
   22. KPI CARDS
   ========================================================================== */

.fd-kpi-card {
    position: relative;

    min-width: 0;
    min-height: 142px;

    display: flex;
    align-items: center;

    padding: 20px;

    overflow: hidden;

    background: var(--fd-surface);

    border:
        1px solid var(--fd-border);

    border-radius: var(--fd-radius);

    box-shadow: var(--fd-shadow-xs);

    transition:
        transform var(--fd-transition),
        box-shadow var(--fd-transition),
        border-color var(--fd-transition);
}


.fd-kpi-card:hover {
    transform: translateY(-2px);

    border-color:
        var(--fd-border-dark);

    box-shadow: var(--fd-shadow);
}


.fd-kpi-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 46px;

    margin-right: 14px;

    border-radius: 12px;

    font-size: 16px;
}


.fd-kpi-content {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.fd-kpi-label {
    color: var(--fd-text-secondary);

    font-size: 11px;
    font-weight: 600;
}


.fd-kpi-value {
    margin-top: 3px;

    color: var(--fd-text);

    font-size: 25px;
    font-weight: 750;

    line-height: 1.2;

    letter-spacing: -0.6px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.fd-kpi-money {
    font-size: 21px;
}


.fd-kpi-meta {
    margin-top: 5px;

    color: var(--fd-text-muted);

    font-size: 10px;
}


.fd-kpi-arrow {
    position: absolute;

    right: 16px;
    bottom: 15px;

    color: var(--fd-text-light);

    font-size: 10px;
}


/* ==========================================================================
   23. KPI COLOR VARIANTS
========================================================================== */

.fd-kpi-blue .fd-kpi-icon {
    background: var(--fd-primary-light);
    color: var(--fd-primary);
}


.fd-kpi-orange .fd-kpi-icon {
    background: var(--fd-warning-light);
    color: var(--fd-warning);
}


.fd-kpi-purple .fd-kpi-icon {
    background: #f2eff9;
    color: #7664a5;
}


.fd-kpi-green .fd-kpi-icon {
    background: var(--fd-success-light);
    color: var(--fd-success);
}


.fd-kpi-red .fd-kpi-icon {
    background: var(--fd-danger-light);
    color: var(--fd-danger);
}


.fd-kpi-cyan .fd-kpi-icon {
    background: var(--fd-info-light);
    color: var(--fd-info);
}


/* ==========================================================================
   24. DASHBOARD CARDS
   ========================================================================== */

.fd-dashboard-card {
    min-width: 0;

    background: var(--fd-surface);

    border:
        1px solid var(--fd-border);

    border-radius: var(--fd-radius);

    box-shadow: var(--fd-shadow-xs);

    overflow: hidden;
}


.fd-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 18px 20px;

    border-bottom:
        1px solid var(--fd-border);
}


.fd-card-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: var(--fd-text-muted);

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.9px;
}


.fd-card-header h2 {
    margin: 0;

    color: var(--fd-text);

    font-size: 15px;
    font-weight: 700;
}


.fd-card-link {
    color: var(--fd-primary);

    font-size: 11px;
    font-weight: 600;

    white-space: nowrap;
}


.fd-card-link:hover {
    color: var(--fd-primary-dark);
}


.fd-card-link i {
    margin-left: 4px;
    font-size: 9px;
}


.fd-card-count {
    padding: 5px 8px;

    border-radius: 20px;

    background: var(--fd-primary-light);

    color: var(--fd-primary);

    font-size: 10px;
    font-weight: 600;
}


/* ==========================================================================
   25. SECONDARY DASHBOARD GRID
   ========================================================================== */

.fd-secondary-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(230px, 1fr);

    gap: 16px;

    margin-bottom: 18px;
}


/* ==========================================================================
   26. STOCK OVERVIEW
   ========================================================================== */

.fd-stock-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 0;
}


.fd-stock-item {
    display: flex;
    align-items: center;

    padding: 20px;

    border-right:
        1px solid var(--fd-border);
}


.fd-stock-item:last-child {
    border-right: 0;
}


.fd-stock-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    margin-right: 11px;

    border-radius: 10px;

    font-size: 12px;
}


.fd-stock-warning {
    background: var(--fd-warning-light);
    color: var(--fd-warning);
}


.fd-stock-danger {
    background: var(--fd-danger-light);
    color: var(--fd-danger);
}


.fd-stock-info {
    background: var(--fd-info-light);
    color: var(--fd-info);
}


.fd-stock-item div {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.fd-stock-item strong {
    color: var(--fd-text);

    font-size: 20px;
    font-weight: 750;

    line-height: 1.2;
}


.fd-stock-item span:not(.fd-stock-icon) {
    margin-top: 3px;

    color: var(--fd-text-muted);

    font-size: 10px;
}


/* ==========================================================================
   27. DATE CARD
   ========================================================================== */

.fd-date-card {
    display: flex;
    align-items: center;

    padding: 22px;
}


.fd-date-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 48px;

    margin-right: 14px;

    border-radius: 13px;

    background: var(--fd-accent-light);

    color: var(--fd-accent);

    font-size: 17px;
}


.fd-date-content {
    display: flex;
    flex-direction: column;
}


.fd-date-content > span {
    color: var(--fd-text-muted);

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}


.fd-date-content strong {
    margin-top: 2px;

    color: var(--fd-text);

    font-size: 28px;
    font-weight: 750;

    line-height: 1;
}


.fd-date-content p {
    margin: 5px 0 0;

    color: var(--fd-text-secondary);

    font-size: 10px;
}


/* ==========================================================================
   28. DASHBOARD COLUMNS
   ========================================================================== */

.fd-dashboard-columns {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(300px, 1fr);

    gap: 16px;

    margin-bottom: 18px;
}


/* ==========================================================================
   29. DASHBOARD TABLE
   ========================================================================== */

.fd-table-wrapper {
    width: 100%;

    overflow-x: auto;
}


.fd-dashboard-table {
    width: 100%;

    margin: 0;

    border-collapse: collapse;
}


.fd-dashboard-table th {
    padding: 11px 20px;

    background: var(--fd-surface-soft);

    border-bottom:
        1px solid var(--fd-border);

    color: var(--fd-text-muted);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.45px;

    text-align: left;

    white-space: nowrap;
}


.fd-dashboard-table td {
    padding: 13px 20px;

    border-bottom:
        1px solid #eef1f3;

    color: var(--fd-text-secondary);

    font-size: 12px;
}


.fd-dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}


.fd-dashboard-table tbody tr {
    transition:
        background var(--fd-transition);
}


.fd-dashboard-table tbody tr:hover {
    background:
        #fafcfd;
}


.fd-dashboard-table td strong {
    color: var(--fd-text);

    font-weight: 650;
}


.fd-table-user {
    display: flex;
    align-items: center;
}


.fd-table-user > span:last-child {
    margin-left: 9px;

    color: var(--fd-text);

    font-weight: 550;
}


/* ==========================================================================
   30. QUICK LINKS
   ========================================================================== */

.fd-quick-links {
    padding: 8px;
}


.fd-quick-link {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 10px;

    border-radius: 9px;

    transition:
        background var(--fd-transition),
        transform var(--fd-transition);
}


.fd-quick-link:hover {
    background: var(--fd-surface-soft);

    transform: translateX(2px);
}


.fd-quick-icon {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 35px;

    border-radius: 9px;

    font-size: 11px;
}


.fd-quick-sales {
    background: var(--fd-primary-light);
    color: var(--fd-primary);
}


.fd-quick-orders {
    background: #f2eff9;
    color: #7664a5;
}


.fd-quick-customers {
    background: var(--fd-success-light);
    color: var(--fd-success);
}


.fd-quick-reports {
    background: var(--fd-warning-light);
    color: var(--fd-warning);
}


.fd-quick-copy {
    min-width: 0;

    flex: 1;

    display: flex;
    flex-direction: column;
}


.fd-quick-copy strong {
    color: var(--fd-text);

    font-size: 11px;
    font-weight: 650;
}


.fd-quick-copy small {
    margin-top: 2px;

    color: var(--fd-text-muted);

    font-size: 9px;
}


.fd-quick-link > i {
    color: var(--fd-text-light);

    font-size: 9px;
}


/* ==========================================================================
   31. ACTION GRID
   ========================================================================== */

.fd-inventory-actions-card,
.fd-sales-actions-card {
    margin-bottom: 18px;
}


.fd-action-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 1px;

    background: var(--fd-border);
}


.fd-action-item {
    display: flex;
    align-items: center;

    gap: 11px;

    min-height: 92px;

    padding: 17px;

    background: #ffffff;

    transition:
        background var(--fd-transition);
}


.fd-action-item:hover {
    background: var(--fd-surface-soft);
}


.fd-action-icon {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 39px;

    border-radius: 10px;

    background: var(--fd-primary-light);

    color: var(--fd-primary);

    font-size: 12px;
}


.fd-action-item > span:last-child {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.fd-action-item strong {
    color: var(--fd-text);

    font-size: 11px;
    font-weight: 650;
}


.fd-action-item small {
    margin-top: 3px;

    color: var(--fd-text-muted);

    font-size: 9px;
}


/* ==========================================================================
   32. BOOTSTRAP COMPATIBILITY
   ==========================================================================
   We still use Bootstrap throughout the application. These styles soften
   the old Bootstrap visual language without breaking its grid/components.
   ========================================================================== */

.fd-main .panel {
    background: #ffffff;

    border:
        1px solid var(--fd-border);

    border-radius: var(--fd-radius);

    box-shadow: var(--fd-shadow-xs);

    overflow: hidden;
}


.fd-main .panel-heading {
    padding: 14px 17px;

    background: #ffffff;

    border-bottom:
        1px solid var(--fd-border);

    color: var(--fd-text);

    font-size: 13px;
    font-weight: 650;
}


.fd-main .panel-body {
    padding: 18px;
}


.fd-main .table {
    margin-bottom: 0;
}


.fd-main .table > thead > tr > th {
    border-bottom:
        1px solid var(--fd-border);

    color: var(--fd-text-muted);

    font-size: 11px;
    font-weight: 650;
}


.fd-main .table > tbody > tr > td {
    border-top:
        1px solid #eef1f3;

    color: var(--fd-text-secondary);

    vertical-align: middle;
}


.fd-main .btn {
    border-radius: 8px;

    box-shadow: none;

    transition:
        background var(--fd-transition),
        border-color var(--fd-transition),
        box-shadow var(--fd-transition),
        transform var(--fd-transition);
}


.fd-main .btn:hover {
    transform: translateY(-1px);
}


/* ==========================================================================
   33. OLD CARD COMPATIBILITY
   ==========================================================================
   Some screens still use the original .card/.cardHeader/.cardContainer
   structure. Keep those screens functional while giving them the new
   visual language.
   ========================================================================== */

div.card {
    width: 100%;

    background: #ffffff;

    border:
        1px solid var(--fd-border);

    border-radius: var(--fd-radius);

    box-shadow: var(--fd-shadow-xs);

    text-align: center;

    overflow: hidden;
}


div.cardHeader {
    background:
        var(--fd-primary);

    color: #ffffff;

    padding: 20px;

    font-size: 32px;

    font-weight: 700;
}


div.cardContainer {
    padding: 15px;

    color: var(--fd-text-secondary);

    background: #ffffff;
}


/* ==========================================================================
   34. LEGACY HOVER STYLES
   ========================================================================== */

nav.navbar:hover {
    box-shadow: none;
}


button.button1:hover {
    box-shadow:
        0 8px 20px rgba(31, 52, 70, 0.12);
}


/* ==========================================================================
   35. FORM CONTROLS
   ========================================================================== */

.fd-main .form-control,
.fd-main input[type="text"],
.fd-main input[type="email"],
.fd-main input[type="password"],
.fd-main input[type="number"],
.fd-main input[type="date"],
.fd-main input[type="tel"],
.fd-main input[type="url"],
.fd-main select,
.fd-main textarea {
    min-height: 40px;

    border:
        1px solid var(--fd-border-dark);

    border-radius: 8px;

    background: #ffffff;

    color: var(--fd-text);

    box-shadow: none;

    transition:
        border-color var(--fd-transition),
        box-shadow var(--fd-transition);
}


.fd-main .form-control:focus,
.fd-main input:focus,
.fd-main select:focus,
.fd-main textarea:focus {
    border-color:
        #a8bdcd;

    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(36, 68, 95, 0.08);
}


.fd-main label {
    color: var(white);

    font-size: 11px;
    font-weight: 650;
}


/* ==========================================================================
   36. BADGES
   ========================================================================== */

.fd-main .badge {
    border-radius: 20px;

    font-size: 10px;
    font-weight: 650;
}


/* ==========================================================================
   37. FILE INPUT
   ========================================================================== */

div.kv-avatar div.file-input div.file-preview {
    width: 200px;
}


.kv-file-zoom {
    display: none;
}


/* ==========================================================================
   38. GENERAL UTILITIES
   ========================================================================== */

.div-hide {
    display: none !important;
}


.fd-text-muted {
    color: var(--fd-text-muted);
}


.fd-text-secondary {
    color: var(--fd-text-secondary);
}


.fd-text-primary {
    color: var(--fd-primary);
}


/* ==========================================================================
   39. LOGIN COMPATIBILITY
   ==========================================================================
   Existing login.php uses .vertical. Keep it working.
   We will refine the actual login screen when we update login.php.
   ========================================================================== */

.vertical {
    padding-top: 150px;
    padding-bottom: 150px;
}


/* ==========================================================================
   40. MOBILE SIDEBAR OVERLAY
   ========================================================================== */

.fd-mobile-overlay {
    position: fixed;

    inset: 0;

    display: none;

    background:
        rgba(15, 30, 42, 0.48);

    z-index: 1050;
}


/* ==========================================================================
   41. RESPONSIVE — LARGE TABLETS / SMALL DESKTOP
   ========================================================================== */

@media (max-width: 1199px) {

    :root {
        --fd-sidebar-width: 235px;
    }


    .fd-page-container {
        padding-left: 22px;
        padding-right: 22px;
    }


    .fd-kpi-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .fd-kpi-grid-four {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .fd-dashboard-columns {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .fd-action-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================================
   42. RESPONSIVE — TABLET
   ========================================================================== */

@media (max-width: 991px) {

    :root {
        --fd-sidebar-width: 255px;
    }


    .fd-sidebar {
        transform:
            translateX(-100%);

        transition:
            transform 220ms ease;

        box-shadow:
            15px 0 40px rgba(20, 40, 55, 0.18);
    }


    body.fd-sidebar-open
    .fd-sidebar {
        transform:
            translateX(0);
    }


    body.fd-sidebar-open
    .fd-mobile-overlay {
        display: block;
    }


    .fd-main {
        width: 100%;

        margin-left: 0;
    }


    .fd-mobile-toggle {
        display: inline-flex;
    }


    .fd-topbar {
        padding: 0 18px;
    }


    .fd-topbar-context {
        display: none;
    }


    .fd-secondary-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .fd-dashboard-columns {
        grid-template-columns:
            minmax(0, 1fr);
    }

}


/* ==========================================================================
   43. RESPONSIVE — MOBILE
   ========================================================================== */

@media (max-width: 767px) {

    .fd-page-container {
        padding:
            20px 15px 30px;
    }


    .fd-topbar {
        min-height: 64px;

        padding: 0 13px;
    }


    .fd-dashboard-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 20px;
    }


    .fd-dashboard-heading h1 {
        font-size: 23px;
    }


    .fd-dashboard-heading p {
        font-size: 12px;
    }


    .fd-dashboard-actions {
        width: 100%;
    }


    .fd-dashboard-actions .fd-btn {
        flex: 1;
    }


    .fd-kpi-grid,
    .fd-kpi-grid-four,
    .fd-kpi-grid-three {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .fd-kpi-card {
        min-height: 125px;
    }


    .fd-secondary-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .fd-stock-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .fd-stock-item {
        border-right: 0;

        border-bottom:
            1px solid var(--fd-border);
    }


    .fd-stock-item:last-child {
        border-bottom: 0;
    }


    .fd-dashboard-columns {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .fd-card-header {
        align-items: flex-start;

        flex-direction: column;

        padding: 15px;
    }


    .fd-card-link {
        align-self: flex-start;
    }


    .fd-dashboard-table th,
    .fd-dashboard-table td {
        padding-left: 14px;
        padding-right: 14px;
    }


    .fd-action-grid {
        grid-template-columns:
            minmax(0, 1fr);
    }


    .fd-action-item {
        min-height: 76px;
    }


    .fd-user-copy {
        display: none;
    }


    .fd-user-menu {
        padding-right: 4px;
    }


    .fd-notification-menu {
        position: fixed;

        top: 63px;
        left: 15px;
        right: 15px;

        width: auto;
        max-width: none;
    }

}


/* ==========================================================================
   44. RESPONSIVE — SMALL MOBILE
   ========================================================================== */

@media (max-width: 480px) {

    .fd-page-container {
        padding:
            17px 11px 25px;
    }


    .fd-topbar {
        padding:
            0 10px;
    }


    .fd-brand {
        padding-left: 16px;
        padding-right: 16px;
    }


    .fd-kpi-card {
        padding: 16px;
    }


    .fd-kpi-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        margin-right: 11px;
    }


    .fd-kpi-value {
        font-size: 22px;
    }


    .fd-kpi-money {
        font-size: 18px;
    }


    .fd-date-card {
        padding: 17px;
    }


    .fd-stock-item {
        padding: 16px;
    }


    .fd-table-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

}


/* ==========================================================================
   45. ACCESSIBILITY / REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;
    }

}


/* ==========================================================================
   END — FINE DOORS & INTERIOR GLOBAL CSS
   ========================================================================== */

   /* =========================================================
   ADD CUSTOMER MODAL
   Keep above sidebar/navigation
========================================================= */

#addCustomerModal {
    z-index: 1100 !important;
}

#addCustomerModal .modal-dialog {
    position: relative;
    z-index: 1101 !important;
}

#addCustomerModal .modal-content {
    position: relative;
    z-index: 1102 !important;
}

.modal-backdrop {
    z-index: 1090 !important;
}
/* =========================================================
   ADD CUSTOMER
   CUSTOM TWO-COLUMN FORM GRID
========================================================= */

#addCustomerModal .fd-add-customer-fields-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 20px !important;
}

#addCustomerModal .fd-add-customer-field {
    display: block !important;

    flex: 1 1 0 !important;

    width: 50% !important;
    max-width: 50% !important;

    margin: 0 !important;
    padding: 0 !important;
}

#addCustomerModal .fd-add-customer-field .form-group {
    width: 100% !important;
    margin-bottom: 17px !important;
}

#addCustomerModal .fd-add-customer-field .form-control {
    width: 100% !important;
}
/* =========================================================
   TOPBAR NOTIFICATION DROPDOWN
========================================================= */

#navNotifications {
    position: relative;
}


/* ---------------------------------------------------------
   Notification menu
--------------------------------------------------------- */

#navNotifications .fd-notification-menu {
    position: absolute !important;

    top: calc(100% + 10px) !important;
    right: 0 !important;
    left: auto !important;

    width: 360px;
    min-width: 360px;

    max-width: calc(100vw - 30px);

    margin: 0 !important;
    padding: 7px 0 !important;

    border: 1px solid #e4eaed;

    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 18px 45px rgba(31, 45, 61, .14);

    overflow: hidden;

    z-index: 1200 !important;
}


/* Small arrow */

#navNotifications .fd-notification-menu::before {
    content: "";

    position: absolute;

    top: -7px;
    right: 17px;

    width: 13px;
    height: 13px;

    background: #ffffff;

    border-top: 1px solid #e4eaed;
    border-left: 1px solid #e4eaed;

    transform: rotate(45deg);
}


/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */

#navNotifications .fd-notification-menu .dropdown-header {
    display: flex;

    align-items: center;

    min-height: 40px;

    margin: 0;

    padding: 9px 15px !important;

    color: #263b46;

    font-size: 12px;

    font-weight: 700;

    background: #f8fafb;

    border-bottom: 1px solid #edf1f3;
}


/* First header: Alerts (2) */

#navNotifications .fd-notification-menu > .dropdown-header:first-child {
    justify-content: space-between;

    color: #344b59;

    font-size: 13px;

    background: #ffffff;
}


/* Alert category headers */

#navNotifications .fd-notification-menu .dropdown-header i {
    margin-right: 7px;

    color: #c18832;
}


/* ---------------------------------------------------------
   Notification items
--------------------------------------------------------- */

#navNotifications .fd-notification-menu > li:not(.dropdown-header):not(.divider) {
    margin: 0;
}

#navNotifications .fd-notification-menu > li > a {
    display: block;

    padding: 11px 15px 11px 34px !important;

    color: #53656e;

    font-size: 12px;

    line-height: 1.45;

    white-space: normal !important;

    text-decoration: none;

    background: #ffffff;

    transition:
        background-color .15s ease,
        color .15s ease;
}

#navNotifications .fd-notification-menu > li > a:hover,
#navNotifications .fd-notification-menu > li > a:focus {
    color: #263b46;

    background: #f6f9fa;

    text-decoration: none;
}


/* ---------------------------------------------------------
   Muted details
--------------------------------------------------------- */

#navNotifications .fd-notification-menu .text-muted {
    display: inline;

    color: #929da3;

    font-size: 10px;
}


/* ---------------------------------------------------------
   Divider
--------------------------------------------------------- */

#navNotifications .fd-notification-menu .divider {
    height: 1px;

    margin: 6px 0;

    background: #edf1f3;
}


/* ---------------------------------------------------------
   View all alerts
--------------------------------------------------------- */

#navNotifications .fd-notification-menu > li:last-child > a {
    display: flex;

    align-items: center;

    gap: 7px;

    padding: 11px 15px !important;

    color: #31596b;

    font-weight: 600;

    background: #fbfcfd;
}

#navNotifications .fd-notification-menu > li:last-child > a:hover {
    color: #244b5e;

    background: #f1f5f7;
}

#navNotifications .fd-notification-menu > li:last-child i {
    font-size: 12px;
}


/* ---------------------------------------------------------
   Notification badge
--------------------------------------------------------- */

#navNotifications .fd-notification-badge {
    position: absolute;

    top: -4px;
    right: -5px;

    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    border: 2px solid #ffffff;

    border-radius: 20px;

    background: #c95757;

    color: #ffffff;

    font-size: 9px;
    font-weight: 700;

    line-height: 1;
}


/* ---------------------------------------------------------
   Bell button
--------------------------------------------------------- */

#navNotifications .fd-icon-btn {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;

    border-radius: 9px;

    background: transparent;

    color: #647680;

    font-size: 15px;

    transition:
        background-color .18s ease,
        color .18s ease;
}

#navNotifications .fd-icon-btn:hover,
#navNotifications.is-open .fd-icon-btn {
    background: #f1f5f7;

    color: #31596b;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    #navNotifications .fd-notification-menu {
        position: fixed !important;

        top: 65px !important;

        left: 15px !important;
        right: 15px !important;

        width: auto !important;
        min-width: 0 !important;

        max-width: none !important;
    }

    #navNotifications .fd-notification-menu::before {
        display: none;
    }

}

/* =========================================================
   FINE DOORS - ORDER PAGE
   Modern Order Form
========================================================= */

.fd-order-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    gap: 20px;
    margin-bottom: 22px;
}

.fd-order-card {
    background: #ffffff;
    border: 1px solid #e8edf0;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(31, 45, 61, .06);
    overflow: hidden;
}

.fd-order-card-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 17px 20px;

    border-bottom: 1px solid #edf1f3;
    background: #fbfcfd;
}

.fd-order-card-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    border-radius: 10px;

    background: #eef4f6;
    color: #31596b;

    font-size: 15px;
}

.fd-order-card-header h3 {
    margin: 0;

    color: #263b46;

    font-size: 15px;
    font-weight: 700;
}

.fd-order-card-header p {
    margin: 3px 0 0;

    color: #89969d;

    font-size: 11px;
}

.fd-order-card-body {
    padding: 20px;
}

.fd-field {
    margin-bottom: 16px;
}

.fd-field:last-child {
    margin-bottom: 0;
}

.fd-field label {
    display: block;

    margin-bottom: 7px;

    color: #4c606b;

    font-size: 12px;
    font-weight: 600;
}

.fd-field .form-control {
    height: 42px;

    border: 1px solid #dfe7eb;
    border-radius: 8px;

    box-shadow: none;

    color: #334952;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.fd-field .form-control:focus {
    border-color: #7da4b5;

    box-shadow: 0 0 0 3px rgba(49, 89, 107, .08);
}

.fd-field-help {
    margin: 7px 0 0;

    color: #8b979d;

    font-size: 11px;
    line-height: 1.5;
}

.fd-field-help a {
    color: #31596b;
    font-weight: 600;
}

.fd-two-fields {
    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    gap: 15px;
}

.fd-order-info-note {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 25px;
    padding: 12px 13px;

    border-radius: 9px;

    background: #f5f8f9;

    color: #74848c;

    font-size: 11px;
    line-height: 1.5;
}

.fd-order-info-note i {
    margin-top: 2px;

    color: #6f95a5;
}


/* =========================================================
   ORDER PAGE - PRODUCT SECTION
========================================================= */

#productTable {
    margin-bottom: 20px;

    border: 1px solid #e7edef;
    border-radius: 10px;

    overflow: hidden;
}

#productTable thead th {
    padding: 12px 10px;

    background: #f7f9fa;

    border-bottom: 1px solid #e5ebee;

    color: #62737b;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

#productTable tbody td {
    padding: 10px;

    vertical-align: middle;

    border-top: 1px solid #eef2f4;
}

#productTable tbody tr:hover {
    background: #fbfcfd;
}


/* Remove Bootstrap's excessive form-group margins
   inside product rows */

#productTable .form-group {
    margin-bottom: 0;
}

#productTable .form-control {
    min-height: 40px;

    border-radius: 7px;

    box-shadow: none;
    margin-left: 12px;
}


/* =========================================================
   ORDER PAGE - RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .fd-order-info-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 767px) {

    .fd-order-card-body {
        padding: 15px;
    }

    .fd-order-card-header {
        padding: 14px 15px;
    }

    .fd-two-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .fd-two-fields .fd-field {
        margin-bottom: 16px;
    }

    #productTable {
        display: block;

        width: 100%;

        overflow-x: auto;

        white-space: nowrap;
    }

}
/* =========================================================
   FINE DOORS - ORDER ITEMS SECTION
========================================================= */

.fd-order-section {
    background: #ffffff;

    border: 1px solid #e7edef;
    border-radius: 14px;

    box-shadow: 0 6px 22px rgba(31, 45, 61, .06);

    margin-bottom: 22px;

    overflow: hidden;
}

.fd-order-section-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 17px 20px;

    background: #fbfcfd;

    border-bottom: 1px solid #edf1f3;
}

.fd-order-section-title {
    display: flex;

    align-items: center;

    gap: 12px;
}

.fd-order-section-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #eef4f6;

    color: #31596b;

    font-size: 15px;
}

.fd-order-section-title h3 {
    margin: 0;

    color: #263b46;

    font-size: 15px;

    font-weight: 700;
}

.fd-order-section-title p {
    margin: 3px 0 0;

    color: #89969d;

    font-size: 11px;

    line-height: 1.5;
}

.fd-order-section-meta {
    flex-shrink: 0;
}

.fd-items-label {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 10px;

    border-radius: 7px;

    background: #f1f5f7;

    color: #647780;

    font-size: 11px;

    font-weight: 600;
}


/* =========================================================
   PRODUCTS TABLE
========================================================= */

.fd-products-table-wrap {
    width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;
}

.fd-products-table-wrap #productTable {
    margin: 0;

    width: 100%;

    min-width: 820px;

    border: 0;

    box-shadow: none;
}

.fd-products-table-wrap #productTable thead th {
    padding: 12px 10px;

    background: #f7f9fa;

    border-bottom: 1px solid #e5ebee;

    color: #62737b;

    font-size: 11px;

    font-weight: 700;

    vertical-align: middle;

    white-space: nowrap;
}

.fd-products-table-wrap #productTable tbody td {
    padding: 10px;

    vertical-align: middle;

    border-top: 1px solid #eef2f4;
}

.fd-products-table-wrap #productTable tbody tr:first-child td {
    border-top: 0;
}

.fd-products-table-wrap #productTable tbody tr:hover {
    background: #fbfcfd;
}


/* Remove Bootstrap's default form-group spacing
   inside product rows */

.fd-products-table-wrap #productTable .form-group {
    margin-bottom: 0;
}

.fd-products-table-wrap #productTable .form-control {
    min-height: 40px;

    border: 1px solid #dfe7eb;

    border-radius: 7px;

    box-shadow: none;
}

.fd-products-table-wrap #productTable .form-control:focus {
    border-color: #7da4b5;

    box-shadow: 0 0 0 3px rgba(49, 89, 107, .08);
}


/* Available quantity */

.fd-products-table-wrap #productTable p[id^="available_quantity"] {
    margin: 0;

    padding: 7px 9px;

    min-width: 45px;

    display: inline-block;

    border-radius: 7px;

    background: #f4f7f8;

    color: #526871;

    font-size: 12px;

    font-weight: 600;

    text-align: center;
}


/* Remove row button */

.fd-products-table-wrap #productTable .removeProductRowBtn {
    width: 36px;
    height: 36px;

    padding: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #eadede;

    border-radius: 7px;

    background: #fff7f7;

    color: #b65d5d;

    box-shadow: none;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease;
}

.fd-products-table-wrap #productTable .removeProductRowBtn:hover {
    background: #fff0f0;

    border-color: #e4c8c8;

    color: #a94442;
}


/* =========================================================
   PRODUCTS FOOTER
========================================================= */

.fd-products-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 14px 18px;

    border-top: 1px solid #edf1f3;

    background: #fcfdfd;
}

.fd-products-hint {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #87959b;

    font-size: 11px;
}

.fd-products-hint i {
    color: #7899a8;
}

.fd-add-product-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 38px;

    padding: 8px 15px;

    border: 1px solid #31596b;

    border-radius: 8px;

    background: #31596b;

    color: #ffffff;

    font-size: 12px;

    font-weight: 600;

    box-shadow: none;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.fd-add-product-btn:hover,
.fd-add-product-btn:focus {
    background: #274b5b;

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow: 0 5px 14px rgba(49, 89, 107, .18);
}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .fd-order-section-header {
        align-items: flex-start;

        padding: 14px 15px;
    }

    .fd-order-section-title p {
        display: none;
    }

    .fd-items-label {
        font-size: 10px;
    }

    .fd-products-table-wrap {
        overflow-x: auto;
    }

    .fd-products-table-wrap #productTable {
        min-width: 820px;
    }

    .fd-products-footer {
        align-items: stretch;

        flex-direction: column;
    }

    .fd-products-hint {
        line-height: 1.5;
    }

    .fd-add-product-btn {
        width: 100%;
    }

}
/* =========================================================
   STANDARD PAGE HEADER
========================================================= */

.fd-page-header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}


.fd-page-title-wrap {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    min-width: 0;

    flex: 1 1 auto;
}


.fd-page-title-content {
    min-width: 0;

    flex: 1 1 auto;
}


.fd-page-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border-radius: 11px;

    background: #eef4f6;

    color: #31596b;

    font-size: 16px;
}


.fd-page-eyebrow {
    display: block;

    margin-bottom: 3px;

    color: #89969d;

    font-size: 10px;

    line-height: 1.3;

    font-weight: 600;

    letter-spacing: .05em;

    text-transform: uppercase;
}


.fd-page-title {
    margin: 0;

    color: #263b46;

    font-size: 22px;

    line-height: 1.25;

    font-weight: 700;
}


.fd-page-subtitle,
.fd-page-description {
    display: block;

    width: 100%;

    max-width: none;

    margin: 5px 0 0;

    color: #7b8b92;

    font-size: 12px;

    line-height: 1.5;

    white-space: normal;
}


.fd-page-actions {
    flex: 0 0 auto;

    margin-left: auto;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .fd-page-header-content {
        flex-direction: column;

        gap: 14px;
    }


    .fd-page-title-wrap {
        width: 100%;
    }


    .fd-page-actions {
        width: 100%;

        margin-left: 0;
    }


    .fd-page-actions .fd-btn {
        width: 100%;
    }

}


@media (max-width: 480px) {

    .fd-page-icon {
        width: 38px;
        height: 38px;

        flex-basis: 38px;

        font-size: 14px;
    }


    .fd-page-title {
        font-size: 20px;
    }


    .fd-page-subtitle,
    .fd-page-description {
        font-size: 11px;
    }

}

/* =========================================================
   ACCESS DENIED TOAST
========================================================= */

.fd-access-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;

    display: flex;
    align-items: center;
    gap: 12px;

    min-width: 320px;
    max-width: 420px;

    padding: 14px 16px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #dc2626;
    border-radius: 12px;

    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.14);

    opacity: 0;
    transform: translateY(-12px);

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.fd-access-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fd-access-toast-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 36px;

    border-radius: 10px;

    background: #fef2f2;
    color: #dc2626;

    font-size: 15px;
}

.fd-access-toast-content {
    display: flex;
    flex-direction: column;
    gap: 2px;

    min-width: 0;
}

.fd-access-toast-content strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.fd-access-toast-content span {
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

.fd-access-toast-close {
    margin-left: auto;

    border: 0;
    background: transparent;

    color: #9ca3af;

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}

.fd-access-toast-close:hover {
    color: #374151;
}


/* Mobile */
@media (max-width: 575px) {

    .fd-access-toast {
        top: 15px;
        left: 15px;
        right: 15px;

        min-width: 0;
        max-width: none;
    }

}
@media (max-width: 767px) {

    .fd-forgot-visual,
    .fd-login-visual {
        display: none !important;
    }

}

/* =========================================================
   MOBILE RESPONSIVE TABLES
   ========================================================= */

/* Allow DataTables to become horizontally scrollable */
.dataTables_wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Keep the actual table wide enough to preserve columns */
.dataTables_wrapper > table.dataTable {
    max-width: none !important;
}

/* Don't let the table force the entire page wider */
.dataTables_wrapper {
    overflow-x: auto;
}

/* DataTables controls should remain usable */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    max-width: 100%;
}

/* =========================================================
   MOBILE TABLE BEHAVIOUR
   ========================================================= */

@media (max-width: 767px) {

    /* Horizontal scrolling area */
    .dataTables_wrapper {
        width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    /*
     * Do not force DataTables tables to 100%.
     * Their natural/assigned width should remain so
     * the user can horizontally scroll.
     */
    .dataTables_wrapper table.dataTable {
        width: max-content !important;
        min-width: 700px !important;
        max-width: none !important;
    }

    /* Category-style management tables */
    .fd-management-table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }

    .fd-management-table-wrapper table {
        max-width: none !important;
    }

    /* Keep action buttons/dropdowns usable */
    .dataTables_wrapper .btn-group {
        white-space: nowrap;
    }

    .dataTables_wrapper .dropdown-menu {
        min-width: 150px;
    }

    /* DataTables search/length controls */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none !important;
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .dataTables_wrapper .dataTables_filter label {
        display: block;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter input {
        max-width: 100%;
        width: auto;
    }

    /* Pagination */
    .dataTables_wrapper .dataTables_paginate {
        white-space: nowrap;
        overflow-x: auto;
        max-width: 100%;
    }
}


/* =========================================================
   MOBILE REPORT BUTTONS
   ========================================================= */

@media (max-width: 767px) {

    #generateReportBtn,
    #printReportBtn,
    #downloadCsvBtn {
        display: block;
        width: 100%;
        margin: 0 0 10px 0 !important;
    }

}


/* =========================================================
   MOBILE SUCCESS MESSAGE BUTTONS
   ========================================================= */

@media (max-width: 767px) {

    .success-messages .alert {
        overflow: hidden;
    }

    .success-messages .alert .btn {
        display: block;
        width: 100%;
        margin: 10px 0 0 0 !important;
    }

}