/* ===========================================
   RESET AND BASE STYLES
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f8f9fa 0%, #eeeeee 100%);
    font-size: 14px;

    /*
     * Always render form controls, tables and page elements using the light
     * colour scheme. Without setting the `color-scheme` property, most
     * browsers automatically switch select elements and other native inputs
     * into dark mode when the user has a dark OS theme. This leads to
     * uncomfortable black backgrounds and unreadable text inside our forms
     * and tables. By explicitly opting into a light colour scheme here
     * we ensure that the browser uses light styling for all builtâ€‘in
     * controls regardless of the userâ€™s system preference.
     */
    color-scheme: light;
}

/* Ustaw globalny kolor tekstu dla etykiet formularzy na jednolity ciemny odcieÅ„.
   DziÄ™ki temu wszystkie label zarÃ³wno w formularzach, jak i filtrach
   dziedziczÄ… ten kolor, co zwiÄ™ksza spÃ³jnoÅ›Ä‡ interfejsu. */
label {
    color: #1a1a1a;
}

/* ===========================================
   LAYOUT STRUCTURE
   =========================================== */

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.user-header {
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 60px;
   /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    position: relative;
    z-index: 1000;
}

.nav-toggle-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.brand i {
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Styl zdjęcia avatara użytkownika */
.user-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.last-login {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===========================================
   SIDEBAR NAVIGATION
   =========================================== */

.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 250px;
    height: calc(100vh - 60px);
    background: #f8f9fa;
    transition: transform 0.3s ease, width 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #5a6c7d;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background-color: #e0e0e0;
    color: #1a1a1a;
    border-left-color: #22c55e;
	border-radius: 0px 12px 12px 0px;
}

.menu-item.active {
    background-color: #e5fdee;
    color: #22c55e;
    border-left-color: #22c55e;
    font-weight: 300;
	border-radius: 0px 12px 12px 0px;
}

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

/* Sidebar collapsed state */
.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .menu-item span {
    display: none;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 0.75rem;
}
.recent-info {
    padding-left: 25px;
}

/* ===========================================
   MAIN CONTENT AREA
   =========================================== */

.main-content {
    margin-left: 250px;
    padding: 1rem;
    transition: margin-left 0.3s ease;
    flex: 1;
    overflow-y: auto;
}

.sidebar.collapsed + .main-content {
    margin-left: 60px;
}

/* ===========================================
   BREADCRUMB
   =========================================== */

.breadcrumb {
    background: white;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    color: #666;
    margin-left: 0.5rem;
}

.breadcrumb-list a {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

/* ===========================================
   VIEWS AND CONTENT
   =========================================== */

.view {
    display: block;
}

.view.hidden {
    display: none;
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.view-header h1 {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* ===========================================
   CARDS AND COMPONENTS
   =========================================== */

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background-color: #fff;	
}

.card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.card-body {
    /* padding: 1.5rem;*/
	background-color: #fff;
}

/* ===========================================
   DASHBOARD SPECIFIC
   =========================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #22c55e;
   /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.card-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.charts-grid .card-body {
    height: 300px;
    position: relative;
	padding:0 1.5rem;
}

/* Recent activities */
.recent-list {
    max-height: 300px;
    overflow-y: auto;
}

.recent-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Reset equal widths for info and date columns in recent assignments */
/* The recent-info section should take up available space, while the date column
   should only be as wide as its content. We override the previous flex rule
   here to ensure proper alignment. */
.recent-item > div {
    flex: initial;
}

/* Make the left section of each recent assignment a flex container so we can
   control alignment of the individual pieces (arrow, tag, name, status and employee) */
.recent-item .recent-info {
    flex: 1;
    display: flex;
    align-items: center;
	padding-left:1rem;
}
.recent-item .recent-info strong{
    margin-right:1rem;
}

/* Style for the status text (e.g. "Przypisano" or "ZwrÃ³cono"). Place a small
   margin before it to separate it from the asset name. */
.recent-item .recent-status {
    margin-left: 6px;
    color: #666;
    font-size: 0.9rem;
}

/* Style for the employee name. We push it to the far right of the info section
   using margin-left: auto so that it always aligns to the right, regardless
   of the length of preceding text. */
.recent-item .recent-emp {
    margin-left: auto;
    color: #666;
    font-size: 0.9rem;
    text-align: right;
}

/* Ensure the date in the recent assignment list is always displayed at the
   far right of the row and does not stretch to fill the available space. */
.recent-item .recent-date {
    white-space: nowrap;
    text-align: right;
    margin-left: 12px;
}

.recent-tag {
    margin: 0 6px;
    font-weight: 500;
    color: #333;
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item.urgent {
    background-color: #fff3cd;
    padding: 0.75rem;
    border-radius: 4px;
    border-bottom: 1px solid #ffeeba;
}

.recent-info strong {
    color: #1a1a1a;
}

.recent-info span {
    color: #666;
    font-size: 0.9rem;
}

.recent-date {
    color: #666;
    font-size: 0.85rem;
	margin-right: 10px;
}

.days-left {
    background-color: #f59e0b;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 300;
}

/* ===========================================
   FILTERS SECTION
   =========================================== */

.filters-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9rem;
}

/* ===========================================
   TABLES
   =========================================== */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: #e5fdee;
}

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

.text-muted {
    color: #6c757d !important;
}

/* ===========================================
   FORMS
   =========================================== */

.form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: white;
}

/*
 * Select elements use the browserâ€™s native styling by default, which can
 * become dark when the system theme is dark. To keep our selects
 * consistent with the rest of the application we set explicit colours
 * for the background and text. We also remove the default arrow so that
 * the custom caret from modal-styles.css remains visible.
 */
select.form-control {
    background-color: white;
    color: #333;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/*
 * Force light backgrounds even when the user prefers a dark colour
 * scheme. This rule overrides inherited colours from dark mode and
 * ensures that all critical elements remain readable and cohesive.
 */
@media (prefers-color-scheme: dark) {
    body,
    .main-content,
    .form-control,
    select.form-control,
    .card,
    .modal-content {
        background-color: #f8f9fa !important;
        color: #333 !important;
    }

    .table th {
        background-color: #f8f9fa !important;
        color: #1a1a1a !important;
    }
}

.form-control:focus {
    outline: 0;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.25);
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group-full {
    grid-column: 1 / -1;
}

/* ===========================================
   BUTTONS
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn--primary {
    color: #e5fdee;
  }

.btn--primary:hover:not(:disabled) {
    background-color: #22c55e;
   	color:#ffffff;
}

.btn--secondary {
    color: white;
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn--secondary:hover:not(:disabled) {
    background-color: #545b62;
    border-color: #545b62;
}

.btn--outline {
    color: #007bff;
    background-color: transparent;
    border-color: #007bff;
}

.btn--outline:hover:not(:disabled) {
    color: #22c55e;
    background-color: #e0e0e0;
}

.btn--info {
    color: #f59e09;
    background-color: transparent;
    }

.btn--info:hover:not(:disabled) {
    background-color: #e0e0e0;
  }

.btn--success {
    color: white;
    background-color: #28a745;
    border-color: #28a745;
}

.btn--success:hover:not(:disabled) {
    background-color: #1e7e34;
    border-color: #1e7e34;
}

.btn--warning {
    color: #212529;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn--warning:hover:not(:disabled) {
    background-color: #e0a800;
    border-color: #e0a800;
}

.btn--danger {
    color:  #dc143c;
    background-color: transparent;
   }

.btn--danger:hover:not(:disabled) {
    background-color:#e0e0e0 ;
	color: #dc143c;
}
aaa
.btn--sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.btn--lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

/* ===========================================
   BADGES
   =========================================== */

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    color: white;
    background-color: #66b0ff;
}

.badge-secondary {
    color: white;
    background-color: #6c757d;
}

.badge-success {
    color: white;
    background-color: #28a745;
}

.badge-danger {
    color: white;
    background-color: #dc3545;
}

.badge-warning {
    color: #212529;
    background-color: #ffc107;
}

.badge-info {
    color: white;
    background-color: #17a2b8;
}

.badge-light {
    color: #212529;
    background-color: #f8f9fa;
}

.badge-dark {
    color: white;
    background-color: #343a40;
}

/* ===========================================
   MODALS
   =========================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

.modal-large {
    width: 900px;
    max-width: 95vw;
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #e9ecef;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    background-color: #f8f9fa;
}

/* ===========================================
   ASSET VIEW MODAL CONTENT
   =========================================== */

.asset-view-content {
    color: #333;
}

.asset-view-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.asset-view-col-full {
    grid-column: 1 / -1;
}

.asset-view-col h4 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid #22c55e;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.asset-view-col h4 i {
    color: #22c55e;
}

