@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   All Around HRIS System - Ultra-Responsive SaaS Portal Theme (v15.0.0)
   Full Poppins Font, Dynamic Breakpoints for Mobile, Tablet & Desktop
   ========================================================================== */

:root {
    --hris-font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --hris-primary: #4f46e5;
    --hris-primary-hover: #4338ca;
    --hris-primary-light: #eef2ff;
    --hris-secondary: #0f172a;
    --hris-sidebar-bg: #0f172a;
    --hris-sidebar-text: #94a3b8;
    --hris-sidebar-active: #ffffff;
    --hris-bg: #f8fafc;
    --hris-surface: #ffffff;
    --hris-border: #cbd5e1;
    --hris-text-main: #1e293b;
    --hris-text-muted: #64748b;
    --hris-success: #10b981;
    --hris-warning: #f59e0b;
    --hris-danger: #ef4444;
    --hris-radius: 12px;
    --hris-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --hris-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* GLOBAL POPPINS TYPOGRAPHY */
body.hris-dashboard-fullscreen-canvas,
body.hris-portal-fullscreen-canvas,
.hris-frontend-app-container,
.hris-app-wrapper,
.hris-app-wrapper *,
.hris-auth-card,
.hris-auth-card * {
    font-family: var(--hris-font) !important;
    box-sizing: border-box !important;
}

/* SUPPRESS WORDPRESS TOP ADMIN BAR STRICTLY ON FRONTEND CANVAS PAGES ONLY */
body.hris-dashboard-fullscreen-canvas #wpadminbar,
body.hris-portal-fullscreen-canvas #wpadminbar,
.hris-frontend-app-container ~ #wpadminbar {
    display: none !important;
}

html.logged-in body.hris-dashboard-fullscreen-canvas,
html.logged-in body.hris-portal-fullscreen-canvas {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hris-app-wrapper {
    margin: 0;
    width: 100% !important;
    max-width: 100% !important;
    font-family: var(--hris-font) !important;
    color: var(--hris-text-main);
}

/* Header Box - Responsive Flex */
.hris-header {
    background: var(--hris-surface);
    border: 1px solid var(--hris-border);
    border-radius: var(--hris-radius);
    padding: 20px 24px;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--hris-shadow-sm);
    margin-bottom: 24px;
    flex-wrap: wrap !important;
    gap: 16px !important;
}

.hris-header h1 {
    font-family: var(--hris-font) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--hris-secondary) !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.hris-header p {
    font-family: var(--hris-font) !important;
    margin: 0 !important;
    color: var(--hris-text-muted) !important;
    font-size: 13px !important;
}

/* Grids - Fluid Responsiveness */
.hris-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
}

.hris-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
}

.hris-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
}

.hris-grid-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}

.hris-form-grid-layout {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 24px !important;
}

/* Stat Cards */
.hris-stat-card {
    background: var(--hris-surface);
    border: 1px solid var(--hris-border);
    border-radius: var(--hris-radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--hris-shadow-sm);
}

.hris-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--hris-primary-light);
    color: var(--hris-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hris-stat-icon .dashicons {
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-block !important;
    line-height: 22px !important;
}

.hris-stat-data .hris-stat-number {
    font-family: var(--hris-font) !important;
    font-size: 22px;
    font-weight: 700;
    color: var(--hris-secondary);
}

.hris-stat-data .hris-stat-label {
    font-family: var(--hris-font) !important;
    font-size: 12px;
    color: var(--hris-text-muted);
}

/* Cards */
.hris-card {
    background: var(--hris-surface);
    border: 1px solid var(--hris-border);
    border-radius: var(--hris-radius);
    box-shadow: var(--hris-shadow-sm);
    overflow: hidden;
    margin-bottom: 24px;
}

.hris-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--hris-border);
    background: #f8fafc;
}

.hris-card-header h2 {
    margin: 0;
    font-family: var(--hris-font) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--hris-secondary);
}

.hris-card-body {
    padding: 20px;
}

.hris-status-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 2.2 !important;
}

