/* Dashboard Styling for ForcePro
 * Modern tech aesthetic inspired by Apple's minimalist design
 */

:root {
    --primary-color: #333333;
    --secondary-color: #666666;
    --accent-color: #0071e3;
    --light-gray: #f5f5f7;
    --medium-gray: #86868b;
    --dark-gray: #1d1d1f;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.25s;
}

.badge-flag {

    max-width: 25px;

}


.profile-image {
    width: 300px;
    background-size: cover;
    background-position: 60% 10%;
    height: 300px;
    border: 2px solid red;
    border-radius: 200px;
  }


 .location-map {
    width: 778px;
    height: 316px;
 }

/* Cards */
.dashboard-card {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: none;
    background-color: white;
}

.dashboard-header {
    background-color: var(--dark-gray);
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 18px 24px;
}

/* Header Styling - Apple Inspired */
.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0 !important;
    color: var(--dark-gray);
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-left: 12px;
    font-weight: 400;
}

.action-bar {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

/* Text Styling */
.summary-text {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.total-amount {
    font-size: 1.3rem;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: -0.01em;
}

/* Table Styling */
.dashboard-table {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.dashboard-table th {
    background-color: var(--light-gray);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 14px;
    vertical-align: middle;
    color: var(--secondary-color);
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e6e6e6;
}

.dashboard-table td {
    padding: 14px;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.dashboard-table tr:hover {
    background-color: rgba(245, 245, 247, 0.5);
}

.expandable-row {
    cursor: pointer;
    font-weight: 500;
}

.expandable-row:hover {
    background-color: rgba(245, 245, 247, 0.8) !important;
}

.currency-cell {
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
}

.total-cell {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

/* Buttons */
.dashboard-btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed) ease;
    border: none;
}

.dashboard-btn-sm {
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary.dashboard-btn {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary.dashboard-btn:hover {
    background-color: #0062c9;
    border-color: #0062c9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 113, 227, 0.2);
}

.btn-light.dashboard-btn {
    background-color: var(--light-gray);
    color: var(--dark-gray);
}

.btn-light.dashboard-btn:hover {
    background-color: #e5e5e7;
    transform: translateY(-1px);
}

.btn-outline-primary.dashboard-btn {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary.dashboard-btn:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Minimal Buttons - Apple Style */
.btn-sm.btn-light.dashboard-btn-sm {
    background-color: #f5f5f7;
    border: none;
    color: var(--dark-gray);
    box-shadow: none;
    padding: 0.25rem 0.5rem;
}

.btn-sm.btn-light.dashboard-btn-sm:hover {
    background-color: #e5e5e7;
    color: var(--dark-gray);
}

.btn-sm.btn-primary.dashboard-btn-sm {
    background-color: var(--accent-color);
    border: none;
    color: white;
    box-shadow: none;
    padding: 0.25rem 0.5rem;
}

.btn-sm.btn-outline-danger.dashboard-btn-sm {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
    box-shadow: none;
}

/* Cards and Stats */
.stats-card {
    background-color: var(--light-gray);
    border-radius: 12px;
    padding: 22px 18px;
    margin-bottom: 10px;
    transition: all var(--transition-speed) ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stats-card:hover {
    box-shadow: var(--card-shadow);
    transform: translateY(-3px);
}

.stats-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 8px;
    letter-spacing: -0.02em;
}

.stats-label {
    font-size: 0.85rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Expandable Sections */
.detail-section {
    border-top: none;
    background-color: var(--light-gray);
}

.detail-table {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.detail-table th {
    font-size: 0.7rem;
    padding: 10px 14px;
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid #eaeaea;
}

.detail-table td {
    padding: 10px 14px;
}

/* Form Elements */
.selector-input {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.selector-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
    outline: none;
}

/* Small Form Controls */
.form-control-sm.selector-input {
    height: calc(1.5em + 0.5rem + 2px);
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
    box-shadow: none;
}

.form-control-sm.selector-input:focus {
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.1);
}

.selector-dropdown {
    min-width: 120px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    transition: all var(--transition-speed) ease;
}

.selector-dropdown:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
    outline: none;
}

/* Date Navigation */
.date-nav-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--dark-gray);
    background-color: var(--light-gray);
    border: none;
    transition: all var(--transition-speed) ease;
}

.date-nav-btn:hover {
    background-color: #e5e5e7;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.date-display {
    font-weight: 500;
    color: var(--dark-gray);
    padding: 6px 16px;
    border-radius: 20px;
    background-color: var(--light-gray);
    letter-spacing: -0.01em;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

/* Print Specific Styles */
@media print {
    .btn-group, button, select, form {
        display: none !important;
    }
    
    .collapse {
        display: block !important;
    }
}

/* User Management Styles */
.user-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.user-link:hover {
    text-decoration: underline;
    color: var(--primary-color-dark);
}

.editable {
    display: inline-block;
    padding: 2px 5px;
    border: 1px solid transparent;
    cursor: pointer;
    min-width: 30px;
    transition: all 0.2s;
    border-radius: 6px;
}

.editable:hover {
    background-color: rgba(0, 113, 227, 0.05);
    border-color: rgba(0, 113, 227, 0.1);
}

.editable.editing {
    background-color: #fff;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
    outline: 0;
}

.editable-input {
    padding: 2px 4px;
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
}

.spinner-border.micro {
    width: 1rem; 
    height: 1rem;
    border-width: 0.1em;
    margin-left: 5px;
}

.license-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    background-color: var(--light-gray);
    font-size: 0.8rem;
    color: var(--dark-gray);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.license-badge:hover {
    background-color: rgba(0, 113, 227, 0.1);
}

/* End User Management Styles */

/* Customer Profile Styling */
.id-avatar {
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-gray);
}

.user-name {
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
}

.user-name:hover {
    text-decoration: underline;
    color: var(--primary-color-dark);
}

.id-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.expiry-date {
    position: relative;
    font-size: 0.9rem;
}

.expiry-date.expired {
    color: #dc3545;
}

.expiry-date.expiring-soon {
    color: #fd7e14;
}

.expiry-date.valid {
    color: var(--text-color);
}

.expiry-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    margin-left: 6px;
}

.expired .expiry-badge {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.expiring-soon .expiry-badge {
    background-color: rgba(255, 193, 7, 0.1);
    color: #fd7e14;
}

.expires-in {
    font-size: 0.875rem;
    color: var(--text-color);
}

.expires-in.expired {
    color: #dc3545;
    font-weight: 500;
}

.real-id-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.document-btn {
    font-size: 0.75rem;
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-header-bg);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--card-footer-bg);
}

.id-address-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.id-address-card .card-header {
    background-color: var(--card-header-bg);
    font-weight: 500;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.address-line {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.address-map-container {
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 30px;
    padding: 6px 12px;
}

.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-approved {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-delivered {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.status-denied {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.status-active {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-inactive {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

/* Customer Avatar */
.customer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-initials {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.customer-link {
    color: #0071e3;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-minimal {
    background: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    color: #6c757d;
}

.btn-minimal:hover {
    color: #495057;
    background-color: rgba(108, 117, 125, 0.1);
}

/* Table Utilities */
.dashboard-table tbody tr.align-middle td {
    vertical-align: middle;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Alert Icons */
.alert i {
    margin-right: 0.5rem;
}

/* Border Utilities */
.border-top {
    border-top: 1px solid #dee2e6;
}

/* Client Specific Styles */
.client-id {
    font-family: monospace;
    font-size: 0.85rem;
    color: #6c757d;
    background-color: #f8f9fa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.client-avatar {
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-name {
    font-weight: 500;
    color: #212529;
}

/* Employee Specific Styles */
.employee-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f2f2f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.employment-duration {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Dashboard Alert Styles */
.dashboard-alert {
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
}

.dashboard-alert-success {
    background-color: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

/* Dashboard Card Header */
.dashboard-card-header {
    padding: 16px;
    border-bottom: 1px solid #eaeaea;
    background-color: #f8f9fa;
}

.dashboard-card-body {
    padding: 16px;
}

/* Enhanced Dropdown Menu Styles */
.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: none;
    padding: 8px 0;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(0, 113, 227, 0.05);
    color: var(--accent-color);
}

.dropdown-item.text-danger:hover {
    background-color: rgba(255, 59, 48, 0.05);
    color: #ff3b30;
}

.dropdown-divider {
    margin: 4px 0;
    border-color: rgba(0, 0, 0, 0.05);
}

/* Status Inactive Badge */
.status-inactive {
    background-color: rgba(142, 142, 147, 0.1);
    color: #8e8e93;
}

/* Scheduling Page Styles */
.schedule-shift-span {
    text-align: left;
    text-overflow: ellipsis;
}

.schedule-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
    border-radius: 12px 12px 0 0;
}

.schedule-total-hours-day {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
}

.schedule-cell {
    vertical-align: middle;
    padding: 12px 15px;
    border-color: #f0f0f0;
}

.schedule-shift {
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
    margin-bottom: 0px;
    padding: 8px;
    cursor: pointer;
}

.schedule-shift-time {
    font-weight: 600;
    display: block;
}

.schedule-shift-name {
    display: block;
    font-size: 0.85rem;
}

.schedule-shift-hours {
    display: block;
    margin-top: 4px;
}

.schedule-modal-dialog {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.schedule-form-label {
    font-weight: 500;
    color: #444;
}

.schedule-color-picker {
    border-radius: 4px;
    height: 38px;
}

/* Schedule Page Media Queries */
@media (max-width: 768px) {
    .schedule-shift {
        padding: 5px;
    }
    
    .schedule-shift-time, 
    .schedule-shift-name, 
    .schedule-shift-hours {
        font-size: 0.75rem;
    }
} 