/* ============================================
   MODERN SAAS DASHBOARD - CUSTOM CSS
   Employee Task Management System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ============ CSS VARIABLES ============ */
:root {
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #2563eb;
    --sidebar-text: #94a3b8;
    --sidebar-text-hover: #ffffff;
    --sidebar-width: 250px;
    --sidebar-collapsed: 68px;

    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
    --card-radius: 12px;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --success: #059669;
    --success-hover: #047857;
    --success-light: #d1fae5;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --danger-light: #fee2e2;
    --warning: #d97706;
    --warning-hover: #b45309;
    --warning-light: #fef3c7;
    --info: #0891b2;
    --info-hover: #0e7490;
    --info-light: #cffafe;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ BASE RESET ============ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-size: 14px;
    background: var(--body-bg);
    font-family: var(--font-family);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============ LAYOUT ============ */
.main .row {
    padding: 0px;
    margin: 0px;
}

.main {
    padding: 28px 30px;
    min-height: 100vh;
    transition: var(--transition);
    background: var(--body-bg);
    max-width: 1600px;
}

/* Consistent section row spacing */
.main>.row {
    margin-bottom: 24px;
}

.main>.row:last-child {
    margin-bottom: 0;
}

/* Equal-height card rows via flexbox */
.main>.row>[class*="col-md-4"],
.main>.row>[class*="col-md-8"] {
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .main>.row {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .main>.row>[class*="col-"] {
        display: flex;
        flex-direction: column;
    }

    .main>.row>[class*="col-"]>.well {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .main>.row>[class*="col-"]>.well>.btn-group {
        margin-top: auto;
    }
}

/* ============ SIDEBAR ============ */
nav.sidebar.navbar {
    border-radius: 0px;
    border: none;
    margin-bottom: 0;
}

nav.sidebar,
.main {
    -webkit-transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar base styles */
nav.sidebar {
    background: var(--sidebar-bg) !important;
    border: none !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}

nav.sidebar .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.3px;
    padding: 18px 15px;
    height: auto;
    line-height: 1.4;
}

nav.sidebar .navbar-brand span {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Mobile sidebar toggle */
nav.sidebar .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.15);
    margin-right: 10px;
}

nav.sidebar .navbar-toggle .icon-bar {
    background-color: #94a3b8;
}

nav.sidebar .navbar-toggle:hover .icon-bar,
nav.sidebar .navbar-toggle:focus .icon-bar {
    background-color: #ffffff;
}

/* ============ MEDIUM SCREEN SIDEBAR ============ */
@media (min-width: 768px) {
    .main {
        position: absolute;
        width: calc(100% - var(--sidebar-collapsed));
        margin-left: var(--sidebar-collapsed);
        float: right;
        padding: 28px 30px;
    }

    nav.sidebar:hover+.main {
        margin-left: var(--sidebar-width);
    }

    nav.sidebar.navbar.sidebar>.container .navbar-brand,
    .navbar>.container-fluid .navbar-brand {
        margin-left: 0px;
    }

    nav.sidebar .navbar-brand,
    nav.sidebar .navbar-header {
        text-align: center;
        width: 100%;
        margin-left: 0px;
    }

    nav.sidebar a {
        padding-right: 13px;
    }

    nav.sidebar .navbar-nav>li:first-child {
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    nav.sidebar .navbar-nav>li {
        /* border-bottom: 1px #949494 solid; */
    }

    nav.sidebar .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    nav.sidebar .navbar-collapse,
    nav.sidebar .container-fluid {
        padding: 0 0px 0 0px;
    }

    .navbar-inverse .navbar-nav .open .dropdown-menu>li>a {
        color: #777;
    }

    nav.sidebar {
        width: var(--sidebar-width);
        height: 100%;
        margin-left: calc(var(--sidebar-collapsed) - var(--sidebar-width));
        float: left;
        z-index: 8000;
        margin-bottom: 0px;
    }

    nav.sidebar li {
        width: 100%;
    }

    nav.sidebar:hover {
        margin-left: 0px;
    }

    .forAnimate {
        opacity: 0;
    }
}

/* ============ LARGE SCREEN SIDEBAR ============ */
@media (min-width: 1330px) {
    .main {
        width: calc(100% - var(--sidebar-width));
        margin-left: var(--sidebar-width);
        padding: 30px 36px;
    }

    nav.sidebar {
        margin-left: 0px;
        float: left;
    }

    nav.sidebar .forAnimate {
        opacity: 1;
    }
}

nav.sidebar .navbar-nav .open .dropdown-menu>li>a:hover,
nav.sidebar .navbar-nav .open .dropdown-menu>li>a:focus {
    color: #CCC;
    background-color: transparent;
}

nav:hover .forAnimate {
    opacity: 1;
}

section {
    padding-left: 15px;
    margin-bottom: 24px;
}

/* ============ SIDEBAR NAV ITEMS ============ */
@media(min-width: 768px) {
    .navbar-nav-custom>li>a {
        padding-left: 20px;
        padding-top: 16px;
        padding-bottom: 16px;
        padding-right: 16px;
    }

    .navbar-nav>li>a {
        line-height: 10px;
    }
}

/* Sidebar nav link styles */
.navbar-inverse .navbar-nav-custom>li>a {
    color: var(--sidebar-text) !important;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-left: 3px solid transparent;
    transition: var(--transition);
}

.navbar-inverse .navbar-nav-custom>li a:hover {
    color: var(--sidebar-text-hover) !important;
    background-color: var(--sidebar-hover) !important;
    border-left-color: var(--primary);
    transition: var(--transition);
}

.navbar-inverse .navbar-nav-custom>.active>a,
.navbar-inverse .navbar-nav-custom>.active>a:focus,
.navbar-inverse .navbar-nav-custom>.active>a:hover {
    color: #ffffff !important;
    background-color: var(--sidebar-active) !important;
    border-left-color: #ffffff;
}

/* Sidebar icons */
.navbar-nav-custom .glyphicon {
    color: var(--sidebar-text) !important;
    font-size: 15px !important;
    opacity: 0.7;
    transition: var(--transition);
}

.navbar-nav-custom li:hover .glyphicon,
.navbar-nav-custom .active .glyphicon {
    color: #ffffff !important;
    opacity: 1;
}

/* ============ WELL / CARD OVERRIDES ============ */
@media(min-width: 768px) {
    .well-custom {
        min-height: 35rem;
    }
}

.well-custom {
    margin-top: 0;
}

.well {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 24px 28px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.well:hover {
    box-shadow: var(--card-shadow-hover);
}

.gap {
    margin-top: 1rem;
}

/* ============ INPUT FIELD DESIGN ============ */
input[type=number] {
    -moz-appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-custom {
    border-radius: 8px !important;
    font-size: 14px;
    padding: 10px 14px;
    height: 42px;
    background-color: #f8fafc;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

input.input-custom::-webkit-input-placeholder {
    color: var(--text-muted);
    font-size: 13px;
    padding-left: 0;
}

input.input-custom::-moz-placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

input.input-custom::-ms-input-placeholder {
    color: var(--text-muted);
    font-size: 13px;
}

.input-custom:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ============ FORM CONTROLS ============ */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    height: 40px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: #ffffff;
    box-shadow: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    height: auto;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.control-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.form-group {
    margin-bottom: 16px;
}

.help-block {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ============ BUTTONS ============ */
.btn {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-success {
    background-color: var(--success);
    color: #ffffff;
    border: none;
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--success-hover);
    color: #ffffff;
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
    border: none;
}

.btn-danger:hover,
.btn-danger:focus {
    background-color: var(--danger-hover);
    color: #ffffff;
}

.btn-info {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
}

.btn-info:hover,
.btn-info:focus {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-warning {
    background-color: var(--warning);
    color: #ffffff;
    border: none;
}

.btn-warning:hover,
.btn-warning:focus {
    background-color: var(--warning-hover);
    color: #ffffff;
}

.btn-default {
    background-color: #f1f5f9;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-default:hover,
.btn-default:focus {
    background-color: #e2e8f0;
    color: var(--text-primary);
}

.btn-success-custom {
    margin-top: 0.5rem;
    background-color: var(--primary);
    color: #ffffff;
    width: auto;
    min-width: 120px;
    padding: 10px 20px;
    border: none;
    font-weight: 600;
}

.btn-success-custom:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

.btn-danger-custom {
    margin-top: 0.5rem;
    background-color: #f1f5f9;
    color: var(--text-secondary);
    width: auto;
    min-width: 100px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
}

.btn-danger-custom:hover {
    background-color: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-xs {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-menu {
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
}

/* ============ NAV TABS ============ */
@media(max-width: 768px) {
    .nav-tabs-custom {
        margin-top: 1rem;
    }
}

.nav-tabs-custom {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 24px;
    margin-top: 16px;
}

.nav-tabs-custom>li>a {
    border: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13.5px;
    padding: 12px 20px;
    border-radius: 0;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-tabs-custom>li>a:hover {
    background: transparent;
    border-color: transparent;
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-tabs-custom>li.active>a,
.nav-tabs-custom>li .active>a:focus,
.nav-tabs-custom>li.active>a:hover {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.nav-tabs-custom>li.active>a,
.nav-tabs-custom>li.active>a:focus,
.nav-tabs-custom>li.active>a:hover {
    border: none;
    border-bottom: 2px solid var(--primary);
}

/* ============ TABLE DESIGN ============ */
.table-custom {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border-color);
}

.table-custom>thead>tr>th {
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8fafc;
    white-space: nowrap;
}

.table-custom>tbody>tr>td {
    color: var(--text-primary);
    font-weight: 400;
    padding: 14px 16px;
    text-align: left;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.disabled td {
    color: var(--text-muted);
}

.table-custom>tbody>tr {
    transition: var(--transition);
}

/* Alternate row colors */
.table-custom>tbody>tr:nth-child(even) {
    background-color: #f8fafc;
}

.table-custom>tbody>tr:hover {
    background: var(--primary-light);
}

.table-custom>tbody>tr:last-child>td {
    border-bottom: none;
}

/* Table action icons */
.table-custom a {
    /* color: var(--text-secondary); */
    color: #000000a4;
    transition: var(--transition);
}

.table-custom a:hover {
    color: var(--primary);
    text-decoration: none;
}

.table-custom .glyphicon {
    font-size: 14px;
}

/* Table single product (detail views) */
.table-single-product {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.table-single-product>tbody>tr>td {
    padding: 12px 16px;
    border-color: var(--border-color);
    vertical-align: middle;
}

.table-single-product>tbody>tr>td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 35%;
    background: #f8fafc;
}

.table-single-product>tbody>tr:hover {
    background: #f8fafc;
}

.table-bordered>thead>tr>th,
.table-bordered>tbody>tr>td {
    border-color: var(--border-color);
}

.table-responsive {
    border: none;
    margin-top: 8px;
}

/* ============ HEADINGS ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family);
    color: var(--text-primary);
    font-weight: 600;
}

h3 {
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

center h3 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    margin: 20px 0 16px;
    letter-spacing: -0.3px;
}

/* BG Primary override for section headers */
.bg-primary {
    background-color: var(--primary) !important;
    color: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.2px;
    padding: 10px 14px !important;
    margin-bottom: 16px;
}

/* ============ FLOATING ADD BUTTON ============ */
.multi-action {
    display: inline-block;
    position: fixed;
    width: 40px;
    height: 40px;
    margin: 300px 0 0 -28px;
    right: 2%;
    bottom: 3%;
    z-index: 1000;
}

.action-button {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    outline: 0;
    background: var(--primary);
    font-size: 22px;
    color: white;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: var(--transition);
}

.action-button:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    transform: scale(1.05);
}

.cat-action {
    position: relative;
    left: 2.1rem;
}

.plus-rotate:hover {
    transform: scale(1.1) rotate(90deg);
}


/* ============ LOGIN PAGE ============ */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f4f6f9;
    font-family: var(--font-family);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.login-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box;
}

.logo-container {
    margin-bottom: 24px;
}

.company-logo {
    height: 60px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.login-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 32px 0;
    font-weight: 400;
}

.form-custom-login {
    border: none;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.form-custom-login .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-custom-login .input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 7px;
    letter-spacing: 0.2px;
}

.form-custom-login .form-control {
    border-radius: 8px;
    padding: 11px 14px;
    height: 46px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: var(--text-primary);
    font-size: 15px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-custom-login .form-control::placeholder {
    color: #9ca3af;
}

.form-custom-login .form-control:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: none;
}

.form-custom-login .btn-login {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px !important;
    padding: 12px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    letter-spacing: 0.2px;
}

.form-custom-login .btn-login:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.form-custom-login .btn-login:active {
    background-color: #1e40af;
}

.alert-custom {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    padding: 12px 14px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: left;
}

@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
        border-radius: 12px;
    }

    .login-title {
        font-size: 22px;
    }
}


/* ============ ADMIN PANEL CARDS ============ */
.admin-custom .panel {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.admin-custom .panel:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.admin-custom .panel-heading {
    border-radius: var(--card-radius) var(--card-radius) 0 0;
    padding: 16px 20px;
}

.admin-custom .panel-heading h3 span {
    font-weight: 800;
}

.admin-custom .tsale h3 span {
    color: var(--primary);
}

.admin-custom .tdue h3 span {
    color: var(--warning);
}

.admin-custom .tprofit h3 span {
    color: var(--success);
}

.admin-custom .texpense h3 span {
    color: var(--danger);
}

.admin-custom .panel-body {
    font-size: 1.1rem;
    padding: 20px;
}

.admin-custom .panel-footer {
    text-align: right;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    padding: 12px 20px;
}

.admin-custom .panel-footer a {
    color: var(--primary);
    font-weight: 500;
    font-size: 13px;
}

.admin-custom .panel-footer a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* ============ ADMIN MANAGE PAGE ============ */
#salesman_pass_cng {
    display: none;
}

/* ============ BANKING PAGE ============ */
.banking-avail {
    color: var(--success);
}

.banking-wid {
    color: var(--danger);
}

.banking-dep {
    color: var(--primary);
}

.banking-details-form {
    margin-top: 2rem;
}

@media(min-width: 768px) {
    .banking-date {
        max-width: 7rem;
    }

    .banking-acc {
        max-width: 13rem;
    }
}

.acc-det-cat {
    color: var(--success);
}

/* ============ DASHBOARD BUTTONS ============ */
.btn-dash {
    margin-top: 1.5rem;
    width: 100%;
    padding: 3rem;
    font-size: 1.5rem;
    border-radius: var(--card-radius);
    font-weight: 600;
    letter-spacing: -0.3px;
    box-shadow: var(--card-shadow);
}

.btn-dash:hover {
    box-shadow: var(--card-shadow-hover);
}

@media(max-width: 767px) {
    .btn-dash {
        margin-top: 1rem;
        width: 100%;
        padding: 2rem 1rem;
        font-size: 1.2rem;
    }
}

/* ============ DASHBOARD HEADER ROW ============ */
/* Header row with title/buttons and filters aligned */
.well-custom>.row:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.well-custom>.row:first-child>[class*="col-"] {
    float: none;
}

.well-custom>.row:first-child .pull-right {
    float: none !important;
}

@media (max-width: 767px) {
    .well-custom>.row:first-child {
        display: block;
    }

    .well-custom>.row:first-child>[class*="col-"] {
        margin-bottom: 12px;
    }
}

/* ============ BANKING MENU ============ */
.btn-success.active,
.btn-success:active,
.open>.dropdown-toggle.btn-success {
    background-color: var(--success-hover) !important;
}

/* ============ MODAL DESIGN ============ */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 16px 24px;
}

.close {
    float: left !important;
    color: var(--text-muted) !important;
    opacity: 1 !important;
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    transition: var(--transition);
    text-shadow: none !important;
}

.close:hover {
    color: var(--danger) !important;
}

/* ============ ALERTS ============ */
.alert {
    border-radius: 8px;
    font-size: 13.5px;
    border: none;
    padding: 12px 16px;
    font-weight: 500;
}

.alert-success {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: var(--warning-light);
    color: var(--warning);
    border: 1px solid #fde68a;
}

.alert-info {
    background-color: var(--info-light);
    color: var(--info);
    border: 1px solid #a5f3fc;
}

/* ============ PROFILE SECTION ============ */
.img-circle {
    border: 3px solid var(--primary) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Profile image centering */
.well .text-center .img-circle {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ============ FORM INLINE FILTER BAR ============ */
.form-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.form-inline .form-group {
    margin-right: 0;
    margin-bottom: 0;
}

.form-inline .form-control {
    font-size: 13px;
    height: 36px;
}

.form-inline .btn {
    margin-left: 0;
}

/* ============ MISCELLANEOUS ============ */
.for-sale {
    display: none;
}

@media(max-width: 767px) {
    .btn-menu {
        width: auto;
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 6px;
    }
}

/* ============ BREAK MANAGEMENT ============ */
.break-panel {
    margin-top: 8px;
    padding-top: 0;
}

.break-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.break-type-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 14px;
    text-align: left;
}

.break-type-card .break-type-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.break-time-row {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 3px;
}

.break-time-row .break-time-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 4px;
}

.break-active-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.break-active-alert .glyphicon-time {
    animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

@media (max-width: 767px) {
    .break-type-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .break-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Glyphicon styling */
.glyphicon {
    font-size: 14px;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Panel overrides */
.panel {
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}

.panel-default>.panel-heading {
    background: #f8fafc;
    border-color: var(--border-color);
    border-radius: var(--card-radius) var(--card-radius) 0 0;
}

/* Progress indicators in task table */
.table-custom .glyphicon-refresh {
    color: var(--warning) !important;
}

.table-custom .glyphicon-ok {
    color: var(--success) !important;
}

.table-custom .glyphicon-remove {
    color: var(--danger) !important;
}

/* Table links */
.table-custom a:hover .glyphicon {
    color: var(--primary) !important;
}

/* ============ MARQUEE HEADER ============ */
marquee {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

marquee span {
    color: var(--text-secondary) !important;
}

marquee strong {
    color: var(--primary);
}

/* ============ DROPDOWN OVERRIDES ============ */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 6px;
}

.dropdown-menu>li>a {
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-primary);
    border-radius: 6px;
    transition: var(--transition);
}

.dropdown-menu>li>a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============ PAGINATION ============ */
.pagination>li>a {
    color: var(--primary);
    border-color: var(--border-color);
    border-radius: 6px;
    margin: 0 2px;
    font-size: 13px;
}

.pagination>li.active>a {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ============ BADGES & LABELS ============ */
.label {
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.label-primary {
    background-color: var(--primary);
}

.label-success {
    background-color: var(--success);
}

.label-danger {
    background-color: var(--danger);
}

.label-warning {
    background-color: var(--warning);
}

/* ============ BTN GROUP SPACING ============ */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.btn-group .btn+.btn,
.btn-group .btn+a.btn,
.btn-group a.btn+.btn {
    margin-left: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
    .main>.row {
        display: block;
    }

    .main>.row>[class*="col-"] {
        display: block;
    }

    .main>.row>[class*="col-"]>.well {
        display: block;
    }
}

@media (max-width: 767px) {
    .main {
        padding: 16px 14px;
    }

    .well {
        padding: 16px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .table-custom>thead>tr>th,
    .table-custom>tbody>tr>td {
        padding: 10px 12px;
        font-size: 12px;
    }

    h3 {
        font-size: 18px;
    }

    .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .form-inline .form-group {
        margin-bottom: 8px;
        display: block;
        width: 100%;
    }

    .form-inline .form-control {
        width: 100%;
    }

    .form-inline .btn {
        width: 100%;
    }

    .pull-right {
        float: none !important;
    }

    center h3 {
        font-size: 16px;
    }

    .btn-group {
        width: 100%;
    }

    .btn-group .btn {
        flex: 1;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
        gap: 6px;
    }

    .btn-group .btn {
        margin-left: 0 !important;
        width: 100%;
    }
}

/* ============ NAVBAR INVERSE OVERRIDES ============ */
.navbar-inverse {
    background-color: var(--sidebar-bg);
    border-color: transparent;
}

.navbar-inverse .navbar-brand {
    color: #ffffff;
}

.navbar-inverse .navbar-nav>li>a {
    color: var(--sidebar-text);
}

/* ============ SELECTION COLORS ============ */
::selection {
    background: var(--primary);
    color: #ffffff;
}

::-moz-selection {
    background: var(--primary);
    color: #ffffff;
}

/* ============ SMOOTH ANIMATIONS ============ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.well,
.table-responsive,
.modal-content {
    animation: fadeIn 0.3s ease-out;
}

/* ============ PASSWORD CHANGE FORM ============ */
#employee_pass_cng,
#admin_pass_cng {
    margin-top: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* ============ PRINT STYLES ============ */
@media print {
    nav.sidebar {
        display: none !important;
    }

    .main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .btn {
        display: none !important;
    }
}

/* ============================================
   PREMIUM SAAS UI DESIGN SYSTEM OVERRIDES
   ============================================ */

/* 1. Global Layout & Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-light: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --sidebar-bg: #1e293b;
    --sidebar-active: #334155;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #16a34a;
    --success-hover: #15803d;
    --danger: #dc2626;
    --danger-hover: #b91c1c;
    --border-color: #e2e8f0;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

.main {
    padding: 24px 30px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

h3 {
    font-size: 20px;
    margin-top: 8px;
}

/* 2. Cards (Wells & Panels) */
.well,
.panel,
.admin-custom .panel {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: var(--card-shadow) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    transition: all 0.2s ease-in-out;
}

.well:hover,
.panel:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08) !important;
}

.well-custom {
    min-height: auto;
}

/* 3. Sidebar */
nav.sidebar {
    background: var(--sidebar-bg) !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

nav.sidebar .navbar-nav-custom>li>a {
    color: #cbd5e1 !important;
    font-weight: 500;
    padding: 14px 20px !important;
    transition: all 0.2s;
}

nav.sidebar .navbar-nav-custom>li>a:hover {
    background: var(--sidebar-active) !important;
    color: #ffffff !important;
}

nav.sidebar .navbar-nav-custom>.active>a {
    background: var(--sidebar-active) !important;
    color: #ffffff !important;
    border-left: 4px solid var(--primary);
}

nav.sidebar .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    padding: 20px;
    letter-spacing: 0.5px;
}

/* 4. Buttons */
.btn {
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-weight: 500 !important;
    border: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary,
.btn-info {
    background-color: var(--primary) !important;
    color: white !important;
}

.btn-primary:hover,
.btn-info:hover {
    background-color: var(--primary-hover) !important;
}

.btn-success,
.btn-success-custom {
    background-color: var(--success) !important;
    color: white !important;
}

.btn-success:hover,
.btn-success-custom:hover {
    background-color: var(--success-hover) !important;
}

.btn-danger,
.btn-danger-custom {
    background-color: var(--danger) !important;
    color: white !important;
}

.btn-danger:hover,
.btn-danger-custom:hover {
    background-color: var(--danger-hover) !important;
}

/* 5. Forms & Inputs */
.form-control,
.input-custom {
    border-radius: 8px !important;
    padding: 10px 14px !important;
    border: 1px solid #d1d5db !important;
    /* height: auto !important; */
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: none !important;
    background-color: #ffffff;
    transition: all 0.2s;
}

.form-control:focus,
.input-custom:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
    outline: none;
}

.control-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 6. Tables */
.table-custom,
.table-single-product {
    background: #ffffff;
    border-radius: 12px;
    border-collapse: hidden;
    overflow: hidden;
    width: 100%;
    border: 1px solid var(--border-color);
}

.table-custom>thead>tr>th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.table-custom>tbody>tr>td {
    padding: 14px 18px;
    color: var(--text-primary);
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 13.5px;
    line-height: 1.5;
}

.table-custom>tbody>tr:hover {
    background-color: #f8fafc;
    transition: background-color 0.15s ease;
}

/* Status label refinements */
.table-custom .label {
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
    display: inline-block;
}

/* ============================================
   TASK TABLE SCOPED STYLES (.task-table)
   ============================================ */
.task-table {
    table-layout: fixed;
}

.task-table>tbody>tr:nth-child(even) {
    background-color: #fafbfc;
}

.task-table>tbody>tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

/* Task table column widths */
.task-table>thead>tr>th:nth-child(1),
.task-table>tbody>tr>td:nth-child(1) {
    width: 15%;
}

.task-table>thead>tr>th:nth-child(2),
.task-table>tbody>tr>td:nth-child(2) {
    width: 25%;
}

.task-table>thead>tr>th:nth-child(3),
.task-table>tbody>tr>td:nth-child(3),
.task-table>thead>tr>th:nth-child(4),
.task-table>tbody>tr>td:nth-child(4) {
    width: 16%;
    text-align: center;
}

.task-table>thead>tr>th:nth-child(5),
.task-table>tbody>tr>td:nth-child(5) {
    width: 10%;
    text-align: center;
}

.task-table>thead>tr>th:nth-child(6),
.task-table>tbody>tr>td:nth-child(6) {
    width: 14%;
    text-align: center;
}

/* Task table description cell */
.task-table>tbody>tr>td:nth-child(2) {
    vertical-align: top;
    padding-top: 16px;
}

/* Task table title cell */
.task-table>tbody>tr>td:first-child {
    font-weight: 600;
    color: #1e293b;
}

/* Task table date cells */
.task-table .task-date {
    font-size: 12.5px;
    color: #475569;
    line-height: 1.5;
    white-space: nowrap;
}

/* 7. Modals */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    padding: 20px;
}

.modal-body {
    padding: 24px;
}

/* 8. Dashboard Grid Alignment */
.main>.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
}

.main>.row>[class*="col-"] {
    padding-right: 12px;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
}

.main>.row>[class*="col-"]>.well {
    flex: 1;
}

/* 9. Alerts */
.alert {
    border-radius: 8px;
    padding: 12px 16px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
}

.alert-warning {
    background: #fef9c3;
    color: #854d0e;
}

/* Dashboard Top Section Flexbox Layout */
.dashboard-top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.dashboard-top-section>.col-md-8 {
    width: auto;
    flex: 1;
    padding-left: 0;
}

.dashboard-top-section>.col-md-4 {
    width: auto;
    padding-right: 0;
}

/* 3 Cards Gap & Alignment */
.dashboard-top-section .row {
    display: flex;
    gap: 20px;
    margin: 12px 0 16px 0 !important;
}

.dashboard-top-section .col-sm-4 {
    width: 33.333%;
    padding: 0;
}

.dashboard-top-section .well.text-center {
    height: 100%;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 16px;
}

/* Filter area alignment */
.dashboard-top-section .form-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Responsive Stacking */
@media (max-width: 991px) {
    .dashboard-top-section {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-top-section>.col-md-8,
    .dashboard-top-section>.col-md-4 {
        width: 100%;
        padding: 0;
    }

    .dashboard-top-section>.col-md-4 {
        margin-top: 20px;
    }

    .dashboard-top-section .form-inline {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .dashboard-top-section .row {
        flex-direction: column;
    }

    .dashboard-top-section .col-sm-4 {
        width: 100%;
    }
}

/* ============================================
   FILTER SECTION UI ENHANCEMENTS
   ============================================ */

/* Filter Container Alignment */
.dashboard-top-section .form-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

/* Ensure inputs and select boxes behave consistently */
.dashboard-top-section .form-inline .form-group {
    margin-bottom: 0;
    display: flex;
}

/* Modern Inputs & Dropdowns */
.dashboard-top-section .form-inline .form-control {
    height: 40px !important;
    padding: 8px 14px;
    border-radius: 8px !important;
    border: 1px solid #d1d5db;
    font-size: 14px;
    background-color: #ffffff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
}

.dashboard-top-section .form-inline .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

/* Buttons Styling */
.dashboard-top-section .form-inline .btn {
    height: 40px;
    padding: 0 18px !important;
    font-size: 14px !important;
    font-weight: 500;
    border-radius: 8px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Primary Filter Button */
.dashboard-top-section .form-inline .btn-primary {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

.dashboard-top-section .form-inline .btn-primary:hover {
    background-color: #1d4ed8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

/* Default Reset Button */
.dashboard-top-section .form-inline .btn-default {
    background-color: #e5e7eb !important;
    color: #111827 !important;
    border: 1px solid #d1d5db !important;
}

.dashboard-top-section .form-inline .btn-default:hover {
    background-color: #d1d5db !important;
    transform: translateY(-1px);
}

/* Responsive Scaling for Filters */
@media (max-width: 768px) {
    .dashboard-top-section .form-inline {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .dashboard-top-section .form-inline .form-group,
    .dashboard-top-section .form-inline .form-control,
    .dashboard-top-section .form-inline .btn {
        width: 100%;
    }
}

/* ============================================
   DATE INPUT & DROPDOWN UI FIXES (FILTER SECTION)
   ============================================ */

/* Standardize Height, Border-Radius & Clean Borders for all elements */
.dashboard-top-section .form-inline .form-control,
.dashboard-top-section .form-inline .btn {
    height: 38px !important;
    border-radius: 6px !important;
    font-size: 14px;
}

/* Proper padding and clean border for inputs */
.dashboard-top-section .form-inline .form-control {
    padding: 6px 12px;
    border: 1px solid #d1d5db !important;
    background-color: #ffffff;
}

/* Limit width for Date Input specifically */
.dashboard-top-section .form-inline input[type="date"].form-control {
    max-width: 170px;
}

/* Fix Dropdown Icon wrapping and visibility */
.dashboard-top-section .form-inline select.form-control {
    padding-right: 35px !important;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='%236b7280'%3E%3Cpath d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    cursor: pointer;
}

/* Align spacing consistently across inline form */
.dashboard-top-section .form-inline {
    gap: 12px;
    align-items: center;
}

/* Button Padding Adjustments */
.dashboard-top-section .form-inline .btn {
    padding: 0 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   DASHBOARD GRID & NOTIFICATION PANEL UI
   ============================================ */

.dashboard-grid-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: stretch;
}

.dashboard-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.stat-title {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
}

.action-buttons-group {
    margin-top: auto;
}

.notification-panel-wrapper {
    width: 100%;
    margin-top: 25px;
}

.notification-panel {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.notification-header {
    background: #f8fafc;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-icon {
    color: #64748b;
    margin-right: 8px;
    top: 2px;
}

.notification-badge {
    background: #ef4444;
    font-size: 11px;
    padding: 4px 8px;
    margin-left: 8px;
    vertical-align: text-bottom;
}

.notification-list {
    padding: 0;
    margin: 0;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

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

.notification-item.unread {
    background: #f0fdf4;
}

.notification-msg {
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    margin-bottom: 6px;
    font-weight: 500;
}

.notification-item:not(.unread) .notification-msg {
    color: #475569;
    font-weight: 400;
}

.notification-time {
    font-size: 11px;
    color: #94a3b8;
}

.notification-empty {
    padding: 30px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

.mark-read-btn {
    color: #475569 !important;
    background: transparent !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.2s;
}

.mark-read-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

@media (max-width: 991px) {
    .dashboard-grid-container {
        flex-direction: column;
    }
    .notification-panel-wrapper {
        width: 100%;
        margin-top: 20px;
    }
}

/* ============================================
   TASK TABLE ACTION ICONS
   ============================================ */
.task-action-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.action-icon .glyphicon {
    font-size: 13px;
    top: 0;
}

/* Edit icon */
.action-edit {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.action-edit:hover {
    color: #ffffff;
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

/* View icon */
.action-view {
    color: #059669;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.action-view:hover {
    color: #ffffff;
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(5, 150, 105, 0.3);
}

/* Delete icon */
.action-delete {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.action-delete:hover {
    color: #ffffff;
    background: #dc2626;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(220, 38, 38, 0.3);
}

/* Single line description preview */
.desc-one-line {
    font-size: 13px;
    line-height: 1.6;
    color: #475569;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

/* ============================================
   RESPONSIVE & OVERFLOW FIXES
   ============================================ */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.action-buttons .btn {
    height: 36px;
    padding: 5px 12px;
    font-size: 13px;
    margin: 0 !important;
}

.responsive-table {
    word-break: break-word;
}

@media (max-width: 768px) {
    .responsive-table {
        overflow-x: auto;
        display: block;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    .well, .card {
        display: flex;
        flex-direction: column;
    }
    
    .filter-section {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-section .form-group {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }
    
    .filter-section .form-control {
        width: 100% !important;
    }

    .action-buttons {
        width: 100%;
    }

    .action-buttons .btn {
        width: 100%;
    }
    
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
    
    .main {
        margin-left: 0;
    }
}

/* ============================================
   PROJECT DETAILS HTML WRAPPER 
   ============================================ */
.project-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.project-actions .btn {
    height: 36px;
    padding: 6px 12px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .project-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .project-actions .btn {
        width: 100%;
    }
}

/* ============================================
   ATTENDANCE HISTORY FILTER SECTION
   ============================================ */
.filter-section {
    display: flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-section .form-group {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-section select,
.filter-section input[type="date"],
.filter-section .btn {
    height: 38px !important;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
}

/* Dropdown specific fix */
.filter-section select.form-control {
    min-width: 200px;
    padding-right: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.filter-section label {
    margin-bottom: 0 !important;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
        align-items: stretch;
        width: 100% !important;
    }
    
    .filter-section .form-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .filter-section select,
    .filter-section input[type="date"],
    .filter-section .btn {
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .col-md-8.text-right {
        text-align: left !important;
        margin-top: 15px;
    }
}