.hris-status-list li {
    font-family: var(--hris-font) !important;
    font-size: 13px;
    color: var(--hris-text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* FORM LABELS */
.hris-field-group label,
.hris-card label,
.hris-meta-wrapper label {
    font-family: var(--hris-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--hris-secondary) !important;
    margin-bottom: 6px !important;
    display: block !important;
    line-height: 1.4 !important;
}

/* BUTTON STYLING */
.button,
.button-primary,
.button-secondary,
.hris-btn,
button[type="submit"],
input[type="submit"],
button {
    font-family: var(--hris-font) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    box-shadow: var(--hris-shadow-sm) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    max-width: 100% !important;
}

/* Primary Button (Indigo) */
.button.button-primary,
.button-primary,
.hris-btn-primary,
button[type="submit"]:not(.button-small),
input[type="submit"] {
    background: var(--hris-primary) !important;
    border: 1px solid var(--hris-primary) !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    height: 42px !important;
}

.button.button-primary:hover,
.button-primary:hover,
.hris-btn-primary:hover,
button[type="submit"]:not(.button-small):hover,
input[type="submit"]:hover {
    background: var(--hris-primary-hover) !important;
    border-color: var(--hris-primary-hover) !important;
    color: #ffffff !important;
}

/* Secondary Button */
.button.button-secondary,
.button-secondary,
.hris-btn-outline {
    background: #ffffff !important;
    border: 1px solid var(--hris-border) !important;
    color: var(--hris-secondary) !important;
    padding: 10px 16px !important;
    height: 42px !important;
}

.button.button-secondary:hover,
.button-secondary:hover,
.hris-btn-outline:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: var(--hris-secondary) !important;
}

/* Small Table Buttons */
.button.button-small,
.button-small {
    font-family: var(--hris-font) !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
}

a.button-small.button-secondary,
.button-small.button-secondary {
    background: #ffffff !important;
    border: 1px solid var(--hris-border) !important;
    color: var(--hris-secondary) !important;
}

.button-link-delete,
.button.button-link-delete {
    font-family: var(--hris-font) !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1px solid #fecaca !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    height: 28px !important;
    min-height: 28px !important;
}

/* TOUCH-SCROLLABLE DATA TABLES */
.hris-table-wrapper {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--hris-radius) !important;
}

table.wp-list-table {
    font-family: var(--hris-font) !important;
    width: 100% !important;
    table-layout: auto !important;
    border-radius: var(--hris-radius) !important;
    border: 1px solid var(--hris-border) !important;
    box-shadow: var(--hris-shadow-sm) !important;
    overflow: hidden !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: var(--hris-surface) !important;
    clear: both !important;
}

table.wp-list-table thead th,
table.wp-list-table tfoot th {
    font-family: var(--hris-font) !important;
    background: #f8fafc !important;
    color: var(--hris-secondary) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid var(--hris-border) !important;
    text-align: left !important;
    white-space: nowrap !important;
}

table.wp-list-table tbody tr td {
    font-family: var(--hris-font) !important;
    padding: 8px 12px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid var(--hris-border) !important;
    font-size: 13px !important;
    color: var(--hris-text-main) !important;
    white-space: nowrap !important;
}

table.wp-list-table tbody tr:last-child td {
    border-bottom: none !important;
}

table.wp-list-table tbody tr:hover {
    background: var(--hris-primary-light) !important;
}

/* FORM INPUTS & SELECTS */
.hris-field-group input:not([type="checkbox"]):not([type="radio"]), 
.hris-field-group select, 
.hris-input,
input.hris-input,
select.hris-input,
textarea.hris-input {
    font-family: var(--hris-font) !important;
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    border: 1px solid var(--hris-border) !important;
    background: #ffffff !important;
    font-size: 13px !important;
    color: var(--hris-text-main) !important;
    box-shadow: var(--hris-shadow-sm) !important;
    box-sizing: border-box !important;
    line-height: 40px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.hris-field-group textarea {
    font-family: var(--hris-font) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 90px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    border: 1px solid var(--hris-border) !important;
    background: #ffffff !important;
    font-size: 13px !important;
    color: var(--hris-text-main) !important;
    box-shadow: var(--hris-shadow-sm) !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
}

/* PLACEHOLDERS */
::-webkit-input-placeholder,
::-moz-placeholder,
:-ms-input-placeholder,
::-ms-input-placeholder,
::placeholder {
    font-family: var(--hris-font) !important;
    color: #94a3b8 !important;
    font-size: 13px !important;
}

.hris-field-group input:focus, 
.hris-field-group select:focus, 
.hris-field-group textarea:focus,
.hris-input:focus {
    border-color: var(--hris-primary) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15) !important;
    outline: none !important;
}

