/* ======================================================
   UNIFIED APPLICATION STYLES
   Zusammengeführte und optimierte Styles für die gesamte Anwendung
   ====================================================== */

/* ======================================================
   GLOBAL RESET & BASE STYLES
   ====================================================== */
* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body, html {
    background: #f3f4f7;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    color: #2d3748;
    font-weight: 400;
}

/* ======================================================
   HEADER STYLING
   ====================================================== */
.header {
    background: #1a202c;
    border-bottom: 1px solid #2d3748;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 60px;
    width: 100%;
}

.header .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.header h1 {
    color: #f7fafc;
    font-size: 20px;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.3px;
}

.header .menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.header .menu a {
    color: #cbd5e0;
    text-decoration: none;
    padding: 20px 24px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-right: 1px solid #2d3748;
    display: flex;
    align-items: center;
    height: 60px;
}

.header .menu a:hover,
.header .menu a.active {
    background: #2d3748;
    color: #f7fafc;
    border-right-color: #4a5568;
}

.header .menu a svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: currentColor;
    vertical-align: middle;
}

/* Mobile Menu Toggle */
.header .wrapper label, 
.header .wrapper input[type=checkbox] {
    display: none;
}

.header .wrapper label {
    cursor: pointer;
    position: relative;
    height: 40px;
    width: 50px;
    text-decoration: none;
    margin-right: 5px;
    border-radius: 5px;
}

.header .wrapper label::before, 
.header .wrapper label::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 20px;
    height: 2px;
    background-color: #616b78;
}

.header .wrapper label::after {
    top: 26px;
}

.header .wrapper label:hover, 
.header .wrapper label:active, 
.header .wrapper input[type=checkbox]:checked ~ label {
    background-color: #242a35;
}

/* ======================================================
   CONTENT BEREICH
   ====================================================== */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    display: flex;
    align-items: center;
    padding: 25px 0 10px 0;
}

.page-title .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3dc4ad;
    color: #ffffff;
    margin-right: 20px;
    border-radius: 50%;
    height: 55px;
    width: 55px;
    min-height: 55px;
    min-width: 55px;
}

.page-title .icon svg {
    fill: #fff;
}

.page-title h2 {
    margin: 0;
    padding: 0 0 7px 0;
    font-size: 28px;
    font-weight: 300;
    color: #2d3748;
    letter-spacing: -0.3px;
}

.page-title p {
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #718096;
    font-weight: 400;
}

/* ======================================================
   PAGE HEADER (für Seitentitel)
   ====================================================== */
.page-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.page-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 300;
    color: #2d3748;
    letter-spacing: -0.3px;
}

.page-header p {
    margin: 0;
    color: #718096;
    font-size: 16px;
    font-weight: 400;
}

/* ======================================================
   BLOCKS & CARDS SYSTEM
   ====================================================== */
.block, .module-card, .data-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
    margin: 25px 0;
    padding: 25px;
}

