/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --bg-main: #0f172a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --sidebar-bg: #0f172a;
    --text-dark: #1e293b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body {
    background: var(--bg-main);
    background-image: radial-gradient(circle at 50% -20%, #334155 0%, #0f172a 100%);
    height: 100vh;
    color: var(--text);
    overflow: hidden;
}

/* --- HELPER CLASSES --- */
.text-red { color: #ef4444 !important; font-weight: bold; }

/* --- LOGO STYLES --- */
.login-logo-img {
    width: 120px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.3));
}

/* --- NEW MESSAGE BOX STYLING --- */
.modern-input-wrapper { position: relative; width: 100%; }
.modern-label { font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }

.message-box-styled {
    width: 100%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    font-size: 15px;
    color: #334155;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.message-box-styled:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.message-box-styled::placeholder { color: #94a3b8; }

/* --- MODERN SETTINGS STYLES --- */
.settings-header-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.settings-header-banner.warning-bg {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
.icon-circle {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.icon-circle.warning-color { color: var(--warning); }

.settings-header-banner h3 { margin: 0; font-size: 18px; color: #1e293b; }
.settings-header-banner p { margin: 0; font-size: 13px; color: #64748b; }

.settings-body { padding: 25px; }

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}
.setting-row.border-none { border: none; margin-bottom: 0; padding-bottom: 0; }
.s-title { display: block; font-weight: 600; font-size: 15px; color: #334155; }
.s-desc { font-size: 12px; color: #94a3b8; }

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(24px); }

/* Modern Input Group */
.input-group-modern { margin-bottom: 20px; }
.input-group-modern label { font-size: 12px; font-weight: 700; color: #475569; text-transform: uppercase; margin-bottom: 8px; display: block; }
.pass-input-box { position: relative; }
.pass-input-box input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 14px 45px 14px 14px; /* padding right for icon */
    border-radius: 10px;
    font-size: 14px;
    color: #334155;
    outline: none;
    transition: 0.2s;
}
.pass-input-box input:focus { background: white; border-color: var(--accent); }
.pass-input-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s;
}
.pass-input-box i:hover { color: var(--accent); }


/* --- CUSTOM DROPDOWN STYLING --- */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}
.custom-select-trigger {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 20px;
    font-size: 15px;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s;
}
.custom-select-trigger:hover {
    border-color: #cbd5e1;
}
.custom-options {
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 200px; /* Limits height to show about 4-5 items */
    overflow-y: auto; /* Enables custom scrollbar */
}
.custom-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.custom-option {
    padding: 12px 20px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}
.custom-option:last-child {
    border-bottom: none;
}
.custom-option:hover {
    background: #eff6ff;
    color: var(--accent);
}
.custom-option.selected {
    background: #dbeafe;
    color: var(--accent);
    font-weight: 600;
}

/* Custom Scrollbar for Dropdown */
.custom-options::-webkit-scrollbar {
    width: 6px;
}
.custom-options::-webkit-scrollbar-track {
    background: #f1f5f9; 
    border-radius: 4px;
}
.custom-options::-webkit-scrollbar-thumb {
    background: #cbd5e1; 
    border-radius: 4px;
}
.custom-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8; 
}


/* --- ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- LOGIN VIEW --- */
.login-wrapper { height: 100vh; width: 100vw; display: flex; align-items: center; justify-content: center; position: fixed; top: 0; left: 0; z-index: 50; backdrop-filter: blur(10px); }
.glass { background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); border-radius: 24px; padding: 40px; width: 100%; max-width: 420px; text-align: center; animation: fadeIn 0.8s ease-out; }
h2 { font-size: 26px; margin-bottom: 30px; letter-spacing: -0.5px; } h2 span { font-weight: 300; color: var(--accent); }
.input-box { position: relative; margin-bottom: 15px; }
.input-box i { position: absolute; left: 16px; top: 16px; color: var(--text-muted); font-size: 14px; }
input { width: 100%; background: rgba(0, 0, 0, 0.2); border: 1px solid var(--glass-border); padding: 14px 14px 14px 45px; border-radius: 12px; color: white; font-size: 14px; outline: none; transition: 0.3s; }
input:focus { border-color: var(--accent); background: rgba(0, 0, 0, 0.4); transform: scale(1.02); }
.btn-prime { width: 100%; padding: 14px; background: var(--accent); color: white; border: none; border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.5); }
.btn-prime:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-prime:disabled { background: #334155; cursor: not-allowed; transform: none; box-shadow: none; }
.links-row { margin-top: 20px; display: flex; justify-content: center; }
.link-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 13px; transition: 0.3s; }
.link-btn:hover { color: var(--accent); text-decoration: underline; }
.otp-banner { background: rgba(59, 130, 246, 0.15); padding: 12px; border-radius: 10px; margin-bottom: 20px; border: 1px solid rgba(59, 130, 246, 0.3); }
.center-text input { text-align: center; letter-spacing: 8px; font-size: 22px; font-weight: 700; }
.spinner { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s infinite linear; margin: 0 auto; }
.hidden { display: none !important; }