/* Badges */
.hris-badge {
    font-family: var(--hris-font) !important;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Green: Success / Create / Verified */
.hris-badge-success {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

/* Red: Delete / Permanent Actions */
.hris-badge-danger {
    background: #ef4444 !important;
    color: #ffffff !important;
}

/* Orange: Failed / Invalid / Locked */
.hris-badge-warning {
    background: #f97316 !important;
    color: #ffffff !important;
}

/* Yellow: Edit / Update / Reset / Change */
.hris-badge-update {
    background: #fef08a !important;
    color: #713f12 !important;
}

.hris-badge-pending {
    background: #fef3c7 !important;
    color: #92400e !important;
}

/* FRONTEND SAAS APP CONTAINER & SIDEBAR LAYOUT [hris_dashboard] */
.hris-frontend-app-container {
    display: flex;
    min-height: 100vh;
    background: var(--hris-bg);
    font-family: var(--hris-font) !important;
    color: var(--hris-text-main);
    width: 100% !important;
}

.hris-app-sidebar {
    width: 260px;
    min-width: 260px;
    background: var(--hris-sidebar-bg);
    color: var(--hris-sidebar-text);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    box-sizing: border-box;
    border-right: 1px solid #1e293b;
    flex-shrink: 0;
}

.hris-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 20px 12px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 20px;
}

.hris-brand-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hris-brand-title {
    font-family: var(--hris-font) !important;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
}

.hris-brand-subtitle {
    font-family: var(--hris-font) !important;
    color: #64748b;
    font-size: 11px;
    margin-top: 2px;
}

.hris-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 24px;
}

.hris-user-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    background: var(--hris-primary);
    color: #ffffff;
    font-weight: 700;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px;
    font-family: var(--hris-font) !important;
    overflow: hidden !important;
}

.hris-user-info .hris-user-name {
    font-family: var(--hris-font) !important;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
}

.hris-user-info .hris-user-role {
    font-family: var(--hris-font) !important;
    color: #94a3b8;
    font-size: 11px;
}

.hris-sidebar-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex-grow: 1 !important;
}

.hris-nav-item {
    font-family: var(--hris-font) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    color: var(--hris-sidebar-text) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.hris-nav-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

.hris-nav-item.active {
    background: var(--hris-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3) !important;
}

.hris-nav-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.hris-nav-logout {
    color: #ef4444 !important;
}

.hris-nav-logout:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}

.hris-app-main-content {
    flex-grow: 1;
    padding: 32px 40px;
    box-sizing: border-box;
    overflow-y: auto;
    width: 100%;
}

/* AUTH CARDS */
.hris-auth-card {
    max-width: 440px !important;
    width: 100% !important;
    margin: 40px auto !important;
    background: #ffffff !important;
    border: 1px solid var(--hris-border) !important;
    border-radius: var(--hris-radius) !important;
    padding: 32px 28px !important;
    box-shadow: var(--hris-shadow-md) !important;
    font-family: var(--hris-font) !important;
    box-sizing: border-box !important;
}

.hris-auth-header {
    text-align: center !important;
    margin-bottom: 24px !important;
}

.hris-auth-header h2 {
    margin: 0 0 8px 0 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--hris-secondary) !important;
    line-height: 1.3 !important;
    font-family: var(--hris-font) !important;
}

.hris-auth-header p {
    margin: 0 !important;
    font-size: 13px !important;
    color: var(--hris-text-muted) !important;
    line-height: 1.5 !important;
    font-family: var(--hris-font) !important;
}

/* ==========================================================================
   BREAKPOINTS: RESPONSIVE MEDIA QUERIES FOR TABLETS & MOBILE PHONES
   ========================================================================== */