.module-card:hover, .data-card:hover {
    border-color: #a0aec0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

/* Modulspezifische Farben */
.module-card.employees .module-header {
    background: linear-gradient(135deg, #ebf8ff 0%, #f7fafc 100%);
    border-bottom-color: #bee3f8;
}

.module-card.materials .module-header {
    background: linear-gradient(135deg, #f0fff4 0%, #f7fafc 100%);
    border-bottom-color: #c6f6d5;
}

.module-card.orders .module-header {
    background: linear-gradient(135deg, #fef5e7 0%, #f7fafc 100%);
    border-bottom-color: #fbd38d;
}

.module-header, .data-card-header {
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
}

.module-header h3, .data-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.module-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.7;
}

.module-body, .data-card-body {
    padding: 24px;
}

/* ======================================================
   FORMS
   ====================================================== */
.form {
    display: flex;
    flex-flow: column;
    width: 100%;
}

.form-label {
    display: block;
    padding: 20px 0 10px 0;
    font-weight: 500;
    font-size: 14px;
    color: #4a5568;
}

.form-group {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.form-group .form-icon-left, 
.form-group .form-icon-right {
    fill: #c1c6cb;
    width: 40px;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    pointer-events: none;
}

.form-group .form-icon-left {
    left: 0;
}

.form-group .form-icon-left + .form-input {
    padding-left: 40px;
}

.form-group .form-icon-right {
    right: 0;
}

.form-group .form-icon-right + .form-input {
    padding-right: 40px;
}

.form-group:focus-within .form-icon-left {
    fill: #98a0a8;
}

.form-input {
    width: 100%;
    height: 43px;
    border: 1px solid #dee2e6;
    padding: 0 15px;
    border-radius: 4px;
    outline: 0;
    color: #000;
    font-size: 14px;
}

.form-input::placeholder {
    color: #98a0a8;
}

.form-input:focus {
    box-shadow: 0 0 0 3px #c7def7;
    border: 1px solid #75b3f1;
}

.form-link {
    color: #2a77eb;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.form-link:hover {
    color: #135ac5;
}

#remember_me {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    user-select: none;
}

#remember_me input {
    margin: 0 10px 0 0;
    transform: scale(1.1);
    opacity: 0.5;
}

#remember_me input:checked {
    opacity: 1;
}

p.register-link {
    margin: 0;
    padding: 20px 0 0 0;
    font-size: 14px;
    color: #6b7179;
}

div.msg {
    font-size: 14px;
    font-weight: 500;
}

div.msg.success {
    padding: 0 0 20px 0;
    color: #0da74d;
}

div.msg.success .form-link {
    color: #0b6430;
}

div.msg.success .form-link:hover {
    color: #06361a;
}

div.msg.error {
    padding: 0 0 20px 0;
    color: #c21e13;
}

div.msg.error .form-link {
    color: #74160b;
}

div.msg.error .form-link:hover {
    color: #450d07;
}

.captcha {
    display: flex;
    padding-bottom: 20px;
}

.captcha img {
    min-width: 150px;
}

.captcha input {
    height: 50px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Social Login Buttons */
.fb-btn, .gl-btn, .dc-btn, .ms-btn {
    display: flex;
    text-decoration: none;
    position: relative;
    border-radius: 4px;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    width: 100%;
    margin: 15px 0 0 0;
    padding: 15px;
    transition: background-color 0.2s;
}

.fb-btn svg, .gl-btn svg, .dc-btn svg, .ms-btn svg {
    position: absolute;
    left: 15px;
    fill: #fff;
}

.fb-btn:hover, .gl-btn:hover, .dc-btn:hover, .ms-btn:hover {
    color: #fff;
    transition: background-color 0.2s;
}

.fb-btn {
    background-color: #507CBF;
}

.fb-btn:hover {
    background-color: #426fb4;
}

.gl-btn {
    background-color: #d6523e;
}

.gl-btn:hover {
    background-color: #cf412c;
}

.dc-btn {
    background-color: #4A67CF;
}

.dc-btn:hover {
    background-color: #3656ca;
}

.ms-btn {
    background-color: #2F2F2F;
}

.ms-btn:hover {
    background-color: #222222;
}

.form.form-small {
    max-width: 300px;
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    border: 0;
    background: #26313d;
    color: #ffffff;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    height: 38px;
    box-shadow: 0px 0px 6px 1px rgba(45, 54, 68, 0.1);
    transition: all 0.2s ease;
    margin: 2px;
}

.btn:hover {
    background: #202934;
    transform: translateY(-1px);
}

.btn.blue {
    background: #4299e1;
    border-color: #4299e1;
}

.btn.blue:hover {
    background: #3182ce;
    border-color: #3182ce;
}

.btn.green {
    background: #48bb78;
    border-color: #48bb78;
}

.btn.green:hover {
    background: #38a169;
    border-color: #38a169;
}

.btn.red {
    background: #e53e3e;
    border-color: #e53e3e;
}

.btn.red:hover {
    background: #c53030;
    border-color: #c53030;
}

.btn.alt {
    color: #718096;
    border: 1px solid #718096;
    box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.03);
    background: #f1f3f4;
}

.btn.alt:hover {
    background: #4a5568;
    border-color: #4a5568;
    color: #ffffff;
}

.btn.disabled {
    background: #b1b3b4;
    cursor: not-allowed;
}

.btn.disabled:hover {
    background: #a9abad;
    transform: none;
}

.btn.small {
    padding: 8px 12px;
    font-size: 12px;
    height: 32px;
}

/* Module-specific Button Styles */
.module-body .btn {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #4a5568;
}

.module-body .btn:last-child {
    margin-bottom: 0;
}

.module-body .btn:hover {
    background: #e6f3ff;
    border-color: #90cdf4;
    color: #2b6cb0;
    transform: translateX(2px);
}

.module-card.employees .module-body .btn:hover {
    background: #e6f3ff;
    border-color: #90cdf4;
    color: #2b6cb0;
}

.module-card.materials .module-body .btn:hover {
    background: #f0fff4;
    border-color: #9ae6b4;
    color: #276749;
}

.module-card.orders .module-body .btn:hover {
    background: #fef5e7;
    border-color: #f6ad55;
    color: #c05621;
}

/* Button Loader */
.btn .loader,
.btn .loader::after {
    width: 15px;
    height: 15px;
}

.btn .loader {
    margin: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    border-left: 2px solid rgba(255, 255, 255, 0.9);
}

/* ======================================================
   LOGIN & REGISTER
   ====================================================== */
.login, .register {
    display: flex;
    flex-flow: column;
    width: 450px;
    max-width: 95%;
    background-color: #ffffff;
    box-shadow: 0px 0px 7px 1px rgba(45, 54, 68, 0.05);
    border-radius: 5px;
    margin: 100px auto;
    padding: 35px;
}

.login .icon, .register .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 5px auto 0 auto;
    border-radius: 50%;
    background-color: #e2e7ee;
}

