/* ============================================
   HRMS - Main Stylesheet
   Modern, Professional Design System
   ============================================ */

 :root {
    --sidebar-width: 260px;
    --sidebar-bg: #f0f5f4;
    --sidebar-active: #0f7b6c;
    --sidebar-active-text: #fff;
    --sidebar-text: #4a5568;
    --sidebar-hover: #e2eeec;
    --body-bg: #f5f7fa;
    --card-bg: #ffffff;
    --card-border: #e8ecef;
    --card-radius: 12px;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --text-primary: #022D36;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    --accent-teal: #0f7b6c;
    --accent-teal-light: #e6f5f2;
    --accent-green: #375A64;
    --accent-blue: #3182ce;
    --accent-red: #e53e3e;
    --accent-orange: #dd6b20;
    --accent-yellow: #d69e2e;
    --border-color: #e2e8f0;
    --font-family: "Nunito Sans", sans-serif;
    --topbar-height: 60px;
    --tab-height: 48px;
    --transition: all 0.3s ease;
}


/* ---------- Reset & Base ---------- */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}


/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Nunito Sans", sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}


/* ============================================
   LAYOUT STRUCTURE
   ============================================ */

.wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    min-height: 100vh;
}
/* ============================================
   SIDEBAR STYLES
   ============================================ */

.sidebar {
    width: 260px;
    background: #CFE3E7;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
}

.sidebar::-webkit-scrollbar {
    width: 5px;
}

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

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(45, 95, 93, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 95, 93, 0.3);
}

.sidebar-header {
    padding: 15px 20px;
    position: relative;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    color: #2D5F5D;
    letter-spacing: 0.5px;
    margin: 0;
}

.logo span {
    color: var(--text-primary);
}

.menu-toggle-btn {
    display: none;
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #2D5F5D;
    cursor: pointer;
    padding: 5px;
    -webkit-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.menu-toggle-btn:hover {
    opacity: 0.7;
}


/* Navigation Menu */

.sidebar-nav {
    padding: 0;
}

.nav-menu {
    list-style: none;
    padding: 10px 12px;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
    position: relative;
}

.nav-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 11px 14px;
    color: #375A64;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(45, 95, 93, 0.08);
    color: #375A64;
    -webkit-transform: translateX(2px);
    -ms-transform: translateX(2px);
    transform: translateX(2px);
}

.nav-link:focus {
    color: #375A64;
}

.nav-item.active .nav-link {
    background-color: #2D5F5D;
    color: #FFFFFF;
    font-weight: 600;
}

.nav-icon {
    width: 18px;
    margin-right: 11px;
    font-size: 15px;
}

.nav-submenu {
    width: 100%;
    position: relative;
    display: none;
    z-index: 999;
    padding-left: 20px;
    list-style: none;
}

.nav-submenu ul {
    width: 100%;
    position: relative;
    display: none;
    z-index: 999;
    list-style: none;
    padding-left: 15px;
}

.nav-submenu li {
    margin: 6px 0;
    position: relative;
}

.nav-submenu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #375A64;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-submenu li a:hover {
    color: #000;
    background: #8FBECA;
}