/* --- DASHBOARD LAYOUT --- */
.dashboard-container { display: flex; width: 100vw; height: 100vh; background: #f1f5f9; position: fixed; top: 0; left: 0; z-index: 40; opacity: 0; animation: fadeIn 0.6s forwards; }
.sidebar { width: 260px; background: var(--sidebar-bg); color: white; display: flex; flex-direction: column; padding: 25px; border-right: 1px solid #1e293b; z-index: 100; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.brand { font-size: 20px; font-weight: 700; margin-bottom: 40px; color: var(--accent); display: flex; gap: 12px; align-items: center; }
.nav-btn { padding: 14px 16px; color: var(--text-muted); background: transparent; border: none; text-align: left; cursor: pointer; border-radius: 12px; margin-bottom: 8px; display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 500; transition: all 0.3s ease; position: relative; width: 100%; }
.nav-btn:hover { background: rgba(255, 255, 255, 0.05); color: white; transform: translateX(5px); }
.nav-btn.active { background: var(--accent); color: white; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.badge-dot { width: 8px; height: 8px; background: var(--danger); border-radius: 50%; position: absolute; right: 15px; }
.main-panel { flex: 1; background: #f8fafc; display: flex; flex-direction: column; overflow: hidden; position: relative; }
header { background: white; padding: 0 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; height: 80px; flex-shrink: 0; }
header h2 { color: var(--text-dark); margin: 0; font-size: 20px; font-weight: 700; }
.user-mini { display: flex; gap: 12px; align-items: center; color: var(--text-dark); font-weight: 600; font-size: 14px; }
.user-mini img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #e2e8f0; }
#mobile-menu-btn { display: none; background: none; border: none; font-size: 24px; color: var(--text-dark); cursor: pointer; margin-right: 15px; }

.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 90; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.mobile-nav-overlay.active { display: block; opacity: 1; pointer-events: auto; }

.content-section { padding: 30px; height: 100%; overflow-y: auto; color: var(--text-dark); animation: slideInRight 0.4s ease-out; padding-bottom: 100px; }
.profile-card { background: white; padding: 35px; border-radius: 20px; box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05); border: 1px solid #f1f5f9; }
.profile-header { display: flex; gap: 25px; align-items: center; border-bottom: 1px solid #f1f5f9; padding-bottom: 25px; margin-bottom: 25px; }
.img-container { position: relative; width: 110px; height: 110px; border-radius: 20px; overflow: hidden; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.img-container .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; color: white; opacity: 0; transition: 0.3s; }
.img-container:hover img { transform: scale(1.1); } .img-container:hover .overlay { opacity: 1; }
.badge { background: #eff6ff; color: var(--accent); padding: 6px 14px; border-radius: 30px; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; }
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.detail-box label { font-size: 11px; color: #64748b; display: block; margin-bottom: 8px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.detail-box p { font-size: 16px; font-weight: 600; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; color: #334155; }
.full-width { grid-column: 1 / -1; }

/* Custom Picker */
.att-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px; position: relative; }
.custom-picker-btn { padding: 10px 16px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; color: #334155; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: 0.3s; position: relative; }
.custom-picker-btn:hover { background: white; border-color: var(--accent); }
.custom-date-popup { position: absolute; top: 60px; right: 0; background: white; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); width: 280px; z-index: 50; padding: 15px; animation: fadeIn 0.2s; }
.picker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-weight: 700; color: var(--text-dark); }
.picker-header button { background: #f1f5f9; border: none; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: #64748b; }
.picker-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.month-btn { padding: 8px; border: none; background: #f8fafc; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; color: #475569; transition: 0.2s; }
.month-btn:hover { background: #e2e8f0; } .month-btn.active { background: var(--accent); color: white; }

.att-circle-wrapper { display: flex; justify-content: center; margin-bottom: 30px; }
.progress-circle { width: 180px; height: 180px; border-radius: 50%; background: conic-gradient(var(--accent) var(--progress, 0%), #e2e8f0 0deg); display: flex; align-items: center; justify-content: center; position: relative; transition: background 0.5s ease; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15); }
.progress-circle::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 15px; background: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.inner-circle { background: white; width: 150px; height: 150px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 20px rgba(0,0,0,0.05); }
.inner-circle span { font-size: 32px; font-weight: 800; color: var(--text-dark); }
.inner-circle small { font-size: 12px; color: #64748b; text-transform: uppercase; font-weight: 600; }
.att-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.att-stat-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px 5px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.att-stat-box i { font-size: 20px; margin-bottom: 5px; }
.att-stat-box span { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.att-stat-box label { font-size: 10px; color: #94a3b8; font-weight: 600; text-transform: uppercase; }

.chat-wrapper { display: flex; flex-direction: column; height: 100%; background: #fff; }
.chat-header { padding: 20px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; }
.status-online { color: var(--success); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.status-online::before { content: ''; width: 8px; height: 8px; background: var(--success); border-radius: 50%; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.chat-box { flex: 1; padding: 30px; background: #f1f5f9; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.msg-bubble { max-width: 80%; padding: 15px 20px; border-radius: 16px; font-size: 14px; line-height: 1.5; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.msg-received { align-self: flex-start; background: white; color: #334155; border-bottom-left-radius: 4px; border: 1px solid #e2e8f0; border-left: 4px solid var(--accent); }
.msg-bubble span { font-size: 11px; color: #94a3b8; display: block; margin-top: 8px; font-weight: 600; }

.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal-box { background: white; width: 100%; max-width: 500px; border-radius: 20px; padding: 30px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); animation: fadeIn 0.3s ease-out; }
.modal-box-scrollable .modal-body { max-height: 60vh; overflow-y: auto; padding-right: 10px; }
.sticky-modal-header { position: sticky; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px; margin-bottom: 25px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; border-bottom: 1px solid #e2e8f0; padding-bottom: 15px; }
.section-label { font-size: 12px; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin: 20px 0 10px; border-bottom: 1px solid #e2e8f0; padding-bottom: 5px; }
.up-label { font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 6px; display: block; }
#form-update input { background: #f8fafc; color: #1e293b; border: 1px solid #cbd5e1; }
#form-update input:focus { background: white; border-color: var(--accent); }

.fs-viewer { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fadeIn 0.3s; }
.fs-viewer img { max-width: 90%; max-height: 80vh; border: 4px solid white; border-radius: 12px; box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.fs-viewer p { color: white; margin-top: 20px; font-size: 14px; opacity: 0.8; font-weight: 500; }
#toast-box { position: fixed; top: 30px; right: 30px; z-index: 500; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #1e293b; color: white; padding: 16px 24px; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2); border-left: 4px solid var(--success); font-weight: 500; font-size: 14px; animation: slideInRight 0.3s; }
.toast.danger { border-left-color: var(--danger); }
.slip-notice-card { background: white; border-left: 5px solid #10b981; border-radius: 8px; padding: 15px; margin-bottom: 10px; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.2s; border: 1px solid #e2e8f0; }
.slip-notice-card:hover { transform: translateX(5px); }
.slip-title { font-weight: 700; color: #1e293b; display: block; font-size: 14px; }
.slip-date { font-size: 12px; color: #64748b; }

/* --- PRIME PAYSLIP DESIGN --- */
.prime-slip-container { border: 4px double #1e293b; padding: 20px; background: white; font-family: 'Times New Roman', serif; color: #000; position: relative; min-height: 800px; display: flex; flex-direction: column; }
.prime-header-box { border: 2px solid #000; text-align: center; padding: 15px; margin-bottom: 25px; position: relative; background: #fff; }
.title-strip { background: #000; color: #fff; display: inline-block; padding: 5px 20px; font-weight: bold; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; border-radius: 4px; }
.prime-header-box h1 { font-size: 32px; margin: 5px 0; text-transform: uppercase; letter-spacing: 1px; }
.prime-header-box p { font-size: 14px; margin: 2px 0; }
.prime-info-grid { display: flex; justify-content: space-between; margin-bottom: 25px; font-size: 14px; border-bottom: 1px solid #000; padding-bottom: 15px; }
.prime-info-grid p { margin-bottom: 5px; line-height: 1.4; }
.text-right { text-align: right; }
.prime-table { width: 100%; border-collapse: collapse; margin-bottom: auto; }
.prime-table th, .prime-table td { border: 1px solid #000; padding: 8px 12px; font-size: 14px; }
.prime-table th { background: #f0f0f0; text-transform: uppercase; font-weight: bold; }
.prime-table .total-row td { background: #e0e0e0; border-top: 2px solid #000; }
.prime-footer { margin-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; border-top: 2px solid #000; padding-top: 20px; }
.amount-words { font-style: italic; max-width: 50%; }
.signature-section { display: flex; gap: 30px; align-items: flex-end; }
.sig-block { text-align: center; }
.sig-line { font-weight: bold; font-size: 16px; border-bottom: 1px solid #000; padding-bottom: 5px; margin-bottom: 5px; font-family: 'Mrs Saint Delafield', cursive; font-size: 24px; }
.company-logo { text-align: center; opacity: 0.8; }
.print-timestamp { margin-top: 20px; font-size: 10px; text-align: center; color: #555; border-top: 1px dotted #999; padding-top: 5px; }

/* --- INCHARGE CARD STYLES --- */
.incharge-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 25px; transition: transform 0.2s; }
.incharge-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.incharge-img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 4px solid #f1f5f9; margin-bottom: 15px; }
.incharge-name { font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 5px; }
.incharge-role { background: #dbeafe; color: #1e40af; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px; }
.incharge-desc { font-size: 13px; color: #64748b; line-height: 1.5; margin-bottom: 20px; padding: 0 10px; }
.incharge-contact { width: 100%; border-top: 1px solid #f1f5f9; padding-top: 15px; display: flex; justify-content: space-around; }
.contact-btn { color: #64748b; font-size: 20px; transition: 0.2s; cursor: pointer; text-decoration: none; }
.contact-btn:hover { color: var(--accent); transform: scale(1.1); }

@media (max-width: 768px) {
    body { padding-bottom: env(safe-area-inset-bottom); }
    .sidebar { position: fixed; left: -280px; top: 0; height: 100%; width: 260px; box-shadow: none; z-index: 100; }
    .sidebar.active { left: 0; box-shadow: 10px 0 50px rgba(0,0,0,0.5); }
    #mobile-menu-btn { display: block !important; }
    .main-panel { width: 100%; margin-left: 0; }
    header { padding: 0 15px; }
    .profile-header { flex-direction: column; text-align: center; gap: 15px; }
    .img-container { margin: 0 auto; }
    .details-grid { grid-template-columns: 1fr; gap: 15px; }
    .content-section { padding: 15px; padding-bottom: 120px; }
    .prime-slip-container { min-width: 600px; }
    .modal-box-scrollable .modal-body { overflow-x: auto; }
    .att-header { flex-direction: row; gap: 10px; }
    .att-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media print {
    .sidebar, .top-header, .page-section, .modal-overlay, .login-wrapper, .dashboard-container, #mobile-menu-btn { display: none !important; }
    body.print-mode-slip #payslip-preview-modal { display: block !important; position: absolute; inset: 0; width: 100%; height: 100%; background: white; z-index: 9999; }
    body.print-mode-slip .modal-box { position: absolute; top: 0; left: 0; width: 100%; border: none; padding: 0; box-shadow: none; max-width: 100%; }
    body.print-mode-slip .modal-header, body.print-mode-slip .modal-footer { display: none !important; }
}