.login .icon svg, .register .icon svg {
    fill: #fff;
}

.login h1, .register h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    padding: 20px 0 10px 0;
    margin: 0;
}

.login .btn[type=submit], .register .btn[type=submit] {
    height: 42px;
}

/* ======================================================
   BESCHREIBUNGSBOXEN
   ====================================================== */
.module-description {
    margin-top: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 4px;
    border-left: 3px solid #a0aec0;
}

.module-card.employees .module-description {
    background: #ebf8ff;
    border-left-color: #4299e1;
}

.module-card.materials .module-description {
    background: #f0fff4;
    border-left-color: #48bb78;
}

.module-card.orders .module-description {
    background: #fef5e7;
    border-left-color: #ed8936;
}

.module-description small {
    color: #718096;
    font-size: 13px;
    line-height: 1.4;
}

/* ======================================================
   LAYOUTS
   ====================================================== */
.layout-two-column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

/* ======================================================
   TABELLEN
   ====================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
}

th, td {
    padding: 12px 24px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f7fafc;
    font-weight: 600;
    color: #4a5568;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: #4a5568;
    vertical-align: middle;
}

tr:hover {
    background-color: #f7fafc;
}

tr:nth-child(even) {
    background-color: #fafbfc;
}

td.diff {
    background: #ffe;
    font-size: 10px;
}

td.diff b,
td.diff span {
    font-size: 10px;
}

td.diff pre {
    font-size: 10px;
}

/* ======================================================
   LISTEN & USER ANZEIGE
   ====================================================== */