/* LARGE TABLETS / LAPTOPS (<= 1100px) */
@media (max-width: 1100px) {
    .hris-grid-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hris-form-grid-layout {
        grid-template-columns: 1fr !important;
    }
    .hris-app-main-content {
        padding: 24px 28px;
    }
}

/* MEDIUM TABLETS & MOBILE PORTRAIT (<= 900px) */
@media (max-width: 900px) {
    .hris-frontend-app-container {
        flex-direction: column !important;
    }
    .hris-app-sidebar {
        width: 100% !important;
        min-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #1e293b !important;
        padding: 16px 20px !important;
    }
    .hris-sidebar-brand {
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
    }
    .hris-sidebar-user {
        margin-bottom: 16px !important;
    }
    .hris-sidebar-nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .hris-nav-item {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    .hris-grid-3, 
    .hris-grid-2, 
    .hris-grid-main {
        grid-template-columns: 1fr !important;
    }
    .hris-app-main-content {
        padding: 20px 16px !important;
    }
}

/* SMALL MOBILE DEVICES (<= 600px) */
@media (max-width: 600px) {
    .hris-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 16px !important;
    }
    .hris-header h1 {
        font-size: 20px !important;
    }
    .hris-grid-4 {
        grid-template-columns: 1fr !important;
    }
    .hris-card-body {
        padding: 16px !important;
    }
    .hris-card-header {
        padding: 8px 12px !important;
    }
    .hris-auth-card {
        padding: 24px 18px !important;
        margin: 20px auto !important;
    }
    .hris-sidebar-nav {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        width: 100% !important;
    }
    .hris-nav-item {
        justify-content: flex-start !important;
    }
}

/* WP ADMIN PAGE SPECIFIC OVERRIDES */
.post-type-hris_employee .subsubsub,
.post-type-hris_employee .row-actions,
.post-type-hris_employee .search-box input[type="submit"],
.post-type-hris_employee .search-box #search-submit,
.post-type-hris_employee .tablenav,
.post-type-hris_employee .column-cb,
.post-type-hris_employee .check-column,
.post-type-hris_employee .wp-header-end {
    display: none !important;
}

.post-type-hris_employee .hris-header-flexbar {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 20px 0 16px 0 !important;
    width: 100% !important;
}

.post-type-hris_employee .hris-header-flexbar h1.wp-heading-inline {
    font-family: var(--hris-font) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--hris-secondary) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.post-type-hris_employee .hris-header-flexbar .page-title-action {
    font-family: var(--hris-font) !important;
    background: var(--hris-primary) !important;
    border-color: var(--hris-primary) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 0 16px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    height: 38px !important;
    line-height: 38px !important;
    box-shadow: var(--hris-shadow-sm) !important;
    margin: 0 !important;
    top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    transition: background 0.2s ease !important;
}

.post-type-hris_employee .hris-header-flexbar .page-title-action:hover {
    background: var(--hris-primary-hover) !important;
}

.post-type-hris_employee .hris-header-flexbar .search-box {
    margin: 0 !important;
    float: none !important;
    position: static !important;
    display: inline-flex !important;
    align-items: center !important;
}

.post-type-hris_employee .hris-header-flexbar .search-box input[type="search"] {
    font-family: var(--hris-font) !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    width: 280px !important;
    max-width: 100% !important;
    border-radius: 8px !important;
    border: 1px solid var(--hris-border) !important;
    padding: 0 14px !important;
    font-size: 13px !important;
    box-shadow: var(--hris-shadow-sm) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    line-height: 36px !important;
}

.post-type-hris_employee .hris-dup-notice ~ #message,
.post-type-hris_employee .hris-dup-notice ~ .updated {
    display: none !important;
}

.post-type-hris_employee #poststuff .postbox {
    border-radius: var(--hris-radius);
    border: 1px solid var(--hris-border);
    box-shadow: var(--hris-shadow-sm);
    overflow: hidden;
}

.post-type-hris_employee #poststuff .postbox .hndle {
    font-family: var(--hris-font) !important;
    background: #f8fafc;
    border-bottom: 1px solid var(--hris-border);
    font-size: 15px;
    font-weight: 600;
    color: var(--hris-secondary);
    padding: 12px 16px;
}