.drop-icon {
    display: block;
    position: absolute;
    right: 10px;
    font-size: 16px;
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.sidebar-nav ul li.active a .drop-icon {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(-180deg);
    transform: rotate(180deg);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.sub-menu li a.subActive .drop-icon {
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}


/* ============================================
   MAIN CONTENT AREA
   ============================================ */

.main-content {
    margin-left: 260px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    -webkit-transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}


/* ============================================
   TOP HEADER
   ============================================ */

.top-header {
    background: #FFFFFF;
    height: 75px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    border-bottom: 1px solid #E8EEF2;
    position: sticky;
    top: 0;
    z-index: 999;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2D5F5D;
    cursor: pointer;
    padding: 8px;
    -webkit-transition: opacity 0.2s;
    -o-transition: opacity 0.2s;
    transition: opacity 0.2s;
}

.hamburger:hover {
    opacity: 0.7;
}


/* Search Box */

.search-box {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #6B8583;
    font-size: 15px;
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 44px;
    border: none;
    background: #D8E9E7;
    border-radius: 22px;
    padding: 0 20px 0 48px;
    font-size: 16px;
    color: #2D5F5D;
    outline: none;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.search-input:focus {
    background: #FFFFFF;
    -webkit-box-shadow: 0 0 0 3px rgba(45, 95, 93, 0.1);
    box-shadow: 0 0 0 3px rgba(45, 95, 93, 0.1);
}

.search-input::-webkit-input-placeholder {
    color: #8B9D9B;
}

.search-input::-moz-placeholder {
    color: #8B9D9B;
}

.search-input:-ms-input-placeholder {
    color: #8B9D9B;
}

.search-input::-ms-input-placeholder {
    color: #8B9D9B;
}

.search-input::placeholder {
    color: #8B9D9B;
}


/* Header Right Section */

.header-right {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.notif-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #6B8583;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.notif-btn:hover {
    background: #F0F4F8;
    color: #2D5F5D;
}


/* Language Selector */

.lang-selector {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    background: #F0F4F8;
    padding: 8px 14px;
    border-radius: 8px;
    -webkit-transition: background 0.2s;
    -o-transition: background 0.2s;
    transition: background 0.2s;
}

.lang-selector:hover {
    background: #E8EEF2;
}

.flag {
    width: 22px;
    height: 16px;
    -o-object-fit: cover;
    object-fit: cover;
    border-radius: 2px;
}

.lang-select {
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #2D5F5D;
    cursor: pointer;
    outline: none;
    padding: 0;
}


/* User Section */

.user-section {
    position: relative;
}

.user-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    background: transparent;
    border: none;
}

.user-btn:hover {
    background: #F0F4F8;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    border: 2px solid #E8EEF2;
}

.user-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: left;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: #2D5F5D;
    line-height: 1.2;
}

.user-role {
    font-size: 12px;
    color: #6B8583;
    line-height: 1.2;
}

.dropdown-icon {
    color: #6B8583;
    font-size: 12px;
    margin-left: 4px;
}


/* ============================================
   PAGE CONTENT
   ============================================ */

.page-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: start;
    gap: 16px;
    margin-bottom: 28px;
}

.back-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #2D5F5D;
    font-size: 18px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 6px;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.back-btn:hover {
    background: #F0F4F8;
}

.page-title {
    font-size: 22px;
    font-weight: 600;
    color: #1A2B2A;
    margin: 0;
}


/* ============================================
   FORM CARD
   ============================================ */

.form-card {
    background: #CFE3E7;
    border-radius: 12px;
    padding: 40px;
    border: 1px solid #E8EEF2;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    -webkit-animation: fadeInUp 0.4s ease-out;
    animation: fadeInUp 0.4s ease-out;
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(20px);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.form-title {
    font-size: 18px;
    font-weight: 600;
    color: #1A2B2A;
    text-align: center;
    margin-bottom: 36px;
}


/* Form Grid */

.form-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 20px 1fr 20px 1fr 20px 1fr;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

.field-label {
    font-size: 13px;
    font-weight: 500;
    color: #6B8583;
    margin-bottom: 8px;
}

.form-card .form-input {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #E0E6EB;
    background: #fff;
    font-size: 14px;
    color: var(--text-primary);
    padding: 8px 14px;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}


/* Form Inputs */

.form-input,
.form-select {
    height: 44px;
    border: 1px solid #E0E6EB;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 14px;
    color: #022D36;
    background: #FFFFFF;
    outline: none;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus {
    border-color: #E0E6EB;
    -webkit-box-shadow: inherit;
    box-shadow: inherit;
}

.form-input::-webkit-input-placeholder {
    color: #B0BFBD;
}

.form-input::-moz-placeholder {
    color: #B0BFBD;
}

.form-input:-ms-input-placeholder {
    color: #B0BFBD;
}

.form-input::-ms-input-placeholder {
    color: #B0BFBD;
}

.form-input::placeholder {
    color: #B0BFBD;
}

.form-input.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
}

.form-input.is-invalid~.invalid-feedback,
.form-select.is-invalid~.invalid-feedback {
    display: block;
}


/* Select Dropdown */

.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B8583' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select option {
    color: #1A2B2A;
}


