/* ==========================================================================
   CIBEROPARTNER DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

:root {
    --primary-color: #104F55;
    --primary-dark: #0b2f33;
    --primary-light: #32746D;
    --accent-color: #2A9D8F;
    --accent-light: #9EC1A3;
    --bg-app: #F4F7F6;
    --bg-card: #FFFFFF;
    --text-dark: #2E3532;
    --text-muted: #6C7A77;
    --border-color: #D8E2DC;
    --hover-bg: #EAF0EE;
    
    /* Semantic Colors */
    --color-success: #2A9D8F;
    --color-warning: #E07A5F;
    --color-danger: #E63946;
    --color-info: #4F46E5;
    --color-grey: #6B7280;
    
    /* Soft Backgrounds */
    --bg-soft-blue: #E0F2FE;
    --bg-soft-orange: #FFEDD5;
    --bg-soft-green: #D1FAE5;
    --bg-soft-purple: #F3E8FF;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Border Radius */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(16, 79, 85, 0.06), 0 4px 6px -2px rgba(16, 79, 85, 0.03);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-app);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

/* App Layout Structure */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background-color: var(--primary-dark);
    color: var(--bg-app);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-normal);
    z-index: 100;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-accent {
    color: var(--accent-light);
}

.user-profile-badge {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 14px;
    border-radius: var(--radius-md);
}

.user-profile-badge i {
    font-size: 20px;
    color: var(--accent-light);
}

.profile-name {
    font-size: 13px;
    font-weight: 600;
}

.profile-role {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-menu {
    flex-grow: 1;
    padding: 20px 0;
}

.sidebar-menu ul {
    list-style: none;
}

.menu-item {
    margin: 4px 12px;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
    opacity: 0.75;
}

.menu-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-item:hover a,
.menu-item.active a {
    opacity: 1;
    background-color: var(--primary-light);
    color: var(--bg-card);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.sidebar-footer .version {
    font-size: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 4px;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-app);
    min-width: 0; /* Prevents flex children from overflowing */
}

/* Topbar Header */
.topbar {
    height: 70px;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: var(--shadow-sm);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toggle-sidebar-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--primary-color);
    cursor: pointer;
    display: none; /* Visible on responsive */
}

.topbar-left h2 {
    font-size: 18px;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Screen Wrapper */
.screen-wrapper {
    padding: 24px 30px;
    flex-grow: 1;
    overflow-y: auto;
}

/* Screen visibility controller */
.app-screen {
    display: none;
}

.app-screen.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card Styling */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(16, 79, 85, 0.02);
}

.card-header h3 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: var(--primary-light);
}

.card-body {
    padding: 24px;
}

/* Form Grid & Layouts */
.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grid-5-col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

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

.col-span-2 {
    grid-column: span 2;
}

.col-span-4 {
    grid-column: span 4;
}

.flex-align-end {
    display: flex;
    align-items: flex-end;
}

.w-full {
    width: 100%;
}

.mt-6 {
    margin-top: 24px;
}

.mt-8 {
    margin-top: 32px;
}

.mb-4 {
    margin-bottom: 16px;
}

/* Form Controls */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(50, 116, 109, 0.15);
}

textarea.form-control {
    height: auto;
    resize: vertical;
}

.rows-2 {
    height: 60px !important;
}

.input-highlight {
    font-weight: 600;
    font-size: 14px;
    border-color: var(--primary-light);
    background-color: rgba(50, 116, 109, 0.02);
}

/* Tab System Styling */
.tab-container {
    margin-top: 24px;
}

.tab-headers {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    gap: 4px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    top: 2px;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(16, 79, 85, 0.04);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-contents {
    background-color: transparent;
    padding-top: 16px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn var(--transition-normal);
}

/* Toolbar & Buttons */
.configurator-toolbar {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.price-display-box {
    display: flex;
    align-items: baseline;
    gap: 4px;
    background-color: var(--primary-dark);
    color: var(--bg-card);
    padding: 10px 20px;
    border-radius: var(--radius-md);
}

.price-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.8;
    margin-right: 10px;
}

.price-symbol {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-light);
}

.price-value {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: var(--accent-light);
}

.action-buttons-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Button Classes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn:active {
    transform: scale(0.98);
}

.btn-blue {
    background-color: var(--primary-color);
    color: var(--bg-card);
}
.btn-blue:hover {
    background-color: var(--primary-dark);
}

.btn-teal {
    background-color: var(--primary-light);
    color: var(--bg-card);
}
.btn-teal:hover {
    background-color: #265953;
}

.btn-orange {
    background-color: var(--color-warning);
    color: var(--bg-card);
}
.btn-orange:hover {
    background-color: #cb694e;
}

