@font-face {
    font-family: "Italiana";
    src: url("/assets/fonts/Italiana-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Nothing You Could Do";
    src: url("/assets/fonts/NothingYouCouldDo-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    --tce-zoom: 0.72;
    zoom: var(--tce-zoom);
}

@media (max-width: 600px) {
    html {
        --tce-zoom: 1;
        zoom: 1;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f7f7fb;
    color: #111827;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 700;
}

.login-options label {
    color: #4b5563;
}

.login-options input {
    margin-right: 6px;
}

.login-options a {
    text-decoration: none;
    color: #111827;
}

.login-options a:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 56px;
    background: #071127;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
}

.login-btn:hover {
    background: #111c35;
}

.error-page-text {
    text-align: center;
    color: #4b5563;
    margin-bottom: 20px;
}

.error-page-btn {
    display: block;
    width: 100%;
    height: 56px;
    line-height: 56px;
    text-align: center;
    background: #071127;
    color: #ffffff;
    text-decoration: none;
    border-radius: 7px;
    font-size: 18px;
    font-weight: 800;
    box-sizing: border-box;
}

.error-page-btn:hover {
    background: #111c35;
}

.info-box {
    margin-top: 22px;
    background: #f1f3ff;
    border: 1px solid #e5e7ff;
    color: #4b5563;
    padding: 14px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 700;
    line-height: 22px;
}

.bottom-text {
    margin-top: 18px;
    font-size: 16px;
    color: #6b7280;
    font-weight: 700;
    line-height: 27px;
}

.secure-text {
    margin-top: 24px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 700;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 7px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 500px) {
    .login-container {
        width: 90%;
    }

    .portal-name {
        font-size: 30px;
    }

    .login-card {
        padding: 20px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
.navbar {
    width: 100%;
    background: #071127;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h2 {
    font-size: 22px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 18px;
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
}

.dashboard-container {
    padding: 30px;
}

.footer {
    margin-top: 40px;
    padding: 15px;
    text-align: center;
    background: #f1f1f1;
    color: #555;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 25px;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.dashboard-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #071127;
}

.dashboard-card p {
    color: #4b5563;
    line-height: 24px;
    margin-bottom: 18px;
}

.dashboard-card a {
    display: inline-block;
    background: #071127;
    color: white;
    padding: 10px 16px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.dashboard-card a:hover {
    background: #111c35;
}

.profile-summary {
    margin-top: 35px;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.profile-summary h2 {
    margin-bottom: 18px;
    color: #071127;
}

.profile-summary p {
    margin-bottom: 10px;
    color: #374151;
}

.profile-card {
    max-width: 700px;
    background: #ffffff;
    margin-top: 25px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.profile-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.profile-row span {
    font-weight: bold;
    color: #071127;
}

.profile-row p {
    color: #374151;
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-links a {
        margin-left: 0;
        margin-right: 15px;
    }
}

@media (max-width: 600px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        padding: 20px;
    }

    .profile-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .nav-links a {
        margin: 0;
    }
}.tce-login-page {
    width: 100%;
    min-height: 100vh;
    background: #f8f8fd;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 16px;
}

.tce-login-container {
    width: 410px;
    text-align: center;
}

.logo-box {
    width: 78px;
    height: 70px;
    margin: 0 auto 10px auto;
    border: 1px solid #d8dce5;
    border-radius: 10px;
    background: white;
    font-size: 18px;
    font-weight: 800;
    color: #071127;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.logo-box span {
    font-size: 7px;
    letter-spacing: 1px;
    margin-top: 3px;
}

.tce-login-container h1 {
    font-size: 30px;
    font-weight: 800;
    color: #071127;
    margin-bottom: 4px;
}

.subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.tce-login-card {
    background: white;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.tce-login-card input {
    width: 100%;
    height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 0 13px;
    font-size: 16px;
    margin-bottom: 24px;
    outline: none;
}

.tce-login-card input:focus {
    border-color: #071127;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 60px;
}

.password-field span {
    position: absolute;
    right: 14px;
    top: 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #4b5563;
}

.tce-login-card .login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 700;
}

.tce-login-card .login-options label {
    color: #4b5563;
    display: flex;
    align-items: center;
}

.tce-login-card .login-options input {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
}

.tce-login-card .login-options a {
    text-decoration: none;
    color: #071127;
}

.tce-login-card button {
    width: 100%;
    height: 54px;
    background: #071127;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
}

.tce-login-card button:hover {
    background: #111c35;
}

.two-factor {
    margin-top: 24px;
    background: #f3f5ff;
    border: 1px solid #e1e5f5;
    border-radius: 7px;
    padding: 13px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    line-height: 22px;
}

.bottom-text {
    margin-top: 8px;
    font-size: 16px;
    color: #6b7280;
    font-weight: 700;
    line-height: 25px;
}

.secure-text {
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 700;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 7px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
}
.employee-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 25px;
}

.employee-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.employee-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #071127;
}

.employee-card p {
    color: #4b5563;
    line-height: 24px;
    margin-bottom: 18px;
}

.employee-card a {
    display: inline-block;
    background: #071127;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.employee-card a:hover {
    background: #111c35;
}

.profile-summary-box {
    margin-top: 35px;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.profile-summary-box h2 {
    margin-bottom: 20px;
    color: #071127;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.summary-grid span {
    font-weight: bold;
    color: #071127;
}

.summary-grid p {
    margin-top: 6px;
    color: #4b5563;
}

.profile-card {
    max-width: 750px;
    background: #ffffff;
    margin-top: 25px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.profile-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.profile-row span {
    font-weight: bold;
    color: #071127;
}

.profile-row p {
    color: #374151;
}

.welcome-text {
    margin-top: 5px;
    color: #4b5563;
}

@media (max-width: 900px) {
    .employee-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .employee-card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        padding: 20px;
    }

    .profile-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.employee-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 25px;
}

.employee-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.employee-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #071127;
}

.employee-card p {
    color: #4b5563;
    line-height: 24px;
    margin-bottom: 18px;
}

.employee-card a {
    display: inline-block;
    background: #071127;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.employee-card a:hover {
    background: #111c35;
}

.profile-summary-box {
    margin-top: 35px;
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.profile-summary-box h2 {
    margin-bottom: 20px;
    color: #071127;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.summary-grid span {
    font-weight: bold;
    color: #071127;
}

.summary-grid p {
    margin-top: 6px;
    color: #4b5563;
}

.profile-card {
    max-width: 750px;
    background: #ffffff;
    margin-top: 25px;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.profile-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.profile-row span {
    font-weight: bold;
    color: #071127;
}

.profile-row p {
    color: #374151;
}

.welcome-text {
    margin-top: 5px;
    color: #4b5563;
}

@media (max-width: 900px) {
    .employee-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .employee-card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        padding: 20px;
    }

    .profile-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f8f8fd;
    color: #071127;
}

.tce-login-page {
    width: 100%;

    min-height: calc(100vh / var(--tce-zoom));
    background: #f8f8fd;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 16px;
}

.tce-login-container {
    width: 340px;
    text-align: center;
}

.logo-box {
    width: 210px;
    height: auto;
    margin: 0 auto 18px auto;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    width: 100%;
    height: auto;
    display: block;
}

.tce-login-container h1 {
    font-size: 24px;
    font-weight: 800;
    color: #071127;
    margin-bottom: 3px;
}

.subtitle {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.tce-login-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.tce-login-card input {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 0 13px;
    font-size: 14px;
    margin-bottom: 16px;
    outline: none;
}

.tce-login-card input:focus {
    border-color: #071127;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 60px;
}

.password-field span {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    color: #4b5563;
    display: flex;
    align-items: center;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -4px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 700;
}

.login-options label {
    color: #4b5563;
    display: flex;
    align-items: center;
}

.login-options input {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
}

.login-options a {
    text-decoration: none;
    color: #071127;
}

.login-options a:hover {
    text-decoration: underline;
}

.login-options-single {
    justify-content: flex-end;
}

.tce-login-card button {
    width: 100%;
    height: 44px;
    background: #071127;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
}

.tce-login-card button:hover {
    background: #111c35;
}

.two-factor {
    margin-top: 16px;
    background: #f3f5ff;
    border: 1px solid #e1e5f5;
    border-radius: 7px;
    padding: 10px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    line-height: 18px;
}

.bottom-text {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 700;
    line-height: 20px;
}

.secure-text {
    margin-top: 20px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 7px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
}

.navbar {
    width: 100%;
    background: #071127;
    color: white;
    padding: 16px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 22px;
    font-weight: bold;
    font-size: 16px;
}

.nav-links a:hover {
    text-decoration: underline;
}

.dashboard-container {
    padding: 35px;
    background: #f8f8fd;

    min-height: calc(80vh / var(--tce-zoom));
}

.dashboard-container h1 {
    font-size: 36px;
    color: #071127;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.welcome-text {
    color: #4b5563;
    margin-bottom: 25px;
    font-size: 17px;
}

.employee-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 25px;
}

.employee-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.employee-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #071127;
}

.employee-card p {
    color: #4b5563;
    line-height: 24px;
    margin-bottom: 18px;
}

.employee-card a {
    display: inline-block;
    background: #071127;
    color: white;
    padding: 10px 16px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
}

.employee-card a:hover {
    background: #111c35;
}

.profile-summary-box {
    margin-top: 35px;
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.profile-summary-box h2 {
    margin-bottom: 20px;
    color: #071127;
    font-size: 26px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.summary-grid div {
    background: #f8f8fd;
    padding: 14px;
    border-radius: 10px;
}

.summary-grid span {
    font-weight: bold;
    color: #071127;
}

.summary-grid p {
    margin-top: 6px;
    color: #4b5563;
}

.profile-card {
    max-width: 750px;
    background: #ffffff;
    margin-top: 25px;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.profile-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.profile-row span {
    font-weight: bold;
    color: #071127;
}

.profile-row p {
    color: #374151;
}

.footer {
    margin-top: auto;
    padding: 20px 15px 6px;
    text-align: center;
    background: transparent;
    color: #94a3b8;
    font-size: 13px;
    border-top: 1px solid #e6eaf2;
}

@media (max-width: 900px) {
    .employee-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav-links a {
        margin-left: 0;
        margin-right: 15px;
    }
}

@media (max-width: 600px) {
    .tce-login-container {
        width: 90%;
    }

    .employee-card-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        padding: 20px;
    }

    .profile-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .nav-links a {
        margin: 0;
    }
}

.attendance-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    margin-top: 25px;
}

.attendance-box h2 {
    color: #071127;
    margin-bottom: 18px;
}

.today-status {
    background: #f8f8fd;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 18px;
}

.today-status p {
    margin-bottom: 10px;
    color: #374151;
}

.location-status {
    color: #4b5563;
    font-weight: bold;
    margin-bottom: 15px;
}

.action-btn {
    background: #071127;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.action-btn:hover {
    background: #111c35;
}

.disabled-btn {
    background: #9ca3af;
    color: #ffffff;
    padding: 12px 20px;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: bold;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 14px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    table-layout: auto;
}

.data-table th {
    background: #071127;
    color: white;
    padding: 12px 10px;
    text-align: left;
    white-space: nowrap;
    vertical-align: bottom;
}

.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
}

.employee-dashboard-layout .table-responsive .data-table {
    table-layout: auto !important;
}

.employee-dashboard-layout .table-responsive .data-table th {
    white-space: nowrap !important;
}

.employee-dashboard-layout .table-responsive .data-table td {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

.data-table:has(th:nth-child(13)) td {
    white-space: nowrap;
}

.data-table:has(th:nth-child(13)) td:nth-child(7),
.data-table:has(th:nth-child(13)) td:nth-child(10) {
    white-space: normal;
    min-width: 220px;
}

.department-section-row td {
    background: #eef1f8;
    color: #0B1A34;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 10px 12px;
}

body.dark-mode .department-section-row td {
    background: #12162a;
    color: #eef1f8;
}

.map-link {
    font-size: 12px;
}

.location-accuracy-label {
    font-size: 12px;
    color: #6b7280;
}

.filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.filter-form input,
.filter-form select {
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    color: #1c2233;
}

.filter-form button {
    background: #071127;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 7px;
    font-weight: bold;
}

.filter-form a {
    color: #071127;
    font-weight: bold;
    text-decoration: none;
}

.filter-form a.action-btn {
    color: #ffffff;
}

.department-list {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    max-width: 420px;
}

.department-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f5;
    font-size: 14px;
}

.department-list li:last-child {
    border-bottom: none;
}

body.dark-mode .department-list li {
    border-bottom-color: #3a4468;
}

@media (max-width: 600px) {
    .attendance-box {
        padding: 18px;
    }

    .filter-form {
        flex-direction: column;
        align-items: flex-start;
    }
}
.employee-dashboard-layout {

    min-height: calc(100vh / var(--tce-zoom));
    display: flex;
    background: #f4f6fb;
    color: #06142e;
}

.employee-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #0B1A34;
    color: white;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    position: sticky;
    top: 0;
    align-self: flex-start;

    height: calc(100vh / var(--tce-zoom));
    overflow-y: auto;
}

.sidebar-brand {
    margin-bottom: 22px;
}

.sidebar-brand h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.sidebar-brand p {
    font-size: 13px;
    color: #cbd5e1;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-menu a,
.sidebar-bottom a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: block;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.sidebar-menu a.active {
    background: rgba(47, 111, 237, 0.18);
    color: #ffffff;
    box-shadow: inset 3px 0 0 #2F6FED;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;

    margin-top: auto;
}

.sidebar-clock-btn {
    background: #2F6FED;
    color: white !important;
    text-align: center;
}

details.sidebar-bottom {
    position: relative;
}
details.sidebar-bottom summary {
    list-style: none;
    cursor: pointer;
    color: #e5e7eb;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.10);
}
details.sidebar-bottom summary::-webkit-details-marker { display: none; }
details.sidebar-bottom summary::marker { content: ""; }
details.sidebar-bottom summary:hover { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
details.sidebar-bottom[open] summary {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
}
details.sidebar-bottom summary span { flex: 1; }
details.sidebar-bottom summary svg:last-child { flex-shrink: 0; transition: transform 0.15s ease; }
details.sidebar-bottom[open] summary svg:last-child { transform: rotate(180deg); }

.sidebar-bottom-items {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #142137;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.55);
    padding: 8px;
}
.sidebar-bottom-items a.active {
    background: rgba(47, 111, 237, 0.18);
    color: #ffffff;
    box-shadow: inset 3px 0 0 #2F6FED;
}

.employee-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 35px;
}

.employee-topbar {
    height: 60px;
    background: white;
    border-radius: 14px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.topbar-spacer {
    flex: 1;
}

.topbar-clock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2a44;
    white-space: nowrap;
}

.topbar-clock small {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

body.dark-mode .topbar-clock {
    color: #eef1f8;
}

body.dark-mode .topbar-clock small {
    color: #8b93a7;
}

.top-search {
    flex: 1;
    max-width: 420px;
    border: none;
    background: #eef1f6;
    padding: 12px 18px;
    border-radius: 25px;
    outline: none;
}

.top-profile {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: right;
}

.top-profile small {
    display: block;
    color: #64748b;
    margin-top: 3px;
}

.profile-circle {
    width: 42px;
    height: 42px;
    background: #0B1A34;
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    overflow: hidden;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-profile-dropdown {
    position: relative;
    margin-left: auto;
}
.top-profile-dropdown summary.top-profile {
    margin-left: 0;
    list-style: none;
    cursor: pointer;
}
.top-profile-dropdown summary.top-profile::-webkit-details-marker { display: none; }
.top-profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 40;
    min-width: 190px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 16px 34px -10px rgba(15, 23, 42, 0.18);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.top-profile-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #1f2a44;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.top-profile-menu a:hover {
    background: #f3f4f8;
}
body.dark-mode .top-profile-menu {
    background: #1c2440;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.55);
}
body.dark-mode .top-profile-menu a {
    color: #eef1f8;
}
body.dark-mode .top-profile-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.profile-picture-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.profile-picture-large {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.profile-picture-fallback {
    background: #0B1A34;
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 28px;
}

.profile-picture-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-picture-form label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.profile-picture-form input[type="file"] {
    font-size: 13px;
    color: #6b7280;
    max-width: 320px;
}

.password-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 6px 0 0;
    line-height: 1.4;
}

body.dark-mode .password-hint {
    color: #9aa3b8;
}

.profile-picture-form input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 16px;
    border: 1px solid #d5dbe6;
    border-radius: 8px;
    background: #f1f5fb;
    color: #1f2a44;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-picture-form input[type="file"]::file-selector-button:hover {
    background: #e4ecf7;
    border-color: #b9c4d6;
}

body.dark-mode .profile-picture-form input[type="file"] {
    color: #9aa3b8;
}

body.dark-mode .profile-picture-form input[type="file"]::file-selector-button {
    background: #333c60;
    border-color: #454f73;
    color: #eef1f8;
}

.profile-picture-cropper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.profile-crop-hint {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    max-width: 420px;
}

#profileCropCanvas {
    border-radius: 50%;
    border: 1px solid #d1d5db;
    touch-action: none;
    cursor: grab;
    background: #f3f4f6;
}

#profileCropZoom {
    width: 220px;
}

.profile-crop-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

body.dark-mode .profile-picture-cropper {
    border-bottom: 1px solid #3a4468;
}

body.dark-mode .profile-crop-hint {
    color: #9aa4c7;
}

body.dark-mode #profileCropCanvas {
    border-color: #3a4468;
    background: #12162a;
}

.employee-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 22px;
}