.asset-detail-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.asset-detail-item:last-child {
    border-bottom: none;
}

.asset-detail-item strong {
    display: inline-block;
    width: 140px;
    color: #1a1a1a;
    font-weight: 600;
}

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1100;
    min-width: 300px;
    animation: toastSlideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-success {
    background-color: #28a745;
}

.toast-error {
    background-color: #dc3545;
}

.toast-warning {
    background-color: #ffc107;
    color: #212529;
}

.toast-info {
    background-color: #17a2b8;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: auto;
    padding: 0;
    opacity: 0.7;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===========================================
   LOADING ANIMATIONS
   =========================================== */

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===========================================
   FORM VALIDATION
   =========================================== */

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

.form-control.success {
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.25);
}

/* ===========================================
   MOBILE RESPONSIVE STYLES
   =========================================== */

@media (max-width: 768px) {
    /* Header adjustments */
    .user-header {
        padding: 0 0.5rem;
        flex-wrap: wrap;
    }

    .user-info {
        gap: 0.5rem;
    }

    .user-details {
        display: none;
    }

    .last-login {
        display: none;
    }

    /* Sidebar mobile behavior */
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 0.5rem;
    }

    /* Dashboard grid adjustments */
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .dashboard-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }

    /* Charts grid mobile */
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .charts-grid .card-body {
        height: 250px;
    }

    /* View header mobile */
    .view-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .view-header h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .view-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Filters mobile */
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .filters-section {
        padding: 1rem;
    }

    /* Table responsive improvements */
    .table-responsive {
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
    }

    .table {
        min-width: 700px;
        font-size: 0.8rem;
    }

    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }

    .btn-group {
        flex-direction: column;
        gap: 0.125rem;
    }

    .btn-group .btn--sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
        min-width: 60px;
    }

    /* Modal adjustments */
    .modal-content {
        width: 95vw;
        max-height: 95vh;
        margin: 0 2.5vw;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }

    .asset-view-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .asset-detail-item strong {
        width: 120px;
        font-size: 0.9rem;
    }

    /* Card adjustments */
    .card-body {
        padding: 1rem;
    }

    .card-header {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    /* Ultra-mobile adjustments */
    .user-header {
        height: 50px;
        padding: 0 0.25rem;
    }

    .brand span {
        display: none;
    }

    .sidebar {
        width: 100vw;
        top: 50px;
        height: calc(100vh - 50px);
    }

    .main-content {
        padding: 0.25rem;
    }

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

    .dashboard-card {
        padding: 0.75rem;
    }

    .card-content h3 {
        font-size: 1.25rem;
    }

    .view-header h1 {
        font-size: 1.25rem;
    }

    /* Modal ultra-mobile */
    .modal-body {
        max-height: 70vh;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .asset-detail-item {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .asset-detail-item strong {
        width: auto;
        font-size: 0.85rem;
        color: #666;
    }

    /* Ultra-compact table */
    .table {
        font-size: 0.75rem;
    }

    .table th:nth-child(n+6),
    .table td:nth-child(n+6) {
      /*  display: none;*/
    }

    .card-header h3 {
        font-size: 1rem;
    }

    /* Toast mobile */
    .toast {
        left: 10px;
        right: 10px;
        top: 60px;
        width: auto;
        min-width: auto;
    }
}

/* ===========================================
   UTILITIES
   =========================================== */

.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* ===========================================
   PRINT STYLES
   =========================================== */

@media print {
    .sidebar,
    .user-header,
    .breadcrumb,
    .view-actions,
    .btn-group,
    .filters-section {
        display: none !important;
    }

    .main-content {
        /*
         * When printing, ensure the main content area grows to fit
         * whatever length the protocol or report requires. Previously
         * the print stylesheet forced overflow to be hidden, which
         * resulted in long reports being cut off after a single A4
         * page. By allowing the content to overflow naturally and
         * removing any hard clipping, browsers will paginate the
         * document across multiple pages as needed.
         */
        margin-left: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        /*
         * Allow overflowing content to be visible when printing. Cards
         * normally hide overflow for aesthetic reasons, but this
         * behaviour clips long protocols or tables when they span
         * multiple pages. Overriding the overflow here ensures
         * content can flow naturally onto subsequent pages during
         * printing.
         */
        overflow: visible !important;
    }

    .table {
        font-size: 12px !important;
    }

    .badge {
        border: 1px solid #ccc !important;
        background: white !important;
        color: black !important;
    }
}
i.fas.fa-arrow-left.text-danger {
		color: #22c55e;
}
i.fas.fa-arrow-right.text-success{
		color: #dc143c;
}

/* ===========================================
   DARK MODE SUPPORT (Optional)
   =========================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment and customize for dark mode support */
    /*
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }

    .card {
        background-color: #2d2d2d;
        border-color: #404040;
    }

    .form-control {
        background-color: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }

    .table th {
        background-color: #404040;
    }

    .sidebar {
        background-color: #2d2d2d;
    }
    */
}

/* ULTIMATE VIEW */
body{
	min-width:280px;
	margin:0!important;
}
#employee-details-info{
	padding: 1.5rem;
    display: inline-block;
    width: 100%;
    float: left;
}
#employee-details-info p{
	display: inline-block;90
    float: left;
}
#employees-table-body .btn--primary{
	background:transparent;
	color:var(--color-btn-primary-text);
}
#employees-table-body .btn--primary:hover{
	background:#e0e0e0;
}
#employee-details-info p{
	display:inline-block;
	float:left;
	width:50%;
}
#employee-details-info p:nth-child(odd){
	clear:left;
}
#assets-table .btn--outline:hover{
	background:#e0e0e0;
	border-color:#e0e0e0;
	color:#22c55e;
}