/* Expand Button */

.expand-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 28px 0 32px 0;
}

.expand-icon {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #B0BFBD;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.expand-icon:hover {
    background: #F0F4F8;
    color: #2D5F5D;
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}


/* Form Actions */

.form-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.submit-btn {
    background: #2D5F5D;
    color: #FFFFFF;
    border: none;
    padding: 13px 42px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    position: relative;
    min-width: 130px;
}

.submit-btn:hover {
    background: #234A48;
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
    -webkit-box-shadow: 0 4px 12px rgba(45, 95, 93, 0.25);
    box-shadow: 0 4px 12px rgba(45, 95, 93, 0.25);
}

.submit-btn:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-spinner {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.btn-spinner {
    display: none;
}


/* ============================================
   OVERLAY
   ============================================ */

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.overlay.active {
    display: block;
    opacity: 1;
}


/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        -webkit-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: 0.01ms !important;
        -o-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================
   DATA TABLE STYLES
   ============================================ */

.table-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 0;
    border: 1px solid #E8EEF2;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.table-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #E8EEF2;
    gap: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.table-filters {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 20px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.sort-section {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 13px;
    font-weight: 500;
    color: #6B8583;
    margin: 0;
}

.filter-select {
    min-width: 180px;
    height: 42px;
    border: 1px solid #E0E6EB;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 14px;
    color: #1A2B2A;
    background: #FFFFFF;
    cursor: pointer;
    outline: none;
}

.search-section {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    max-width: 400px;
}

.search-section .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #6B8583;
    font-size: 14px;
}

.filter-search {
    width: 100%;
    height: 42px;
    border: 1px solid #E0E6EB;
    border-radius: 6px;
    padding: 0 14px 0 38px;
    font-size: 14px;
    color: #1A2B2A;
    outline: none;
}

.filter-search::-webkit-input-placeholder {
    color: #B0BFBD;
}

.filter-search::-moz-placeholder {
    color: #B0BFBD;
}

.filter-search:-ms-input-placeholder {
    color: #B0BFBD;
}

.filter-search::-ms-input-placeholder {
    color: #B0BFBD;
}

.filter-search::placeholder {
    color: #B0BFBD;
}

.table-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
}

.export-btn {
    padding: 10px 20px;
    border: 1px solid #2D5F5D;
    background: transparent;
    color: #2D5F5D;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.export-btn:hover {
    background: #2D5F5D;
    color: #FFFFFF;
}

.add-btn {
    padding: 10px 24px;
    border: none;
    background: #E97575;
    color: #FFFFFF;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.add-btn:hover {
    background: #D96565;
}


/* Data Table */

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    padding: 12px 12px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #6B8583;
    background: #F7F9FB;
    border-bottom: 1px solid #E8EEF2;
}

.data-table tbody td {
    padding: 12px 12px;
    font-size: 14px;
    color: #1A2B2A;
    border-bottom: 1px solid #F0F4F8;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: #F7F9FB;
}

.action-link {
    color: #E97575;
    text-decoration: none;
    font-weight: 500;
    -webkit-transition: color 0.2s;
    -o-transition: color 0.2s;
    transition: color 0.2s;
}

.action-link:hover {
    color: #D96565;
}


/* ============================================
   BRANCHES PAGE STYLES
   ============================================ */

.branches-sidebar {
    width: 240px;
    background: #F7F9FB;
    border-right: 1px solid #E8EEF2;
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #1A2B2A;
    margin-bottom: 12px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: block;
    padding: 8px 12px;
    color: #6B8583;
    text-decoration: none;
    font-size: 13px;
    border-radius: 6px;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #2D5F5D;
    color: #FFFFFF;
}

.branches-table {
    width: 100%;
    border-collapse: collapse;
}

.branches-table thead th {
    padding: 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #6B8583;
    background: #F7F9FB;
    border-bottom: 1px solid #E8EEF2;
}

.branches-table tbody td {
    padding: 6px 10px;
    font-size: 14px;
    color: #1A2B2A;
    border: 1px solid #F0F4F8;
    vertical-align: middle;
    white-space: nowrap;
}