.shift-card {
    background: linear-gradient(135deg, #111a2f, #16213f);
    color: white;
    border-radius: 16px;
    padding: 32px;
    min-height: 235px;
    position: relative;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.shift-label {
    color: #aebbd2;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shift-card h1 {
    font-size: 42px;
    margin: 14px 0 5px;
}

.shift-card p {
    color: #cbd5e1;
    margin-bottom: 25px;
}

.shift-local-time {
    font-size: 13px;
    color: #94a3b8 !important;
    margin-top: -18px !important;
    margin-bottom: 20px !important;
}

.shift-worked {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    color: #7dd3fc;
    margin: -6px 0 20px;
}

.shift-worked svg { flex-shrink: 0; }

.shift-clock-message {
    font-size: 13px;
    padding: 8px 12px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.clock-main-btn {
    background: #2F6FED;
    color: white;
    text-decoration: none;
    padding: 16px 34px;

    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 18px;
}

.success-badge,
.warning-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.success-badge {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.warning-badge {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.shift-ip {
    position: absolute;
    right: 28px;
    bottom: 28px;
    text-align: right;
}

.shift-ip span {
    display: block;
    color: #aebbd2;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.shift-ip strong {
    font-size: 18px;
}

.small-info-card,
.report-card,
.recent-card,
.announcement-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.small-info-card p {
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 12px;
}

.small-info-card h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.small-info-card span {
    color: #2F6FED;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.progress-line {
    height: 8px;
    background: #e5e7eb;
    border-radius: 50px;
    overflow: hidden;
}

.progress-line div {
    height: 100%;
    background: #2F6FED;
    border-radius: 50px;
}

.report-card {
    grid-column: 2 / 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-card h4 {
    font-size: 19px;
    margin-bottom: 5px;
}

.report-card p {
    color: #64748b;
}

.report-card a {
    background: #0B1A34;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
}

.recent-card {
    grid-column: 1 / 3;
}

.announcement-card {
    grid-column: 3 / 4;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-header a {
    color: #2F6FED;
    text-decoration: none;
    font-weight: 700;
}

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

.recent-table thead {
    background: #e5e7eb;
}

.recent-table th {
    color: #334155;
    padding: 14px;
    text-align: left;
    text-transform: uppercase;
    font-size: 13px;
}

.recent-table td {
    padding: 16px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.table-success {
    background: #dcfce7;
    color: #16a34a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.recent-table-empty {
    text-align: center;
    color: #64748b;
    padding: 32px 14px;
}

.announcement-card h3 {
    margin-bottom: 20px;
}

.announcement-item {
    border-left: 4px solid #2F6FED;
    padding-left: 14px;
    margin-bottom: 22px;
}

.announcement-item strong {
    display: block;
    margin-bottom: 6px;
}

.announcement-item p {
    color: #64748b;
    line-height: 1.5;
}

.announcement-item small {
    color: #9ca3af;
}

@media (max-width: 700px) {
    .employee-content-grid {
        grid-template-columns: 1fr;
    }

    .report-card,
    .recent-card,
    .announcement-card {
        grid-column: auto;
    }
}
@media (max-width: 900px) {
    .employee-sidebar {
        width: 210px;
    }
}

@media (max-width: 600px) {
    .employee-dashboard-layout {
        flex-direction: column;
    }

    .employee-sidebar {
        width: 100%;
        min-height: auto;
        height: auto;
        position: static;
    }

    .employee-main {
        padding: 18px;
    }

    .employee-topbar {
        flex-wrap: wrap;
        height: auto;
        padding: 18px;
        row-gap: 12px;
    }

    .top-search {
        max-width: 100%;
        width: 100%;
    }

    .shift-ip {
        position: static;
        text-align: left;
        margin-top: 20px;
    }
}.area-cell {
    max-width: 350px;
    line-height: 22px;
}

.status-approved,
.status-running,
.status-pending {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.status-approved {
    background: #dcfce7;
    color: #15803d;
}

.status-running {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-pending {
    background: #fee2e2;
    color: #b91c1c;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.tce-icon {
    flex-shrink: 0;
    vertical-align: middle;
}

.sidebar-menu a,
.sidebar-bottom a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-search-wrap {
    flex: 1;
    max-width: 420px;
    position: relative;
    display: flex;
    align-items: center;
}

.top-search-wrap .tce-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.top-search-wrap .top-search {
    width: 100%;
    padding-left: 42px;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: #eef1f6;
    color: #334155;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    text-decoration: none;
}

.icon-btn:hover {
    background: #e2e8f0;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
}

.notification-unread {
    background: #eef4ff;
    border-radius: 8px;
    padding-left: 10px;
    padding-right: 10px;
}

.success-badge,
.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef1f6;
    color: #0B1A34;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.small-info-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.report-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef1f6;
    color: #0B1A34;
    display: grid;
    place-items: center;
    margin-right: 14px;
}

.report-card-title {
    display: flex;
    align-items: center;
}

.report-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clock-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.clock-main-btn:disabled {
    opacity: 0.85;
    cursor: default;
}

.btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: tce-spin 0.6s linear infinite;
    flex-shrink: 0;
}

.btn-spinner-dark {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(7, 17, 39, 0.2);
    border-top-color: #071127;
    border-radius: 50%;
    animation: tce-spin 0.6s linear infinite;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes tce-spin {
    to {
        transform: rotate(360deg);
    }
}

.leave-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 22px;
    margin-top: 25px;
    align-items: start;
}

.leave-balances-box {
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.leave-balances-box h2 {
    color: #071127;
    margin-bottom: 18px;
}

.balance-row {
    margin-bottom: 20px;
}

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

.balance-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    color: #374151;
}

.balance-row-header strong {
    color: #071127;
}

.balance-pending-note {
    display: block;
    margin-top: 6px;
    color: #b45309;
}

.leave-policy-note {
    background: #f3f5ff;
    border: 1px solid #e1e5f5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #374151;
    line-height: 20px;
}

.leave-policy-note strong {
    color: #071127;
}

.reports-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.reports-stat-tile {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reports-stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #6b7280;
}

.reports-stat-tile strong {
    font-size: 30px;
    color: #071127;
}

.reports-stat-tile small {
    color: #9ca3af;
}

.reports-stat-tile small a {
    color: #071127;
    font-weight: 700;
}

.reports-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 140px;
    padding-top: 20px;
}

.reports-bar-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 6px;
}

.reports-bar {
    width: 100%;
    max-width: 36px;
    background: #071127;
    border-radius: 4px 4px 0 0;
    min-height: 3px;
}

.reports-bar-column span {
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
}

.reports-bar-column label {
    font-size: 11px;
    color: #9ca3af;
}

.report-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 18px;
    padding-bottom: 12px;
}

.report-tabs a {
    padding: 8px 16px;
    border-radius: 6px;
    color: #374151;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.report-tabs a.filter-active {
    background: #071127;
    color: white;
}

@media (max-width: 700px) {
    .reports-stat-grid {
        grid-template-columns: 1fr;
    }
}

.calendar-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 22px;
    align-items: start;
}

.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 6px;
}

.calendar-nav .action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: transparent;
    color: #252c48;
    border-radius: 50%;
}

.calendar-nav .action-btn:hover {
    background: transparent;
    border-color: #252c48;
}

.calendar-title-block {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 62px;
    min-width: 170px;
}

.calendar-title-year {
    font-family: "Italiana", serif;
    font-size: 40px;
    line-height: 1;
    color: rgba(37, 44, 72, 0.08);
    position: absolute;
    left: 2px;
    top: 0;
    user-select: none;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.calendar-title-month {
    position: relative;
    font-family: "Nothing You Could Do", cursive;
    font-size: 32px;
    color: #252c48;
    padding-left: 2px;
}

.calendar-toolbar > .action-btn {
    margin-top: 6px;
}

.calendar-toolbar .action-btn.action-btn-small {
    border: 1px solid #e5e7eb;
    background: transparent;
    color: #252c48;
    border-radius: 999px;
    font-weight: 700;
}

.calendar-toolbar .action-btn.action-btn-small:hover {
    background: transparent;
    border-color: #252c48;
}

.calendar-legend {
    display: flex;
    gap: 18px;
    margin: 14px 0 18px;
    font-size: 13px;
    color: #6b7280;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.calendar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.calendar-dot-holiday, .calendar-event-holiday {
    background: #fee2e2;
    color: #991b1b;
}

.calendar-dot-holiday { background: #ef4444; }

.calendar-dot-birthday, .calendar-event-birthday {
    background: #fce7f3;
    color: #9d174d;
}

.calendar-dot-birthday { background: #ec4899; }

.calendar-dot-firm_event, .calendar-event-firm_event {
    background: #dbeafe;
    color: #1e40af;
}

.calendar-dot-firm_event { background: #3b82f6; }

.calendar-leave-pending {
    background: #e5e7eb;
    color: #374151;
}
.calendar-leave-approved {
    background: #dcfce7;
    color: #166534;
}
body.dark-mode .calendar-leave-pending {
    background: #374151;
    color: #d1d5db;
}
body.dark-mode .calendar-leave-approved {
    background: #14532d;
    color: #bbf7d0;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 4px;
    font-size: 13px;
    color: #6b7280;
}
.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.calendar-legend i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}
body.dark-mode .calendar-legend { color: #9ca3af; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.calendar-grid-header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9aa0af;
    text-align: center;
    padding: 10px 0;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-cell {
    min-height: 74px;
    min-width: 0;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    padding: 7px;
    font-size: 11px;
    overflow: hidden;
}

.calendar-cell-empty {
    background: transparent;
}

.calendar-cell-today {
    background: transparent;
}

.calendar-cell-day {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
}

.calendar-cell-today .calendar-cell-day {
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background: #252c48;
    color: #ffffff;
}

.calendar-event-pill {
    display: block;
    border-radius: 20px;
    padding: 2px 7px;
    margin-bottom: 3px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calendar-next-holiday {
    background: #ffffff;
    color: #111827;
    border-radius: 10px;
    border-left: 3px solid #ef4444;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calendar-next-holiday-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.calendar-next-holiday strong {
    font-size: 18px;
}

.calendar-event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f5;
    gap: 8px;
}

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

.calendar-event-row div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.calendar-event-row small {
    color: #6b7280;
}

.calendar-event-row a,
.calendar-event-row a:visited {
    color: #2F6FED;
    text-decoration: none;
}

.calendar-event-row a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .calendar-cell {
        min-height: 50px;
        font-size: 9px;
    }

    .calendar-title-year {
        font-size: 34px;
    }

    .calendar-title-month {
        font-size: 26px;
    }
}

.report-export-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tce-watermark-host {
    position: relative;

    flex: 1 0 auto;
}

.tce-page-watermark {
    position: absolute;
    inset: 0;
    display: flex;

    align-items: flex-end;
    justify-content: center;
    padding-bottom: 48px;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.tce-page-watermark img {
    width: 480px;
    max-width: 60%;
    height: auto;
    opacity: 0.06;
}

.tce-watermark-dark { display: none; }
body.dark-mode .tce-watermark-light { display: none; }

.late-submission-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;
    font-weight: bold;
    color: #071127;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-row select,
.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.form-row select:focus,
.form-row input:focus,
.form-row textarea:focus {
    border-color: #071127;
}

.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.link-btn {
    background: none;
    border: none;
    color: #b91c1c;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 14px;
}

.leave-status-pending,
.leave-status-approved,
.leave-status-rejected,
.leave-status-cancelled {
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

.leave-status-pending {
    background: #fef3c7;
    color: #b45309;
}

.leave-status-approved {
    background: #dcfce7;
    color: #15803d;
}

.leave-status-rejected {
    background: #fee2e2;
    color: #b91c1c;
}

.leave-status-cancelled {
    background: #e5e7eb;
    color: #4b5563;
}

@media (max-width: 700px) {
    .leave-grid {
        grid-template-columns: 1fr;
    }

    .form-row-split {
        grid-template-columns: 1fr;
    }
}

.filter-form a.filter-active {
    background: #071127;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
}

.filter-form a {
    padding: 8px 14px;
}

.inline-review-form {
    display: flex;
    gap: 8px;
}

.action-btn-small {
    padding: 8px 14px;
    font-size: 13px;
}

@media (max-width: 800px) {
    .top-search-wrap {
        order: 3;
        flex: 1 0 100%;
        max-width: 100%;
    }
}

.location-missing-badge {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.action-btn:disabled {
    background: #9aa4b7;
    color: #f1f2f5;
    cursor: not-allowed;
}

.action-btn:disabled:hover {
    background: #9aa4b7;
}

.live-timer {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 18px;
}

.live-timer strong {
    margin-right: 8px;
}

.live-timer #liveTimer {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #3730a3;
    letter-spacing: 1px;
}

.employee-form {
    margin-top: 16px;
}

details > summary.details-summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 0;
    color: #071127;
}

details > summary.details-summary::-webkit-details-marker {
    display: none;
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.disabled-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 22px;
}

.stat-link {
    color: #2F6FED;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    text-decoration: none;
}

.stat-link:hover {
    text-decoration: underline;
}

.admin-pending-card {
    margin-top: 0;
}

@media (max-width: 700px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 460px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
}

.employee-content-grid > * {
    min-width: 0;
}

.team-status-summary {
    background: white;
    border-radius: 12px;
    padding: 14px 20px;
    margin: 16px 0 20px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    font-size: 14px;
    color: #374151;
}

.team-map-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    margin-bottom: 25px;
}

.team-map-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.team-map-header h2 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.team-map-live-badge {
    display: inline-flex;
    align-items: center;
    background: #22c55e;
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 20px;
}

.team-map-sub {
    font-size: 13px;
    color: #6b7280;
}

.team-map-wrap {
    position: relative;
}

.team-map-empty {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

#teamMap {
    height: 420px;
    border-radius: 10px;
    z-index: 0;
    background: #eef1f8;
}

.team-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.department-section {
    margin-bottom: 10px;
}

.absence-week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.absence-day-col {
    background: white;
    border: 1px solid #e4e6ee;
    border-radius: 10px;
    padding: 12px;
    min-height: 140px;
    box-shadow: 0 4px 12px rgba(37, 44, 72, 0.06);
}

.absence-day-today {
    border-color: #071127;
    border-width: 2px;
}

.absence-day-head {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eef0f8;
}

.absence-day-label {
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.absence-day-number {
    font-size: 15px;
    font-weight: 700;
    color: #1c2233;
}

.absence-day-empty {
    font-size: 12.5px;
    color: #9ca3af;
    font-style: italic;
}

.absence-day-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.absence-person {
    display: flex;
    align-items: center;
    gap: 8px;
}

.absence-person-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
    flex-shrink: 0;
}

.absence-person-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.absence-person-info strong {
    font-size: 12.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.absence-person-info span {
    font-size: 11px;
    color: #6b7280;
}

body.dark-mode .absence-day-col {
    background: #1c2440;
    border-color: #333c60;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

body.dark-mode .absence-day-today {
    border-color: #c3c8e6;
}

body.dark-mode .absence-day-head {
    border-bottom-color: #333c60;
}

body.dark-mode .absence-day-number {
    color: #eef1f8;
}

body.dark-mode .absence-person-info span {
    color: #a8abc0;
}

@media (max-width: 900px) {
    .absence-week-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

.department-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    margin: 24px 0 14px;
    color: #0B1A34;
}

.department-section-count {
    background: #eef1f8;
    color: #4b5563;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 600;
}

body.dark-mode .department-section-heading {
    color: #eef1f8;
}

body.dark-mode .department-section-count {
    background: #252c48;
    color: #cbd5e1;
}

.team-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    border-top: 4px solid #e5e7eb;
}

.team-card:has(.team-status-clocked_in) {
    border-top-color: #22c55e;
}

.team-card:has(.team-status-completed) {
    border-top-color: #2F6FED;
}

.team-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.team-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0B1A34;
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 16px;
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 20px;
}

.team-status-clocked_in {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.team-status-completed {
    background: rgba(24, 168, 245, 0.15);
    color: #0b7bc7;
}

.team-status-not_clocked_in {
    background: #e5e7eb;
    color: #6b7280;
}

.team-status-on_leave {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.team-card h3 {
    font-size: 17px;
    margin-bottom: 3px;
    color: #071127;
}

.team-card-role {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 10px;
}

.team-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #4b5563;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 16px;
}

.team-card-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
}

.team-card-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.team-card-times strong {
    display: block;
    font-size: 15px;
    color: #071127;
    font-variant-numeric: tabular-nums;
}

.team-card-sub {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.team-view-btn {
    width: 100%;
    justify-content: center;
    display: flex;
}

.team-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

body.dark-mode {
    background: #12162a;
    color: #eef1f8;

    color-scheme: dark;
}

body.dark-mode .employee-dashboard-layout {
    background: #12162a;
    color: #eef1f8;
}

body.dark-mode .employee-topbar {

    background: #12162a;
    box-shadow: none;
    border: 1px solid #12162a;
}

body.dark-mode .top-search-wrap {
    background: #333c60;
}

body.dark-mode .top-search {
    background: transparent;
    color: #eef1f8;
}

body.dark-mode .top-search::placeholder {
    color: #64748b;
}

body.dark-mode .filter-form input,
body.dark-mode .filter-form select {
    background: #333c60;
    border-color: #3a4468;
    color: #eef1f8;
}

body.dark-mode .filter-form input::placeholder {
    color: #8b90a8;
}

body.dark-mode .icon-btn {
    background: #333c60;
    color: #cbd5e1;
}

body.dark-mode .icon-btn:hover {
    background: #3a4468;
}

body.dark-mode .top-profile strong {
    color: #eef1f8;
}

body.dark-mode .top-profile small {
    color: #a8abc0;
}

body.dark-mode .dashboard-container,
body.dark-mode .employee-content-grid {
    background: transparent;
}

body.dark-mode .dashboard-container h1,
body.dark-mode h2 {
    color: #eef1f8;
}

body.dark-mode .welcome-text {
    color: #a8abc0;
}

body.dark-mode .attendance-box,
body.dark-mode .leave-balances-box,
body.dark-mode .small-info-card,
body.dark-mode .report-card,
body.dark-mode .recent-card,
body.dark-mode .announcement-card,
body.dark-mode .team-card,
body.dark-mode .reports-stat-tile {
    background: #252c48;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

body.dark-mode .attendance-box h2,
body.dark-mode .leave-balances-box h2,
body.dark-mode .team-card h3,
body.dark-mode .balance-row-header strong,
body.dark-mode .reports-stat-tile strong,
body.dark-mode details > summary.details-summary {
    color: #eef1f8;
}

body.dark-mode .reports-stat-label {
    color: #a8abc0;
}

body.dark-mode .reports-stat-tile small {
    color: #a8abc0;
}

body.dark-mode .reports-stat-tile small a {
    color: #8ab0ff;
}

body.dark-mode .reports-bar {
    background: #2F6FED;
}

body.dark-mode .reports-bar-column span {
    color: #cbd5e1;
}

body.dark-mode .reports-bar-column label {
    color: #a8abc0;
}

body.dark-mode .today-status {
    background: #333c60;
}

body.dark-mode .live-timer {
    background: rgba(47, 111, 237, 0.14);
    border-color: rgba(47, 111, 237, 0.35);
    color: #eef1f8;
}

body.dark-mode .live-timer #liveTimer {
    color: #8ab0ff;
}

body.dark-mode .data-table th {
    background: #333c60;
}

body.dark-mode .data-table td {
    color: #cbd5e1;
    border-bottom: 1px solid #3a4468;
}

body.dark-mode .recent-table thead {
    background: #333c60;
}

body.dark-mode .recent-table th {
    color: #cbd5e1;
}

body.dark-mode .recent-table td {
    border-bottom: 1px solid #3a4468;
    color: #cbd5e1;
}

body.dark-mode .recent-table-empty {
    color: #94a3b8;
}

body.dark-mode .form-row select,
body.dark-mode .form-row input,
body.dark-mode .form-row textarea {
    background: #333c60;
    border: 1px solid #3a4468;
    color: #eef1f8;
}

body.dark-mode .form-row select:focus,
body.dark-mode .form-row input:focus,
body.dark-mode .form-row textarea:focus {
    border-color: #2F6FED;
}

body.dark-mode .form-row label {
    color: #cbd5e1;
}

body.dark-mode .success-message {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
}

body.dark-mode .error-message {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

body.dark-mode .leave-policy-note,
body.dark-mode .info-box,
body.dark-mode .two-factor {
    background: rgba(24, 168, 245, 0.08);
    border-color: rgba(24, 168, 245, 0.3);
    color: #cbd5e1;
}

body.dark-mode .leave-policy-note strong {
    color: #eef1f8;
}

body.dark-mode .progress-line {
    background: #3a4468;
}

body.dark-mode .balance-row-header {
    color: #cbd5e1;
}

body.dark-mode .calendar-event-row {
    border-bottom: 1px solid #3a4468;
}

body.dark-mode .calendar-event-row small,
body.dark-mode .announcement-item p {
    color: #a8abc0;
}

body.dark-mode .notification-unread {
    background: rgba(47, 111, 237, 0.14);
}

body.dark-mode .location-accuracy-label {
    color: #a8abc0;
}

body.dark-mode .calendar-title-year {
    color: rgba(238, 241, 248, 0.07);
}

body.dark-mode .calendar-title-month {
    color: #eef1f8;
}

body.dark-mode .calendar-nav .action-btn {
    border-color: #3a4468;
    color: #eef1f8;
}

body.dark-mode .calendar-nav .action-btn:hover {
    border-color: #eef1f8;
}

body.dark-mode .calendar-toolbar .action-btn.action-btn-small {
    border-color: #3a4468;
    color: #eef1f8;
}

body.dark-mode .calendar-toolbar .action-btn.action-btn-small:hover {
    border-color: #eef1f8;
}

body.dark-mode .calendar-legend {
    color: #a8abc0;
}

body.dark-mode .calendar-grid,
body.dark-mode .calendar-grid-header,
body.dark-mode .calendar-cell {
    border-color: #3a4468;
}

body.dark-mode .calendar-grid-header {
    color: #8b90a8;
}

body.dark-mode .calendar-next-holiday {
    background: #252c48;
    border-left-color: #ef4444;
}

body.dark-mode .calendar-next-holiday-label {
    color: #a8abc0;
}

body.dark-mode .calendar-dot-holiday,
body.dark-mode .calendar-event-holiday {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

body.dark-mode .calendar-dot-holiday { background: #ef4444; }

body.dark-mode .calendar-dot-birthday,
body.dark-mode .calendar-event-birthday {
    background: rgba(236, 72, 153, 0.18);
    color: #f9a8d4;
}

body.dark-mode .calendar-dot-birthday { background: #ec4899; }

body.dark-mode .calendar-dot-firm_event,
body.dark-mode .calendar-event-firm_event {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
}

body.dark-mode .calendar-dot-firm_event { background: #3b82f6; }

body.dark-mode .calendar-cell-today .calendar-cell-day {
    color: #ffffff;
}

body.dark-mode .report-card-icon,
body.dark-mode .card-icon {
    background: #333c60;
    color: #cbd5e1;
}

body.dark-mode .location-status {
    color: #cbd5e1;
}

body.dark-mode .shift-local-time {
    color: #a8abc0 !important;
}

body.dark-mode .footer {
    background: transparent;
    color: #5b647d;
    border-top: 1px solid #262c44;
}

body.dark-mode .today-status p,
body.dark-mode .profile-summary p,
body.dark-mode .profile-row p,
body.dark-mode .report-tabs a,
body.dark-mode .calendar-cell-day {
    color: #cbd5e1;
}

body.dark-mode .profile-summary,
body.dark-mode .profile-card,
body.dark-mode .team-status-summary {
    background: #252c48;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    color: #cbd5e1;
}

body.dark-mode .profile-summary h2,
body.dark-mode .profile-row span {
    color: #eef1f8;
}

body.dark-mode .profile-row,
body.dark-mode .profile-picture-row {
    border-bottom: 1px solid #3a4468;
}

body.dark-mode .profile-picture-form label {
    color: #9aa4c7;
}

body.dark-mode .team-card-times {
    background: #12162a;
}

body.dark-mode .team-card-times strong {
    color: #eef1f8;
}

body.dark-mode .team-card-location {
    color: #a8abc0;
}

body.dark-mode .team-card {
    border-top-color: #3a4468;
}

body.dark-mode .team-map-card {
    background: #252c48;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

body.dark-mode .team-map-sub,
body.dark-mode .team-map-empty {
    color: #a8abc0;
}

body.dark-mode .team-map-empty {
    background: #333c60;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

body.dark-mode #teamMap {
    background: #12162a;
}

body.dark-mode .leaflet-popup-content-wrapper,
body.dark-mode .leaflet-popup-tip {
    background: #252c48;
    color: #eef1f8;
}

body.dark-mode .leaflet-popup-content a {
    color: #a8abc0;
}

.employee-dashboard-layout { font-size: 15px; }

.dashboard-container h1 { font-size: 30px; }
.attendance-box h2 { font-size: 22px; }
.card h3 { font-size: 18px; }
.welcome-text { font-size: 14px; }

.employee-dashboard-layout label,
.filter-form label { font-size: 14px; }

.employee-dashboard-layout input,
.employee-dashboard-layout select,
.employee-dashboard-layout textarea { font-size: 15px; }

.employee-dashboard-layout .action-btn,
.employee-dashboard-layout .filter-form button { font-size: 15px; }

.sidebar-menu a,
.sidebar-bottom a { font-size: 15px; }

.data-table th,
.data-table td { font-size: 13px; }

.status-badge,
.leave-status-approved,
.leave-status-pending,
.leave-status-rejected,
.team-status-badge,
.late-submission-badge { font-size: 12px; }

.employee-dashboard-layout .sidebar-menu a,
.employee-dashboard-layout .sidebar-bottom a {
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.employee-dashboard-layout .icon-btn {
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
.employee-dashboard-layout .icon-btn:hover { transform: translateY(-1px); }
.employee-dashboard-layout .icon-btn:active { transform: translateY(0); }

.employee-dashboard-layout .action-btn,
.employee-dashboard-layout .clock-main-btn,
.employee-dashboard-layout .sidebar-clock-btn {
    transition: background-color 0.18s ease, color 0.18s ease,
                box-shadow 0.18s ease, transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.employee-dashboard-layout .action-btn:hover,
.employee-dashboard-layout .clock-main-btn:hover,
.employee-dashboard-layout .sidebar-clock-btn:hover { transform: translateY(-1px); }
.employee-dashboard-layout .action-btn:active,
.employee-dashboard-layout .clock-main-btn:active,
.employee-dashboard-layout .sidebar-clock-btn:active { transform: scale(0.94); }

.employee-dashboard-layout .sidebar-menu a:active,
.employee-dashboard-layout .sidebar-bottom a:active { transform: scale(0.97); }

.employee-dashboard-layout .dashboard-container a:not(.action-btn):not(.clock-main-btn) {
    transition: color 0.15s ease, opacity 0.15s ease;
}

.employee-dashboard-layout .small-info-card,
.employee-dashboard-layout .report-card,
.employee-dashboard-layout .recent-card,
.employee-dashboard-layout .announcement-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease;
}
.employee-dashboard-layout .small-info-card:hover,
.employee-dashboard-layout .report-card:hover,
.employee-dashboard-layout .recent-card:hover,
.employee-dashboard-layout .announcement-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
}

.employee-dashboard-layout .data-table tbody tr {
    transition: background-color 0.15s ease;
}
.employee-dashboard-layout .data-table tbody tr:hover {
    background-color: rgba(47, 111, 237, 0.05);
}

.employee-dashboard-layout,
.employee-dashboard-layout .employee-topbar,
.employee-dashboard-layout .small-info-card,
.employee-dashboard-layout .report-card,
.employee-dashboard-layout .recent-card,
.employee-dashboard-layout .announcement-card,
.employee-dashboard-layout .data-table,
.employee-dashboard-layout .data-table th,
.employee-dashboard-layout .data-table td {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

@keyframes tceFadeInUp {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.employee-dashboard-layout .employee-main {
    animation: tceFadeInUp 0.35s ease both;
}

@media (prefers-reduced-motion: reduce) {
    .employee-dashboard-layout *,
    .employee-dashboard-layout .employee-main {
        animation: none !important;
        transition: none !important;
    }
}

.employee-dashboard-layout { accent-color: #2F6FED; }

.employee-dashboard-layout input[type="text"]:not(.top-search),
.employee-dashboard-layout input[type="email"],
.employee-dashboard-layout input[type="password"],
.employee-dashboard-layout input[type="number"],
.employee-dashboard-layout input[type="search"],
.employee-dashboard-layout input[type="date"],
.employee-dashboard-layout input[type="time"],
.employee-dashboard-layout input[type="datetime-local"],
.employee-dashboard-layout input[type="tel"],
.employee-dashboard-layout input[type="url"],
.employee-dashboard-layout select,
.employee-dashboard-layout textarea {
    border: 1px solid #DCE1EA;
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 15px;
    font-family: inherit;
    color: #0B1A34;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.employee-dashboard-layout select { cursor: pointer; }
.employee-dashboard-layout textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.employee-dashboard-layout input[type="text"]:not(.top-search)::placeholder,
.employee-dashboard-layout input[type="email"]::placeholder,
.employee-dashboard-layout input[type="password"]::placeholder,
.employee-dashboard-layout input[type="number"]::placeholder,
.employee-dashboard-layout input[type="search"]::placeholder,
.employee-dashboard-layout textarea::placeholder {
    color: #9aa6bb;
}

.employee-dashboard-layout input[type="text"]:not(.top-search):focus,
.employee-dashboard-layout input[type="email"]:focus,
.employee-dashboard-layout input[type="password"]:focus,
.employee-dashboard-layout input[type="number"]:focus,
.employee-dashboard-layout input[type="search"]:focus,
.employee-dashboard-layout input[type="date"]:focus,
.employee-dashboard-layout input[type="time"]:focus,
.employee-dashboard-layout input[type="datetime-local"]:focus,
.employee-dashboard-layout input[type="tel"]:focus,
.employee-dashboard-layout input[type="url"]:focus,
.employee-dashboard-layout select:focus,
.employee-dashboard-layout textarea:focus {
    border-color: #2F6FED;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

body.dark-mode .employee-dashboard-layout input[type="text"]:not(.top-search),
body.dark-mode .employee-dashboard-layout input[type="email"],
body.dark-mode .employee-dashboard-layout input[type="password"],
body.dark-mode .employee-dashboard-layout input[type="number"],
body.dark-mode .employee-dashboard-layout input[type="search"],
body.dark-mode .employee-dashboard-layout input[type="date"],
body.dark-mode .employee-dashboard-layout input[type="time"],
body.dark-mode .employee-dashboard-layout input[type="datetime-local"],
body.dark-mode .employee-dashboard-layout input[type="tel"],
body.dark-mode .employee-dashboard-layout input[type="url"],
body.dark-mode .employee-dashboard-layout select,
body.dark-mode .employee-dashboard-layout textarea {
    background-color: #333c60;
    border-color: #3a4468;
    color: #eef1f8;
}
body.dark-mode .employee-dashboard-layout input:not(.top-search)::placeholder,
body.dark-mode .employee-dashboard-layout textarea::placeholder {
    color: #8b90a8;
}

.filter-form a:not(.action-btn):not(.filter-active) {
    padding: 8px 14px;
    border: 1px solid #DCE1EA;
    border-radius: 9px;
    background: #ffffff;
    line-height: 1.4;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.filter-form a:not(.action-btn):not(.filter-active):hover {
    background: #f4f6fb;
    border-color: #c3ccdd;
    text-decoration: none;
}
body.dark-mode .filter-form a:not(.action-btn):not(.filter-active) {
    background: #333c60;
    border-color: #3a4468;
    color: #eef1f8;
}
body.dark-mode .filter-form a:not(.action-btn):not(.filter-active):hover {
    background: #3a4468;
}

.tce-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
    z-index: 0;
    animation: tceRipple 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes tceRipple {
    to { transform: scale(2.4); opacity: 0; }
}

.tce-auth__submit {
    transition: background 0.15s ease,
                transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.16s ease;
}
.tce-auth__submit:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11, 26, 52, 0.18); }
.tce-auth__submit:active { transform: scale(0.96); }

.filter-form button {
    transition: background 0.15s ease, transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.filter-form button:active { transform: scale(0.95); }
.filter-form a:not(.filter-active):active { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
    .tce-ripple { display: none !important; }
    .tce-auth__submit:active,
    .filter-form button:active,
    .filter-form a:active { transform: none !important; }
}

.sidebar-brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}
.sidebar-brand-lockup .tce-emblem { flex-shrink: 0; }
.sidebar-brand-lockup h2 { margin: 0; }

.sidebar-brand,
.sidebar-menu,
.sidebar-bottom { position: relative; z-index: 1; }

.sidebar-skyline {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
    line-height: 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 55%);
}
.sidebar-skyline img { width: 100%; height: auto; display: block; }