.user-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.user-list li {
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.user-list li:last-child {
    border-bottom: none;
}

.user-list li:hover {
    background-color: #f7fafc;
}

.user-name {
    font-weight: 500;
    color: #2d3748;
    display: flex;
    align-items: center;
}

.last-activity {
    color: #718096;
    font-size: 12px;
    background: #edf2f7;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* ======================================================
   STATUS & BADGES
   ====================================================== */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
}

.status-active {
    background: #48bb78;
    box-shadow: 0 0 0 2px rgba(72, 187, 120, 0.3);
}

.status-idle {
    background: #ed8936;
    box-shadow: 0 0 0 2px rgba(237, 137, 54, 0.3);
}

.status-online {
    color: #38a169;
    font-weight: 500;
}

.status-badge {
    background: #edf2f7;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.primary {
    background: #bee3f8;
    color: #2c5282;
}

/* Status für Aufträge/Abrechnungen */
.status-offen { 
    background: #fef5e7; 
    color: #c05621; 
    padding: 5px 8px; 
    border-radius: 12px; 
    font-size: 11px;
    font-weight: 600;
}

.status-abgerechnet { 
    background: #e6f3ff; 
    color: #2c5282; 
    padding: 5px 8px; 
    border-radius: 12px; 
    font-size: 11px;
    font-weight: 600;
}

.status-geschlossen { 
    background: #f0fff4; 
    color: #276749; 
    padding: 5px 8px; 
    border-radius: 12px; 
    font-size: 11px;
    font-weight: 600;
}

.status-entwurf { 
    background: #fed7d7; 
    color: #c53030; 
    padding: 5px 8px; 
    border-radius: 12px; 
    font-size: 11px;
    font-weight: 600;
}

.status-erstellt { 
    background: #e6f3ff; 
    color: #2c5282; 
    padding: 5px 8px; 
    border-radius: 12px; 
    font-size: 11px;
    font-weight: 600;
}

.status-versendet { 
    background: #f0fff4; 
    color: #276749; 
    padding: 5px 8px; 
    border-radius: 12px; 
    font-size: 11px;
    font-weight: 600;
}

.status-bezahlt { 
    background: #c6f6d5; 
    color: #22543d; 
    padding: 5px 8px; 
    border-radius: 12px; 
    font-size: 11px;
    font-weight: 600;
}

/* ======================================================
   PROFILE & DETAILS
   ====================================================== */
.profile-detail {
    display: flex;
    flex-flow: column;
    font-size: 18px;
    padding: 5px 0;
}

.profile-detail strong {
    display: block;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

/* ======================================================
   UTILITY KLASSEN
   ====================================================== */
.empty-state {
    text-align: center;
    color: #718096;
    font-style: italic;
    padding: 32px 24px;
}

.status-legend {
    margin-top: 16px;
    padding: 16px 24px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #718096;
}

.status-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.status-legend-item:last-child {
    margin-bottom: 0;
}

.no-print {
    /* Wird für Print-Styles verwendet */
}

.druckbereich h3 {
    margin-bottom: 18px;
}

.druckbereich p {
    margin-bottom: 18px;
}

.druckbereich table {
    margin-bottom: 28px;
}

/* ======================================================
   SPACING UTILITIES
   ====================================================== */
.pad-1 { padding: 5px; }
.mar-1 { margin: 5px; }
.pad-2 { padding: 10px; }
.mar-2 { margin: 10px; }
.pad-3 { padding: 15px; }
.mar-3 { margin: 15px; }
.pad-4 { padding: 20px; }
.mar-4 { margin: 20px; }
.pad-5 { padding: 25px; }
.mar-5 { margin: 25px; }

.pad-bot-1 { padding-bottom: 5px; }
.pad-top-1 { padding-top: 5px; }
.pad-left-1 { padding-left: 5px; }
.pad-right-1 { padding-right: 5px; }
.pad-x-1 { padding-left: 5px; padding-right: 5px; }
.pad-y-1 { padding-top: 5px; padding-bottom: 5px; }

.mar-bot-1 { margin-bottom: 5px; }
.mar-top-1 { margin-top: 5px; }
.mar-left-1 { margin-left: 5px; }
.mar-right-1 { margin-right: 5px; }
.mar-x-1 { margin-left: 5px; margin-right: 5px; }
.mar-y-1 { margin-top: 5px; margin-bottom: 5px; }

.pad-bot-2 { padding-bottom: 10px; }
.pad-top-2 { padding-top: 10px; }
.pad-left-2 { padding-left: 10px; }
.pad-right-2 { padding-right: 10px; }
.pad-x-2 { padding-left: 10px; padding-right: 10px; }
.pad-y-2 { padding-top: 10px; padding-bottom: 10px; }

.mar-bot-2 { margin-bottom: 10px; }
.mar-top-2 { margin-top: 10px; }
.mar-left-2 { margin-left: 10px; }
.mar-right-2 { margin-right: 10px; }
.mar-x-2 { margin-left: 10px; margin-right: 10px; }
.mar-y-2 { margin-top: 10px; margin-bottom: 10px; }

.pad-bot-3 { padding-bottom: 15px; }
.pad-top-3 { padding-top: 15px; }
.pad-left-3 { padding-left: 15px; }
.pad-right-3 { padding-right: 15px; }
.pad-x-3 { padding-left: 15px; padding-right: 15px; }
.pad-y-3 { padding-top: 15px; padding-bottom: 15px; }

.mar-bot-3 { margin-bottom: 15px; }
.mar-top-3 { margin-top: 15px; }
.mar-left-3 { margin-left: 15px; }
.mar-right-3 { margin-right: 15px; }
.mar-x-3 { margin-left: 15px; margin-right: 15px; }
.mar-y-3 { margin-top: 15px; margin-bottom: 15px; }

.pad-bot-4 { padding-bottom: 20px; }
.pad-top-4 { padding-top: 20px; }
.pad-left-4 { padding-left: 20px; }
.pad-right-4 { padding-right: 20px; }
.pad-x-4 { padding-left: 20px; padding-right: 20px; }
.pad-y-4 { padding-top: 20px; padding-bottom: 20px; }

.mar-bot-4 { margin-bottom: 20px; }
.mar-top-4 { margin-top: 20px; }
.mar-left-4 { margin-left: 20px; }
.mar-right-4 { margin-right: 20px; }
.mar-x-4 { margin-left: 20px; margin-right: 20px; }
.mar-y-4 { margin-top: 20px; margin-bottom: 20px; }

.pad-bot-5 { padding-bottom: 25px; }
.pad-top-5 { padding-top: 25px; }
.pad-left-5 { padding-left: 25px; }
.pad-right-5 { padding-right: 25px; }
.pad-x-5 { padding-left: 25px; padding-right: 25px; }
.pad-y-5 { padding-top: 25px; padding-bottom: 25px; }

.mar-bot-5 { margin-bottom: 25px; }
.mar-top-5 { margin-top: 25px; }
.mar-left-5 { margin-left: 25px; }
.mar-right-5 { margin-right: 25px; }
.mar-x-5 { margin-left: 25px; margin-right: 25px; }
.mar-y-5 { margin-top: 25px; margin-bottom: 25px; }

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
    margin-top: 60px;
    text-align: center;
    font-size: 12px;
    color: #a0aec0;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
}

/* ======================================================
   RESPONSIVE DESIGN
   ====================================================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .layout-two-column {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media screen and (max-width: 1000px) {
    .login, .register {
        margin: 20px auto;
        padding: 25px;
    }
    
    .header .wrapper {
        width: 100%;
    }
    
    .header .wrapper h1 {
        font-size: 18px;
        padding: 15px;
    }
    
    .header .wrapper label {
        display: inline-flex;
    }
    
    .header .wrapper .menu {
        display: none;
        position: absolute;
        top: 100%;
        width: 100%;
        flex-flow: column;
        background-color: #282f3b;
        justify-items: flex-start;
        align-items: flex-start;
        padding: 10px;
    }
    
    .header .wrapper input[type=checkbox]:checked ~ .menu {
        display: flex;
    }
    
    .header .wrapper input[type=checkbox]:checked ~ .menu a {
        justify-content: flex-start;
        width: 100%;
        padding: 25px;
    }
    
    .content {
        width: 100%;
        padding: 5px 10px;
    }
}

@media (max-width: 768px) {
    .header .wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }
    
    .header .menu {
        margin-top: 16px;
        flex-wrap: wrap;
    }
    
    .content {
        padding: 20px 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .page-header {
        padding: 24px 20px;
        margin-bottom: 24px;
    }
    
    .page-header h2 {
        font-size: 24px;
    }
    
    .module-header,
    .data-card-header {
        padding: 16px 20px;
    }
    
    .module-body {
        padding: 20px;
    }
    
    th, td {
        padding: 8px 16px;
    }
}

/* ======================================================
   PRINT STYLES
   ====================================================== */
@media print {
    .no-print, .btn, .header, nav, .menu {
        display: none !important;
    }
    
    body {
        font-size: 12px;
        background: white;
    }
    
    .module-card, .data-card, .page-header {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    table {
        page-break-inside: avoid;
    }
}