.btn-red {
    background-color: var(--color-danger);
    color: var(--bg-card);
}
.btn-red:hover {
    background-color: #cf2b37;
}

.btn-green {
    background-color: var(--color-success);
    color: var(--bg-card);
}
.btn-green:hover {
    background-color: #1f776d;
}

.btn-indigo {
    background-color: var(--color-info);
    color: var(--bg-card);
}
.btn-indigo:hover {
    background-color: #3e38c9;
}

/* Grid Table Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.grid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.grid-table th {
    background-color: var(--primary-color);
    color: var(--bg-card);
    padding: 14px 16px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-dark);
}

.grid-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.grid-table tbody tr:nth-child(even) {
    background-color: var(--bg-app);
}

.grid-table tbody tr:hover {
    background-color: var(--hover-bg);
}

.tfoot-totals-row td {
    background-color: var(--bg-card);
    border-top: 2px solid var(--border-color);
    padding: 10px 16px;
}

.highlight-total td {
    background-color: var(--hover-bg);
    border-top: 2px solid var(--primary-color);
    font-size: 15px;
}

.table-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-italic {
    font-style: italic;
}

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

.text-green {
    color: var(--color-success);
}

.text-red {
    color: var(--color-danger);
}

.text-uppercase {
    text-transform: uppercase;
}

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

/* Action Icons */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    margin: 0 4px;
    transition: transform var(--transition-fast);
}

.btn-icon:hover {
    transform: scale(1.15);
}

.btn-icon.text-blue { color: var(--primary-light); }
.btn-icon.text-red { color: var(--color-danger); }
.btn-icon.text-orange { color: var(--color-warning); }
.btn-icon.text-indigo { color: var(--color-info); }

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
}