@media(max-width:1200px){
	#employee-details-info p{
		width:50%;
	}
}
@media(max-width: 768px){
	#employee-details-info p{
		width:100%;
	}
	#employee-details-info p strong{
		min-width:130px;
		display:inline-block;
	}
}
#backup-view .card-body{
	padding: 1.5rem;
}
button#logoutBtn.btn.btn--outline.btn--sm{
    color: #22c55e;
}
button#logoutBtn.btn.btn--outline.btn--sm:hover{
	background-color:#5a6c7d;
	border-color: transparent;
}
button.btn.btn-sm.btn--primary{
	background-color:transparent;
	border-color: transparent;
	color: #22c55e;
}
button.btn.btn-sm.btn--primary:hover{
	background-color:#e0e0e0;
	border-color: transparent;
}
.recent-info span.tag2 {
    float: right;
}
.recent-item .recent-date {
    white-space: nowrap;
    text-align: right;
    margin-left: 12px;
}
#valueYearsChartdiv{
	height:calc(100% - 66px - 1rem)!important;
}
#valueYearsTable{
	display:none;
}
#employee-details-return{
	margin-top: 1.5rem;
}
#employee-detail-assign{
	padding: 1.5rem;
}
#recent-assignments .recent-item{
	padding-left:1.5rem;
	padding-right:1.5rem;
}
#employee-details-return-btn{
	margin:1.5rem;
}
#recent-assignments .recent-item .recent-info{
	padding-left:0;
}
#recent-assignments .recent-item .recent-date{
	margin-right:0;
}
@media(max-width: 768px){
	#recent-assignments .recent-item{
		padding:0;
	}
}
.tdec-logo{
	max-height:28px;
	vertical-align:text-top;
}
.raport-footer-logo{
	max-height:24px;
	vertical-align:middle;
}