.table-icon-btn {
    background: none;
    border: none;
    color: #6B8583;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    -webkit-transition: color 0.2s;
    -o-transition: color 0.2s;
    transition: color 0.2s;
}

.table-icon-btn:hover {
    color: #2D5F5D;
}

.table-icon-btn.delete-btn:hover {
    color: #E97575;
}


/* ============================================
   MODAL STYLES
   ============================================ */

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0;
    line-height: var(--bs-modal-title-line-height);
}


/* ============================================
   DASHBOARD STYLES
   ============================================ */

.alert-banner {
    background: #CFE3E7;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    font-size: 14px;
    color: #1A2B2A;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6B8583;
    cursor: pointer;
}

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

.graph {
    max-width: 180px;
    height: auto;
    margin: 0 auto;
}

.stat-card {
    background: #EAF3F5;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #E8EEF2;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 100%;
}

.stat-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1A2B2A;
    margin-bottom: 8px;
}

.stat-description {
    font-size: 14px;
    color: var(--text-primary);
}


/* Chart Container */

.chart-card {
    background: #EAF3F5;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #E8EEF2;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.chart-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 24px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.attendance-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 12px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background-color: #3C92AA;
    background-image: -webkit-gradient(linear, left top, right top, from(#3C92AA), to(#022D36));
    background-image: -o-linear-gradient(left, #3C92AA, #022D36);
    background-image: linear-gradient(to right, #3C92AA, #022D36);
    padding: 12px;
    border-radius: 12px;
    color: #FFFFFF;
}

.attendance-item .text-muted {
    color: #fff !important;
}


/* User Profile Page */

.profile-tabs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 2px;
    border-bottom: 2px solid #E8EEF2;
    margin-bottom: 28px;
    overflow-x: auto;
}

.profile-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #6B8583;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.profile-tab.active {
    color: #2D5F5D;
    border-bottom-color: #2D5F5D;
}

.profile-tab:hover {
    color: #2D5F5D;
}

.profile-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 350px 24px 1fr;
    grid-template-columns: 350px 1fr;
    gap: 24px;
}

.profile-sidebar-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #E8EEF2;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    -o-object-fit: cover;
    object-fit: cover;
    margin-bottom: 20px;
}

.profile-name {
    font-size: 22px;
    font-weight: 600;
    color: #1A2B2A;
    margin-bottom: 4px;
}

.profile-position {
    font-size: 14px;
    color: #6B8583;
    margin-bottom: 16px;
}

.profile-info-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}

.profile-info-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #F0F4F8;
}

.profile-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #D8E9E7;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #2D5F5D;
    font-size: 16px;
}

.profile-info-text {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.profile-info-label {
    font-size: 12px;
    color: #8B9D9B;
    display: block;
}

.profile-info-value {
    font-size: 14px;
    color: #1A2B2A;
    font-weight: 500;
}


/* Calendar Styles */

.calendar-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #E8EEF2;
}

.calendar-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-month {
    font-size: 16px;
    font-weight: 600;
    color: #1A2B2A;
}

.calendar-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 8px;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #E0E6EB;
    background: #FFFFFF;
    border-radius: 6px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: #F7F9FB;
    border-color: #2D5F5D;
    color: #2D5F5D;
}

.calendar-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 4px 1fr 4px 1fr 4px 1fr 4px 1fr 4px 1fr 4px 1fr;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #6B8583;
    padding: 8px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 13px;
    color: #1A2B2A;
    border-radius: 6px;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: #F0F4F8;
}

.calendar-day.today {
    background: #2D5F5D;
    color: #FFFFFF;
    font-weight: 600;
}

.calendar-day.has-leave {
    background: #D8E9E7;
}

.calendar-day.absent {
    background: #FFE5E5;
}


/*  */


/* ============================================
   TAB NAVIGATION
   ============================================ */