.badge-grey { background-color: #E5E7EB; color: #374151; }
.badge-blue { background-color: var(--bg-soft-blue); color: var(--primary-color); }
.badge-orange { background-color: var(--bg-soft-orange); color: #B45309; }
.badge-green { background-color: var(--bg-soft-green); color: #065F46; }
.badge-red { background-color: #FEE2E2; color: #B91C1C; }

/* Additional charges UI list */
.extras-badge-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.extras-badge-item {
    background-color: var(--bg-app);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.extras-badge-item .btn-remove-extra {
    background: none;
    border: none;
    color: var(--color-danger);
    cursor: pointer;
    font-weight: bold;
}

/* Summary general styling */
.summary-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

.summary-details h4,
.summary-calculations h4 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.summary-details p {
    font-size: 13px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
}

.price-row.divider {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 8px;
}

.price-row.total-highlight {
    border-top: 2px solid var(--primary-color);
    margin-top: 12px;
    padding: 12px 8px;
    background-color: var(--bg-soft-green);
    border-radius: var(--radius-sm);
}

.price-font {
    font-family: var(--font-heading);
    font-size: 14px;
}

.price-row.total-highlight .price-font {
    font-size: 18px;
}

/* MOCK STATUS BOARD (Kanban) */
.status-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.status-column {
    background-color: var(--bg-app);
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid var(--border-color);
    min-height: 400px;
}

.column-header {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--bg-card);
    margin-bottom: 12px;
}

.bg-grey { background-color: var(--color-grey); }
.bg-blue { background-color: var(--primary-light); }
.bg-orange { background-color: var(--color-warning); }
.bg-green { background-color: var(--color-success); }

.column-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--border-color);
}

.status-card:hover {
    box-shadow: var(--shadow-md);
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-card-header .date {
    font-size: 10px;
    color: var(--text-muted);
}

.status-card h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.status-card p {
    font-size: 11px;
    color: var(--text-muted);
}

.status-card-footer {
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-muted);
    border-top: 1px solid var(--bg-app);
    padding-top: 6px;
}

/* MOCK DASHBOARD WIDGETS */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.bg-soft-blue { background-color: var(--bg-soft-blue); }
.bg-soft-orange { background-color: var(--bg-soft-orange); }
.bg-soft-green { background-color: var(--bg-soft-green); }
.bg-soft-purple { background-color: var(--bg-soft-purple); }

.text-blue { color: var(--primary-light); }
.text-orange { color: var(--color-warning); }
.text-green { color: var(--color-success); }
.text-purple { color: var(--color-info); }

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2px 0;
}

.stat-trend {
    font-size: 11px;
    font-weight: 500;
}

.trend-up { color: var(--color-success); }
.trend-down { color: var(--color-danger); }

/* SVG Chart styling */
.mock-chart-container {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 10px 0;
}

.svg-chart {
    width: 100%;
    height: auto;
}

.chart-text {
    font-size: 10px;
    fill: var(--text-muted);
    font-family: var(--font-body);
}

/* Progress bars list */
.progress-bar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.progress-bg {
    height: 8px;
    background-color: var(--bg-app);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 4px;
}

/* SEARCH & MOCK REPORTE */
.search-form-row {
    display: flex;
    gap: 12px;
}

.flex-1 {
    flex-grow: 1;
}

.search-results-placeholder {
    padding: 40px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.font-4x {
    font-size: 48px;
}

.py-8 {
    padding-top: 32px;
    padding-bottom: 32px;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 13px;
    color: var(--text-muted);
    font-size: 13px;
}

.form-control-search {
    width: 100%;
    height: 38px;
    padding: 8px 12px 8px 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: var(--font-body);
    font-size: 12px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.critical-row td {
    background-color: rgba(230, 57, 70, 0.03) !important;
}

.warning-row td {
    background-color: rgba(224, 122, 95, 0.03) !important;
}

/* ==========================================================================
   MODAL & PRINT PAPER STYLING (OT - Orden de Trabajo)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 10px;
    z-index: 200;
}

.modal-overlay.active {
    display: flex;
}

.ot-paper {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
}

.ot-actions {
    background-color: var(--primary-dark);
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top-left-radius: var(--radius-sm);
    border-top-right-radius: var(--radius-sm);
}

/* OT Document layout */
.ot-sheet {
    padding: 40px;
    color: #000000;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.4;
}

.ot-header {
    display: flex;
    justify-content: space-between;
}

.ot-logo-area h2 {
    color: #000000;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.ot-logo-area p {
    font-size: 11px;
    color: #333333;
}

.ot-number-box {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.ot-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ot-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.ot-date-lbl {
    font-size: 11px;
    color: #333333;
}

.ot-divider {
    margin: 20px 0;
    border: none;
    border-top: 2px solid #000000;
}

.ot-client-details {
    margin-bottom: 24px;
}

.ot-client-details h4,
.ot-items-section h4 {
    font-size: 12px;
    text-transform: uppercase;
    border-bottom: 1px solid #CCCCCC;
    padding-bottom: 4px;
    margin-bottom: 10px;
    color: #000000;
}

.ot-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    font-size: 11px;
}

.ot-grid-2 p {
    margin-bottom: 4px;
}

.ot-items-section {
    margin-bottom: 40px;
}

.ot-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.ot-table th {
    background-color: #F3F4F6;
    color: #000000;
    font-weight: 700;
    border: 1px solid #CCCCCC;
    padding: 6px 8px;
    text-align: left;
}

.ot-table td {
    border: 1px solid #CCCCCC;
    padding: 6px 8px;
}

.ot-signatures {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    text-align: center;
    font-size: 10px;
}

.ot-signature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ot-sign-line {
    width: 120px;
    border-top: 1px solid #666666;
    margin-bottom: 6px;
}

.ot-workshop-notes {
    margin-top: 50px;
    border: 1px dashed #666666;
    padding: 10px;
    font-size: 9px;
    color: #333333;
}

/* ==========================================================================
   RESPONSIVE DESIGN AND MOBILE ADAPTATION
   ========================================================================== */

@media (max-width: 1024px) {
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-4 {
        grid-column: span 2;
    }
    .grid-5-col {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-2 {
        grid-column: span 2;
    }
    .status-board {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .summary-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .sidebar-menu {
        padding: 10px 0;
    }
    
    .sidebar-menu ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .menu-item {
        margin: 2px 4px;
    }
    
    .menu-item a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .sidebar-footer {
        display: none;
    }
    
    .topbar {
        padding: 0 15px;
    }
    
    .screen-wrapper {
        padding: 15px;
    }
    
    .status-board {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2-col {
        grid-template-columns: 1fr;
    }
    
    .search-form-row {
        flex-direction: column;
    }
    
    .search-form-row button {
        width: 100%;
    }
}

/* ==========================================================================
   PRINT MEDIA STYLING (Exclusive layout for OT)
   ========================================================================== */

@media print {
    body * {
        visibility: hidden;
    }
    
    #ot-print-modal,
    #ot-print-modal *,
    .ot-sheet,
    .ot-sheet * {
        visibility: visible;
    }
    
    #ot-print-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: auto;
        background: none;
        padding: 0;
        display: block;
    }
    
    .ot-paper {
        box-shadow: none;
        width: 100%;
        max-width: 100%;
        border: none;
    }
    
    .no-print {
        display: none !important;
    }
    
    .ot-sheet {
        padding: 0;
        margin: 0;
    }
}