.post-type-hris_employee #poststuff #postbody-content,
.post-type-hris_employee #poststuff #post-body-content {
    margin-bottom: 0 !important;
}

.post-type-hris_employee #poststuff #normal-sortables,
.post-type-hris_employee #poststuff #side-sortables {
    min-height: 0 !important;
}

.post-type-hris_employee #poststuff #normal-sortables .postbox:first-child,
.post-type-hris_employee #poststuff #side-sortables .postbox:first-child,
.post-type-hris_employee #poststuff #postbox-container-1 .postbox:first-child,
.post-type-hris_employee #poststuff #postbox-container-2 .postbox:first-child {
    margin-top: 0 !important;
}

.post-type-hris_employee #poststuff #postimagediv {
    margin-bottom: 12px !important;
}

.post-type-hris_employee #submitdiv {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.post-type-hris_employee #submitdiv .postbox-header,
.post-type-hris_employee #submitdiv .hndle,
.post-type-hris_employee #submitdiv .handlediv,
.post-type-hris_employee #submitdiv .handle-actions,
.post-type-hris_employee #submitdiv .handle-order-higher,
.post-type-hris_employee #submitdiv .handle-order-lower,
.post-type-hris_employee #submitdiv .handle-order-single,
.post-type-hris_employee #submitdiv #misc-publishing-actions,
.post-type-hris_employee #submitdiv #minor-publishing-actions,
.post-type-hris_employee #submitdiv #delete-action {
    display: none !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.post-type-hris_employee #submitdiv .inside {
    padding: 0 !important;
    margin: 0 !important;
}

.post-type-hris_employee #submitdiv #major-publishing-actions {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.post-type-hris_employee #submitdiv #publishing-action {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    text-align: center !important;
}

.post-type-hris_employee #submitdiv #publish {
    font-family: var(--hris-font) !important;
    width: 100% !important;
    display: block !important;
    background: var(--hris-primary) !important;
    border-color: var(--hris-primary) !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    height: 48px !important;
    line-height: 24px !important;
    box-shadow: var(--hris-shadow-sm) !important;
    font-size: 15px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.post-type-hris_employee #submitdiv #publish:hover {
    background: var(--hris-primary-hover) !important;
}

/* ==========================================================================
   HAMBURGER BUTTON, MOBILE HEADER & OFF-CANVAS SLIDE-IN MENU (v15.1.0)
   ========================================================================== */

.hris-mobile-header {
    display: none !important;
}

.hris-sidebar-overlay {
    display: none !important;
}

.hris-sidebar-close-btn {
    display: none !important;
}

/* HAMBURGER BUTTON STYLING */
.hris-hamburger-btn {
    width: 42px !important;
    height: 42px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.hris-hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.hris-hamburger-line {
    width: 20px !important;
    height: 2px !important;
    background-color: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.hris-hamburger-btn.is-active .hris-hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg) !important;
}

.hris-hamburger-btn.is-active .hris-hamburger-line:nth-child(2) {
    opacity: 0 !important;
}

.hris-hamburger-btn.is-active .hris-hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg) !important;
}

/* RESPONSIVE HAMBURGER & SLIDE-IN RULES FOR MOBILE AND TABLETS (<= 900px) */
@media (max-width: 900px) {
    .hris-mobile-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: var(--hris-sidebar-bg) !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid #1e293b !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 99 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hris-mobile-brand {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .hris-mobile-user-avatar {
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        background: var(--hris-primary) !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        overflow: hidden !important;
        border: 2px solid rgba(255, 255, 255, 0.2) !important;
    }

    .hris-sidebar-overlay {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(15, 23, 42, 0.65) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 9998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }

    .hris-sidebar-overlay.is-open {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* OFF-CANVAS SLIDE-IN SIDEBAR FROM LEFT */
    .hris-app-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 270px !important;
        min-width: 270px !important;
        height: 100vh !important;
        z-index: 9999 !important;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        border-right: 1px solid #1e293b !important;
        padding: 20px 16px !important;
    }

    .hris-app-sidebar.is-open {
        left: 0 !important;
    }

    .hris-sidebar-close-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        font-size: 14px !important;
        cursor: pointer !important;
        padding: 0 !important;
        transition: background 0.2s ease !important;
    }

    .hris-sidebar-close-btn:hover {
        background: rgba(239, 68, 68, 0.2) !important;
        color: #ef4444 !important;
    }

    .hris-sidebar-nav {
        flex-direction: column !important;
        display: flex !important;
        grid-template-columns: none !important;
        width: 100% !important;
    }

    .hris-nav-item {
        padding: 12px 16px !important;
        font-size: 13px !important;
        justify-content: flex-start !important;
    }
}