.tab-navigation {
    padding: 0 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tab-navigation::-webkit-scrollbar {
    height: 0;
}

.tab-navigation .nav-tabs {
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    min-width: -webkit-max-content;
    min-width: -moz-max-content;
    min-width: max-content;
}

.tab-navigation .nav-link {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

.tab-navigation .nav-link:hover {
    color: var(--accent-teal);
    border-bottom-color: rgba(15, 123, 108, 0.3);
}

.tab-navigation .nav-link.active {
    color: var(--accent-teal);
    border-bottom-color: var(--accent-teal);
    background: transparent;
}


/* ============================================
   CONTENT GRID
   ============================================ */

.tab-content {
    padding: 20px;
}

.content-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 20px 320px;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}


/* ============================================
   CARD STYLES
   ============================================ */

.card-custom {
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    -webkit-box-shadow: var(--card-shadow);
    box-shadow: var(--card-shadow);
    background: #EAF3F5;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

.card-custom:hover {
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card-custom .card-body {
    padding: 18px;
}

.card-title-custom {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-subtitle-custom {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
}


/* ============================================
   EMPLOYEE CARD
   ============================================ */

.employee-avatar-wrapper {
    display: inline-block;
    position: relative;
}

.employee-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    border: 3px solid var(--accent-teal-light);
}

.employee-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.employee-tags {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.tag-role,
.tag-department {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tag-role {
    background: #edf2f7;
    color: var(--text-primary);
}

.tag-department {
    background: #edf2f7;
    color: var(--text-primary);
}

.employee-id-status {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
}

.emp-id {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

.badge-active {
    display: inline-block;
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--accent-teal);
    color: #fff;
}

.employee-info-list {
    margin-top: 16px;
}

.info-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    color: var(--text-primary);
}

.info-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}


/* Social Icons */

.social-icons {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    gap: 8px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.whatsapp {
    background: #25d366;
}

.social-icon.linkedin {
    background: #0077b5;
}

.social-icon:hover {
    opacity: 0.85;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
}


/* ============================================
   LEAVE STATISTICS
   ============================================ */

.leave-stat-item {
    text-align: center;
}

.leave-circle {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
}

.leave-circle svg {
    width: 100%;
    height: 100%;
    -webkit-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
}

.leave-circle .bg {
    fill: none;
    stroke: #e8ecef;
    stroke-width: 5;
}

.leave-circle .progress-ring {
    fill: none;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    -webkit-transition: stroke-dashoffset 1.5s ease;
    -o-transition: stroke-dashoffset 1.5s ease;
    transition: stroke-dashoffset 1.5s ease;
}

.all-leave .progress-ring {
    stroke: var(--accent-teal);
}

.annual-leave .progress-ring {
    stroke: var(--accent-blue);
}

.casual-leave .progress-ring {
    stroke: var(--accent-orange);
}

.sick-leave .progress-ring {
    stroke: var(--accent-red);
}

.leave-count {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.leave-label {
    font-size: 12px;
    color: var(--text-primary);
    margin: 0;
    font-weight: 500;
}


/* ============================================
   PERFORMANCE CHART
   ============================================ */

.performance-chart-wrapper {
    position: relative;
    height: 180px;
}

.performance-score {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-teal);
    z-index: 5;
}


/* ============================================
   PERSONAL DETAILS
   ============================================ */

.personal-detail-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 14px;
}

.detail-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    gap: 12px;
}

.detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-teal-light);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    color: var(--accent-teal);
    font-size: 16px;
}

.detail-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-top: 1px;
}


/* ============================================
   HOURS LOGGED
   ============================================ */

.hours-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.hours-chart-wrapper {
    height: 160px;
}


/* ============================================
   INTERNAL NOTES
   ============================================ */

.notes-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}


/* ============================================
   DOCUMENTS LIST
   ============================================ */

.documents-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 10px;
}

.doc-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--body-bg);
    cursor: pointer;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

.doc-item:hover {
    background: var(--accent-teal-light);
}

.doc-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fef2f2;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    color: var(--accent-red);
    font-size: 18px;
}

.doc-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.doc-meta {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}


/* ============================================
   CALENDAR
   ============================================ */

.calendar-header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 12px;
}

.calendar-month {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.calendar-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 4px;
}

.btn-calendar-nav {
    width: 30px;
    height: 30px;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--accent-teal);
    color: #fff;
    border: none;
    font-size: 14px;
    -webkit-transition: var(--transition);
    -o-transition: var(--transition);
    transition: var(--transition);
}