/* PASSWORD FIELD UI: SUGGEST & VISIBILITY TOGGLE */
.hris-password-wrapper {
    position: relative;
    display: block;
    width: 100%;
}
.hris-password-toggle {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    background: transparent !important;
    border: none !important;
    padding: 4px !important;
    margin: 0 !important;
    font-size: 16px !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
}
.hris-password-toggle:hover {
    background: rgba(0,0,0,0.04) !important;
    color: var(--hris-secondary) !important;
    border-radius: 4px !important;
}
.hris-password-wrapper input.hris-input {
    padding-right: 40px !important;
}
.hris-password-suggest {
    font-size: 11px;
    color: var(--hris-primary);
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}
.hris-password-suggest:hover {
    color: var(--hris-primary-hover);
    text-decoration: underline;
}

.hris-auth-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #ef4444 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    line-height: 1.4 !important;
}

/* OVERRIDE WP DEFAULT TITLE COLUMN STYLING */
.post-type-hris_employee table.wp-list-table .column-title strong {
    font-weight: normal !important;
}

.post-type-hris_employee table.wp-list-table .column-title a.row-title {
    font-weight: normal !important;
    color: var(--hris-text-main) !important;
    font-size: 13px !important;
    text-decoration: none !important;
}

.post-type-hris_employee table.wp-list-table .column-title a.row-title:hover {
    color: var(--hris-primary) !important;
}

/* SIDEBAR SUBMENU ACCORDION */
.hris-nav-group {
    display: flex;
    flex-direction: column;
}
.hris-nav-submenu {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 18px;
    margin-top: 4px;
}
.hris-nav-group.is-open .hris-nav-submenu {
    display: flex !important;
}
.hris-nav-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.hris-nav-toggle:hover {
    background: rgba(255,255,255,0.1);
}
.hris-nav-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.hris-nav-group.is-open .hris-nav-toggle .dashicons {
    transform: rotate(180deg);
}

/* PERMISSIONS TABLE TEXT WRAPPING FIX */
table.hris-permissions-table thead th,
table.hris-permissions-table tbody td {
    white-space: normal !important;
    min-width: 110px;
    vertical-align: middle !important;
    line-height: 1.3 !important;
}
table.hris-permissions-table thead th {
    text-align: center !important;
}
table.hris-permissions-table tbody td:first-child,
table.hris-permissions-table thead th:first-child {
    text-align: left !important;
    min-width: 150px;
}

/* DASHICONS FONT FIX */
/* Prevent the global Poppins override from breaking WordPress Dashicons */
.hris-app-wrapper .dashicons,
.hris-frontend-app-container .dashicons,
.hris-auth-card .dashicons,
.hris-nav-icon .dashicons,
.hris-stat-icon .dashicons {
    font-family: dashicons !important;
}

/* MODAL STYLES FOR IMPORT/EXPORT */
.hris-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.hris-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -40%);
    width: 90%;
    max-width: 400px;
    background: #ffffff;
    border-radius: var(--hris-radius);
    box-shadow: var(--hris-shadow-md);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.hris-modal.is-active,
.hris-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
.hris-modal.is-active {
    transform: translate(-50%, -50%);
}
.hris-modal-close {
    cursor: pointer;
    font-size: 14px;
    color: var(--hris-text-muted);
    font-weight: bold;
}
.hris-modal-close:hover {
    color: #ef4444;
}
.hris-progress-bar-bg {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.hris-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--hris-primary);
    transition: width 0.1s linear;
}