.btn-calendar-nav:hover {
    background: #0a6b5e;
    color: #fff;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.calendar-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 4px;
}

.calendar-table td {
    padding: 6px 4px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 6px;
    position: relative;
}

.calendar-table td:hover:not(.empty):not(.other-month) {
    background: var(--accent-teal-light);
}

.calendar-table td.today {
    background: var(--accent-teal);
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
}

.calendar-table td.weekend {
    color: var(--accent-red);
}

.calendar-table td.other-month {
    color: var(--text-muted);
    opacity: 0.5;
}

.calendar-table td.empty {
    cursor: default;
}


/* Calendar Legend */

.calendar-legend {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.legend-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-secondary);
}

.legend-item strong {
    color: var(--text-primary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.legend-dot.on-leave {
    background: var(--accent-blue);
}

.legend-dot.present {
    background: var(--accent-green);
}

.legend-dot.late {
    background: var(--accent-yellow);
}

.legend-dot.absent {
    background: var(--accent-red);
}


/* ============================================
   SALARY BREAKDOWN
   ============================================ */

.salary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.salary-table thead th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 4px;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.salary-table tbody td {
    padding: 7px 4px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
}

.salary-table .section-header td {
    padding-top: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
}

.salary-table .total-row td {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: #f8fffe;
}

.salary-table .grand-total-row td {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 14px;
    border-top: 2px solid var(--accent-teal);
    border-bottom: none;
    color: var(--accent-teal);
}


/* ============================================
   DROPDOWN STYLING
   ============================================ */

.dropdown-toggle {
    font-size: 13px;
    border-radius: 6px;
}

.dropdown-menu {
    font-size: 13px;
    border-radius: 8px;
    -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.dropdown-item:active {
    background: var(--accent-teal);
}


/* ============================================
   ANIMATION
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(15px);
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.card-custom {
    -webkit-animation: fadeInUp 0.4s ease forwards;
    animation: fadeInUp 0.4s ease forwards;
}

.row>.col-lg-4:nth-child(2) .card-custom,
.row>.col-lg-8 .card-custom:nth-child(2) {
    -webkit-animation-delay: 0.1s;
    animation-delay: 0.1s;
}

.row>.col-lg-4:nth-child(3) .card-custom {
    -webkit-animation-delay: 0.2s;
    animation-delay: 0.2s;
}


/*  */


/* ==============================================
   BREADCRUMB
   ============================================== */

.breadcrumb-bar {
    padding: 12px 24px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    font-size: 13px;
}

.breadcrumb-item a {
    color: var(--text-mid);
    -webkit-transition: var(--ease);
    -o-transition: var(--ease);
    transition: var(--ease);
}

.breadcrumb-item a:hover {
    color: var(--teal);
}

.breadcrumb-item.active {
    color: var(--text-dark);
    font-weight: 500;
}


/* ==============================================
   PAGE CONTENT
   ============================================== */

.page-content {
    padding: 24px;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.tabsconts {
    overflow: hidden;
}


/* ==============================================
   FORM SECTIONS
   ============================================== */

.form-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    -webkit-box-shadow: var(--shadow-sm);
    box-shadow: var(--shadow-sm);
    -webkit-transition: -webkit-box-shadow var(--ease);
    transition: -webkit-box-shadow var(--ease);
    -o-transition: box-shadow var(--ease);
    transition: box-shadow var(--ease);
    transition: box-shadow var(--ease), -webkit-box-shadow var(--ease);
}

.form-section:hover {
    -webkit-box-shadow: var(--shadow-md);
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal-light);
}


/* ==============================================
   PHOTO UPLOAD
   ============================================== */

.photo-upload-area {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    gap: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.photo-preview {
    width: 140px;
    height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 3px solid var(--teal-light);
    background: var(--body-bg);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.btn-upload {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--accent-teal);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: var(--ease);
    -o-transition: var(--ease);
    transition: var(--ease);
    border: none;
}

.btn-upload:hover {
    background: var(--accent-teal);
    color: #fff;
}


/* ==============================================
   FORM CONTROLS
   ============================================== */

.form-group-custom {
    margin-bottom: 0;
}

.form-label-custom {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-label);
    margin-bottom: 5px;
    letter-spacing: .2px;
}

.form-input {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #CFE3E7;
    background: #CFE3E7;
    font-size: 14px;
    color: var(--text-primary);
    padding: 8px 14px;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
}

.form-input:focus {
    border: 1px solid #CFE3E7;
    background: #fff;
    -webkit-box-shadow: inherit;
    box-shadow: inherit;
}

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

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

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

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

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


/* Select override */

.form-select.form-input {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%234a5568' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}


/* ==============================================
   FILE DISPLAY
   ============================================== */

.file-display {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #CFE3E7;
    background: #CFE3E7;
    font-size: 14px;
    color: var(--text-primary);
    padding: 4px 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.file-info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
}

.file-pdf-icon {
    font-size: 24px;
    color: var(--red);
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.file-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.2;
}

.file-meta {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
}


/* ==============================================
   UPLOAD BUTTONS
   ============================================== */

.btn-upload-cert,
.btn-upload-doc {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    background: var(--teal);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    -webkit-transition: var(--ease);
    -o-transition: var(--ease);
    transition: var(--ease);
    border: none;
    white-space: nowrap;
    height: 42px;
}

.btn-upload-cert:hover,
.btn-upload-doc:hover {
    background: var(--teal-dark);
    color: #fff;
}


/* ==============================================
   REPEATER BLOCK
   ============================================== */

.repeater-block {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--border);
    position: relative;
}

.repeater-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.repeater-block .btn-remove-block {
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fee2e2;
    color: var(--accent-red);
    font-size: 14px;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: var(--ease);
    -o-transition: var(--ease);
    transition: var(--ease);
    z-index: 5;
}

.repeater-block .btn-remove-block:hover {
    background: #fee2e2;
    color: #fff;
}


/* ==============================================
   ADD MORE BUTTON
   ============================================== */

.btn-add-more {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 20px;
    background: var(--accent-teal);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    -webkit-transition: var(--ease);
    -o-transition: var(--ease);
    transition: var(--ease);
    margin-top: 14px;
}

.btn-add-more:hover {
    background: var(--accent-green);
    color: #fff;
    -webkit-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    transform: translateY(-1px);
}

.btn-add-more i {
    font-size: 16px;
}


/* ==============================================
   SUBMIT BUTTON
   ============================================== */

.form-submit-area {
    text-align: center;
    padding: 20px 0 40px;
}

.btn-submit {
    display: inline-block;
    padding: 14px 60px;
    border-radius: 8px;
    background: var(--accent-teal);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    -webkit-transition: all 03s ease;
    -o-transition: all 03s ease;
    transition: all 03s ease;
    letter-spacing: .3px;
    min-width: 200px;
}

.btn-submit:hover {
    background: var(--accent-green);
    color: #fff;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 6px 20px rgba(15, 123, 108, .3);
    box-shadow: 0 6px 20px rgba(15, 123, 108, .3);
}

.btn-submit:active {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}


/* ==============================================
   ANIMATIONS
   ============================================== */

@-webkit-keyframes fadeUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(15px);
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(15px);
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.form-section {
    -webkit-animation: fadeUp .45s ease both;
    animation: fadeUp .45s ease both;
}

.form-section:nth-child(2) {
    -webkit-animation-delay: .05s;
    animation-delay: .05s;
}

.form-section:nth-child(3) {
    -webkit-animation-delay: .1s;
    animation-delay: .1s;
}

.form-section:nth-child(4) {
    -webkit-animation-delay: .15s;
    animation-delay: .15s;
}

.form-section:nth-child(5) {
    -webkit-animation-delay: .2s;
    animation-delay: .2s;
}

.form-section:nth-child(6) {
    -webkit-animation-delay: .25s;
    animation-delay: .25s;
}

.form-section:nth-child(7) {
    -webkit-animation-delay: .3s;
    animation-delay: .3s;
}

@-webkit-keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 600px;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 600px;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.repeater-block.new-block {
    -webkit-animation: slideDown .4s ease both;
    animation: slideDown .4s ease both;
}