/* Generated from project-page-styles.css */

/* SOURCE: resources/views/checar/vehicles.blade.php */
html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }
    .vehicle-card {
      border: 0;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
      transition: transform .2s ease, box-shadow .2s ease;
    }
    .vehicle-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }
    .vehicle-link {
      color: inherit;
      text-decoration: none;
      display: block;
      height: 100%;
      position: relative;
    }
    .vehicle-image-wrap {
      width: 100%;
      height: 180px;
      background: #f8f9fa;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      cursor: pointer;
    }
    .vehicle-image-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .vehicle-image-empty {
      color: #adb5bd;
      text-align: center;
      font-size: .85rem;
    }
    .image-preview-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, .85);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      padding: 16px;
    }
    .image-preview-overlay.active {
      display: flex;
    }
    .image-preview-dialog {
      max-width: 900px;
      width: 100%;
      position: relative;
    }
    .image-preview-dialog img {
      width: 100%;
      max-height: 85vh;
      object-fit: contain;
      border-radius: 10px;
      background: #111;
    }
    .image-preview-close {
      position: absolute;
      top: -42px;
      right: 0;
      border: 0;
      background: transparent;
      color: #fff;
      font-size: 1.8rem;
      line-height: 1;
    }


/* SOURCE: resources/views/checar/vehicle-form.blade.php */
html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }
    .form-card {
      border: 0;
      border-radius: 14px;
      box-shadow: 0 2px 12px rgba(0,0,0,.08);
    }
    .form-card:hover {
      transform: none !important;
      box-shadow: 0 2px 12px rgba(0,0,0,.08) !important;
    }
    .vehicle-file-button {
      min-height: 46px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 12px;
      border: 1px solid #d8dee4;
      background: linear-gradient(180deg, #ffffff 0%, #f3f5f7 100%);
      color: #1f2328;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    }
    .vehicle-file-button:focus,
    .vehicle-file-button:active {
      background: linear-gradient(180deg, #fffdf3 0%, #fff4c4 100%) !important;
      border-color: #ffca05 !important;
      color: #1f2328 !important;
      box-shadow: 0 0 0 .2rem rgba(255, 202, 5, .18) !important;
    }
    .vehicle-file-button.is-selected {
      background: linear-gradient(180deg, #ffda47 0%, #ffca05 100%);
      border-color: #f0be00;
      color: #1f2328;
    }

    /* File upload zone */
    .file-upload-zone {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 20px 16px;
      border-radius: 14px;
      border: 2px dashed #d8dee4;
      background: #fafbfc;
      color: #6c757d;
      cursor: pointer;
      transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
      text-align: center;
      min-height: 110px;
    }
    .file-upload-zone:hover {
      border-color: #ffca05;
      background: #fffdf3;
      box-shadow: 0 0 0 3px rgba(255,202,5,.12);
    }
    .file-zone-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #f0f1f3;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      color: #6c757d;
      transition: background .18s ease, color .18s ease;
    }
    .file-zone-title {
      font-weight: 700;
      font-size: .92rem;
      color: #1f2328;
      line-height: 1.2;
    }
    .file-zone-hint {
      font-size: .78rem;
      color: #9ca3af;
    }
    .file-zone-name {
      font-size: .8rem;
      font-weight: 600;
      color: #1f2328;
      max-width: 100%;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .file-upload-zone.is-selected {
      border-style: solid;
      border-color: #ffca05;
      background: linear-gradient(160deg, #fffbe8 0%, #fff8d0 100%);
      box-shadow: 0 0 0 3px rgba(255,202,5,.18);
    }
    .file-upload-zone.is-selected .file-zone-icon {
      background: #ffca05;
      color: #1f2328;
    }

    /* Multi-file chips */
    .file-chips-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .file-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #f0f1f3;
      border: 1px solid #e2e4e8;
      border-radius: 999px;
      padding: 5px 10px 5px 12px;
      font-size: .78rem;
      font-weight: 600;
      color: #1f2328;
      max-width: 240px;
    }
    .file-chip span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .file-chip .bi-file-earmark-pdf-fill { color: #e74c3c; flex-shrink: 0; }
    .file-chip .bi-image-fill { color: #3498db; flex-shrink: 0; }


/* SOURCE: resources/views/checar/service-detail.blade.php */
    .service-detail-card-head {
      margin-bottom: 1rem;
    }
    .service-detail-card-intro {
      flex: 1 1 420px;
    }
    .service-detail-header-actions {
      align-items: flex-start;
      justify-content: flex-end;
      flex: 0 0 auto;
    }
    .service-detail-header-actions .btn {
      padding: .6rem 1rem;
      font-size: 1rem;
      border-radius: .5rem;
      white-space: nowrap;
    }
    .service-detail-header-actions .btn i {
      font-size: 1rem;
    }
    .svc-type-badge {
      width: 54px;
      height: 54px;
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: #1f2328;
      flex-shrink: 0;
    }
    .svc-files-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
      gap: 12px;
    }
    .svc-file-card {
      border-radius: 12px;
      overflow: hidden;
      position: relative;
      aspect-ratio: 1;
      border: 1px solid #e8e8e8;
      background: #f8f9fa;
      cursor: pointer;
      text-decoration: none;
    }
    .svc-file-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .svc-file-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,.45);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity .18s;
      color: #fff;
      font-size: 1.6rem;
    }
    .svc-file-img:hover .svc-file-overlay { opacity: 1; }
    .svc-file-pdf {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 12px;
      background: #fff5f5;
      border-color: #ffd0d0;
    }
    .svc-file-icon { font-size: 2.2rem; color: #e74c3c; }
    .svc-file-name {
      font-size: .7rem;
      font-weight: 600;
      color: #1f2328;
      text-align: center;
      word-break: break-all;
      display: -webkit-box;
      line-clamp: 2;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .svc-file-hint { font-size: .68rem; color: #9ca3af; }

    @media (max-width: 767.98px) {
      .service-detail-card-head,
      .service-detail-card-intro,
      .service-detail-header-actions {
        flex-direction: column;
        align-items: stretch !important;
      }
      .service-detail-header-actions {
        width: 100%;
      }
      .service-detail-header-actions .btn {
        width: 100%;
        justify-content: center;
      }
    }

    /* File modal */
    .file-modal-backdrop {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,.75);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }
    .file-modal-backdrop.active { display: flex; }
    .file-modal-box {
      background: #fff;
      border-radius: 16px;
      width: 100%;
      max-width: 860px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 24px 60px rgba(0,0,0,.3);
    }
    .file-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 18px;
      border-bottom: 1px solid #e9ecef;
      gap: 12px;
    }
    .file-modal-title {
      font-weight: 700;
      font-size: .9rem;
      color: #1f2328;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .file-modal-close {
      background: none;
      border: none;
      font-size: 1.1rem;
      color: #6c757d;
      cursor: pointer;
      padding: 4px;
      line-height: 1;
      flex-shrink: 0;
      border-radius: 6px;
      transition: background .15s, color .15s;
    }
    .file-modal-close:hover { background: #f0f1f3; color: #1f2328; }
    .file-modal-body {
      flex: 1;
      overflow: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #f8f9fa;
      min-height: 0;
    }
    .file-modal-body img {
      max-width: 100%;
      max-height: 75vh;
      object-fit: contain;
      display: block;
    }
    .file-modal-body iframe {
      width: 100%;
      height: 75vh;
      border: none;
      display: block;
    }

    .next-service-modal-box {
      max-width: 920px;
      border: 1px solid #e6e6e6;
      box-shadow: 0 20px 50px rgba(24, 29, 33, .2);
    }
    .next-service-subtitle {
      font-size: .78rem;
      color: #6c757d;
      line-height: 1.35;
      margin-top: 3px;
    }
    .next-service-modal-body {
      background: #ffffff;
      display: block;
      width: 100%;
      align-items: flex-start;
      justify-content: flex-start;
      padding: 20px;
      overflow: auto;
    }
    .next-service-form {
      display: flex;
      flex-direction: column;
      width: 100%;
      min-height: 0;
    }
    .next-service-section {
      border: 1px solid #ececec;
      border-radius: 14px;
      padding: 14px;
      background: #fafafa;
      margin-bottom: 14px;
    }
    .next-service-hint {
      font-size: .86rem;
      line-height: 1.45;
      color: #5f666d;
    }
    .next-service-origin {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .next-service-service-notes-input {
      min-height: 92px;
      resize: vertical;
      border-radius: 10px;
      border-color: #dfe3e7;
      font-size: .95rem;
      line-height: 1.5;
      color: #495057;
      background: #fff;
    }
    .next-service-service-notes-input:focus {
      border-color: #ffca05;
      box-shadow: 0 0 0 .2rem rgba(255, 202, 5, .18);
    }
    .origin-pill {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      border: 1px solid #e4e4e4;
      background: #ffffff;
      color: #5d636a;
      padding: 5px 10px;
      font-size: .75rem;
      font-weight: 700;
      letter-spacing: .01em;
    }
    .next-service-check {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: .9rem;
      color: #2b2f33;
      font-weight: 600;
      margin: 0;
    }
    .next-service-option {
      border: 1px solid #e9e9e9;
      border-radius: 12px;
      padding: 10px 12px;
      background: #fff;
      transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
    }
    .next-service-option:hover {
      border-color: #dcdcdc;
      background: #fdfdfd;
    }
    .next-service-option input[type='checkbox'] {
      margin-top: 3px;
      accent-color: #f2bf00;
    }
    .next-service-option strong {
      display: block;
      font-size: .88rem;
      line-height: 1.25;
      color: #252a2f;
    }
    .next-service-option small {
      display: block;
      margin-top: 2px;
      color: #6d737a;
      font-size: .78rem;
      font-weight: 500;
      line-height: 1.35;
    }
    .next-service-files-feedback {
      margin-top: 6px;
      font-size: .78rem;
      color: #6f757d;
      font-weight: 600;
    }
    .next-service-files-list {
      display: grid;
      gap: 8px;
      margin-bottom: 6px;
    }
    .next-service-file-row {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 8px;
      align-items: center;
    }
    #nextServiceScheduleFields.is-disabled {
      opacity: .65;
    }
    .next-service-actions {
      padding: 14px 18px 18px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      border-top: 1px solid #ececec;
      background: #fff;
    }
    @media (max-width: 768px) {
      .next-service-modal-body {
        padding: 14px;
      }
      .next-service-actions {
        padding: 12px 14px 14px;
      }
    }
    .file-chip-remove {
      flex-shrink: 0;
      background: #e2e4e8;
      border: none;
      outline: none;
      padding: 0;
      margin-left: 4px;
      width: 16px;
      height: 16px;
      line-height: 1;
      color: #6c757d;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: .7rem;
      border-radius: 50%;
      transition: background .15s, color .15s;
    }
    .file-chip-remove:hover {
      background: #e74c3c;
      color: #fff;
    }

    /* Add-more button */
    .file-add-btn {
      flex-shrink: 0;
      align-self: flex-start;
      width: 46px;
      height: 46px;
      border-radius: 12px;
      border: 2px dashed #d8dee4;
      background: #fafbfc;
      color: #6c757d;
      font-size: 1.2rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: border-color .18s, background .18s, color .18s;
      outline: none;
    }
    .file-add-btn:hover {
      border-color: #ffca05;
      background: #fffdf3;
      color: #1f2328;
    }


/* SOURCE: resources/views/checar/vehicle-detail.blade.php */
html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }
    .section-card {
      border: 0;
      border-radius: 14px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    .vehicle-hero {
      border-radius: 14px;
      overflow: hidden;
      background: #fff;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    .vehicle-hero-image {
      width: 100%;
      height: 280px;
      background: #f8f9fa;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .vehicle-hero-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .data-row {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 8px 0;
      border-bottom: 1px dashed #ececec;
      font-size: .92rem;
    }
    .data-row:last-child {
      border-bottom: 0;
    }
    .data-label { color: #6c757d; }
    .data-value { font-weight: 600; text-align: right; }


/* SOURCE: resources/views/checar/services-history.blade.php */
html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }
    .history-shell { display: grid; gap: 18px; }
    .summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
    .summary-card {
      background: #fff;
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 1px 3px rgba(0,0,0,.08);
      border: 1px solid #e9ecef;
    }
    .summary-value {
      font-size: 1.55rem;
      font-weight: 800;
      line-height: 1;
      color: #ffca05;
    }
    .filter-card, .services-card {
      background: #fff;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 1px 3px rgba(0,0,0,.08);
      border: 1px solid #e9ecef;
    }
    .service-list {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }
    .services-history-page,
    .services-history-list,
    .services-history-item,
    .services-history-item * {
      min-width: 0;
      box-sizing: border-box;
    }
    .service-card-improved {
      background: #fff;
      border: 1px solid #e9ecef;
      border-radius: 12px;
      padding: 16px;
      box-shadow: 0 1px 3px rgba(0,0,0,.05);
      min-height: 100%;
      display: flex;
      flex-direction: column;
      gap: 0;
      transition: all .3s ease;
    }
    .service-card-improved:hover {
      box-shadow: 0 4px 12px rgba(0,0,0,.1);
      border-color: #ffca05;
    }
    .card-header-improved {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 10px;
    }
    .card-title-improved {
      font-size: 1.02rem;
      font-weight: 700;
      color: #1f2328;
      margin: 0 0 4px 0;
      line-height: 1.2;
      overflow-wrap: anywhere;
    }
    .card-subtitle-improved {
      font-size: .8rem;
      color: #6c757d;
      margin: 0;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }
    .badge-status {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: .72rem;
      font-weight: 700;
      white-space: nowrap;
    }
    .badge-completado {
      background: #d4edda;
      color: #155724;
    }
    .badge-proximo {
      background: #d1ecf1;
      color: #0c5460;
    }
    .badge-urgente {
      background: #f8d7da;
      color: #721c24;
    }
    .card-row-improved {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 7px 0;
      border-bottom: 1px solid #edf0f2;
      font-size: .88rem;
    }
    .card-row-improved:last-of-type {
      border-bottom: none;
      padding-bottom: 0;
    }
    .card-label-improved {
      color: #6c757d;
      font-weight: 600;
      flex-shrink: 0;
    }
    .card-value-improved {
      color: #1f2328;
      font-weight: 500;
      text-align: right;
      overflow-wrap: anywhere;
    }
    .service-data-notes {
      max-width: 56%;
      text-overflow: ellipsis;
      overflow: hidden;
      white-space: nowrap;
    }
    .card-actions {
      margin-top: auto;
      padding-top: 16px;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      align-items: stretch;
      gap: 8px;
    }
    .card-actions > a,
    .card-actions > button,
    .card-actions > .service-delete-form {
      flex: 1 1 0;
      min-width: 0;
    }
    .action-btn-improved {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 7px 10px;
      border-radius: 8px;
      text-decoration: none;
      font-size: .83rem;
      font-weight: 700;
      border: none;
      gap: 6px;
      min-width: 0;
      min-height: 36px;
      transition: all .2s ease;
    }
    .action-btn-block-improved {
      width: 100%;
    }
    .service-delete-form {
      display: flex;
      margin: 0;
      width: 100%;
    }
    .action-btn-primary-improved {
      background: #ffca05;
      color: #1f2328;
    }
    .action-btn-primary-improved:hover {
      background: #ffc107;
      color: #1f2328;
    }
    .action-btn-secondary-improved {
      background: #f8f9fa;
      color: #1f2328;
      border: 1px solid #e1e5ea;
    }
    .action-btn-secondary-improved:hover {
      background: #e9ecef;
      color: #1f2328;
    }
    .action-btn-info-improved {
      background: #d1ecf1;
      color: #0c5460;
      border: 1px solid #b7e0e8;
    }
    .action-btn-info-improved:hover {
      background: #bfe5ec;
      color: #0c5460;
    }
    .action-btn-danger-improved {
      background: #f8d7da;
      color: #842029;
      border: 1px solid #f1bfc5;
    }
    .action-btn-danger-improved:hover {
      background: #f1c4ca;
      color: #842029;
    }
    .action-btn-danger-improved:disabled {
      opacity: .45;
      cursor: not-allowed;
    }
    .action-btn-icon-improved {
      min-width: 44px;
      width: 44px;
    }
    .service-title-row {
      display: inline-flex;
      flex: 1 1 0;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: flex-start;
    }
    .service-title-wrap {
      min-width: 0;
      flex: 1;
    }
    .service-title { font-size: 1.05rem; font-weight: 700; color: #202428; }
    .service-meta {
      color: #6c757d;
      font-size: .82rem;
      margin-top: 4px;
      line-height: 1.45;
    }
    .service-km-box {
      flex-shrink: 0;
      min-width: 88px;
      padding: 10px 12px;
      border-radius: 10px;
      background: #f8f9fa;
      border: 1px solid #e9ecef;
      text-align: right;
    }
    .service-km-main {
      font-size: .95rem;
      font-weight: 800;
      color: #202428;
      line-height: 1.1;
    }
    .service-km-next {
      margin-top: 4px;
      font-size: .72rem;
      color: #7a7f87;
      line-height: 1.35;
    }
    .service-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
    .service-tag {
      display: inline-flex; align-items: center; gap: 6px;
      border-radius: 999px; padding: 4px 10px; font-size: .75rem; font-weight: 700;
    }
    .tag-type { background: #fff3cd; color: #664d03; }
    .tag-programado { background: #d1ecf1; color: #0c5460; }
    .tag-vencido { background: #f8d7da; color: #721c24; }
    .tag-cerrado { background: #e2e3e5; color: #41464b; }
    .service-body {
      display: grid;
      gap: 8px;
      flex: 1;
      min-height: 0;
    }
    .service-description {
      margin: 0;
      color: #31363b;
      font-size: .88rem;
      line-height: 1.5;
      display: -webkit-box;
      line-clamp: 3;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .service-notes {
      font-size: .8rem;
      color: #6c757d;
      line-height: 1.45;
      display: -webkit-box;
      line-clamp: 3;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .service-footer {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
      margin-top: auto;
      padding-top: 2px;
    }
    .vehicle-chip {
      display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
      background: #f8f9fa; border-radius: 999px; padding: 7px 12px; font-size: .8rem;
      border: 1px solid #e9ecef;
    }
    .service-detail-btn {
      width: 100%;
      justify-content: center;
      border-radius: 8px;
      border: none;
      background: #ffca05;
      color: #1f2328;
      font-weight: 600;
      padding: 8px 12px;
    }
    .service-detail-btn:hover {
      background: #ffc107;
      color: #1f2328;
    }
    .empty-state {
      padding: 40px 16px; text-align: center; color: #6c757d;
      border: 1px dashed #ddd; border-radius: 16px; background: #fafafa;
    }
    .modal-open-overflow-hidden {
      overflow: hidden;
    }
    .service-files-modal {
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: none;
    }
    .service-files-modal.is-open {
      display: block;
    }
    .service-files-modal__backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,.55);
      backdrop-filter: blur(2px);
    }
    .service-files-modal__dialog {
      position: relative;
      width: min(940px, calc(100% - 28px));
      margin: 4vh auto;
      background: #fff;
      border-radius: 14px;
      box-shadow: 0 18px 45px rgba(0,0,0,.25);
      overflow: hidden;
      border: 1px solid #e9ecef;
      max-height: 92dvh;
      display: flex;
      flex-direction: column;
    }
    .service-delete-modal__dialog {
      width: min(460px, calc(100% - 24px));
      margin-top: 18vh;
    }
    .service-files-modal__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 16px;
      border-bottom: 1px solid #edf0f2;
      background: #fffef8;
      position: sticky;
      top: 0;
      z-index: 2;
    }
    .service-files-modal__close {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      border: 1px solid #e1e5ea;
      background: #fff;
      color: #495057;
    }
    .service-delete-modal__body {
      padding: 16px;
      color: #27303b;
      font-size: .92rem;
    }
    .service-delete-modal__actions {
      padding: 0 16px 16px;
      display: flex;
      justify-content: flex-end;
      gap: 8px;
    }
    .service-files-modal__body {
      display: grid;
      grid-template-columns: 260px 1fr;
      min-height: min(70vh, 620px);
      max-height: calc(92dvh - 72px);
      overflow: hidden;
    }
    .service-files-list {
      border-right: 1px solid #edf0f2;
      overflow: auto;
      padding: 10px;
      background: #fbfcfd;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .service-files-list__empty {
      border: 1px dashed #d7dde2;
      border-radius: 10px;
      padding: 16px;
      text-align: center;
      color: #6c757d;
      font-size: .85rem;
      background: #fff;
    }
    .service-file-item {
      border: 1px solid #e3e8ed;
      border-radius: 10px;
      background: #fff;
      display: flex;
      gap: 10px;
      align-items: center;
      width: 100%;
      padding: 8px 10px;
      text-align: left;
      color: #27303b;
      transition: all .18s ease;
    }
    .service-file-item:hover,
    .service-file-item.is-active {
      border-color: #ffca05;
      background: #fff9dc;
    }
    .service-file-item__icon {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: #f3f5f7;
      color: #3d4a58;
      flex-shrink: 0;
    }
    .service-file-item__name {
      font-size: .82rem;
      font-weight: 600;
      line-height: 1.3;
      word-break: break-word;
    }
    .service-files-preview {
      background: #f7f8fa;
      padding: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-width: 0;
      overflow: auto;
    }
    .service-files-preview img,
    .service-files-preview iframe {
      width: 100%;
      height: auto;
      border: 1px solid #e3e8ed;
      border-radius: 10px;
      background: #fff;
    }
    .service-files-preview img {
      object-fit: contain;
      max-height: 62dvh;
    }
    .service-files-preview iframe {
      min-height: 420px;
      height: min(62dvh, 560px);
    }
    .service-files-preview__pdf-wrap {
      width: 100%;
    }
    .service-files-preview__pdf-actions {
      display: flex;
      justify-content: flex-end;
      margin-bottom: 8px;
    }
    .service-files-preview__empty {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: #7a828b;
      font-size: .9rem;
      text-align: center;
    }
    .service-files-preview__empty i {
      font-size: 1.8rem;
      color: #b0b8c0;
    }
    @media (max-width: 1100px) {
      .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 640px) {
      .services-history-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
      }
      .services-history-toolbar-copy {
        width: 100%;
      }
      .services-history-toolbar-action {
        width: 100%;
        justify-content: center;
      }
      .services-history-filter-card,
      .services-history-services-card {
        padding: 14px;
        overflow: hidden;
      }
      .services-history-filter-row {
        --bs-gutter-x: 0.75rem;
      }
      .summary-grid { grid-template-columns: 1fr; }
      .service-list { grid-template-columns: 1fr; }
      .service-card-improved {
        padding: 14px;
      }
      .card-header-improved {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
      }
      .badge-status {
        align-self: flex-start;
        max-width: 100%;
      }
      .card-row-improved {
        gap: 8px;
      }
      .card-label-improved {
        max-width: 36%;
      }
      .card-value-improved {
        max-width: 64%;
      }
      .service-data-notes {
        max-width: 64%;
      }
      .card-actions {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding-top: 12px;
      }
      .action-btn-improved {
        width: 100%;
        min-height: 36px;
      }
      .action-btn-icon-improved {
        width: 100%;
      }
      .service-delete-form {
        width: 100%;
      }
      .service-files-modal__dialog {
        width: calc(100% - 16px);
        margin: 1.5vh auto;
        max-height: 96dvh;
      }
      .service-files-modal__body {
        grid-template-columns: 1fr;
        max-height: calc(96dvh - 72px);
        overflow: auto;
      }
      .service-files-list {
        border-right: none;
        border-bottom: 1px solid #edf0f2;
        max-height: 160px;
      }
      .service-files-preview {
        min-height: 280px;
      }
      .service-files-preview img {
        max-height: 46dvh;
      }
      .service-files-preview iframe {
        min-height: 280px;
        height: 46dvh;
      }
    }

    @media (max-width: 420px) {
      .services-history-page {
        overflow-x: hidden;
      }
      .card-row-improved {
        align-items: flex-start;
      }
      .card-label-improved {
        max-width: 34%;
        font-size: .8rem;
      }
      .card-value-improved {
        max-width: 66%;
        font-size: .82rem;
      }
      .service-data-notes {
        white-space: normal;
        text-overflow: clip;
        display: block;
      }
    }


/* SOURCE: resources/views/checar/service-form.blade.php */
html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }
    .form-card {
      border: 0;
      border-radius: 14px;
      box-shadow: 0 2px 12px rgba(0,0,0,.08);
    }
    .vehicle-carousel-wrap {
      position: relative;
    }
    .vehicle-carousel {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding: 4px 2px 10px;
      scroll-snap-type: x proximity;
      scrollbar-width: thin;
    }
    .vehicle-carousel.is-list {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      overflow-x: visible;
      padding: 0;
      scroll-snap-type: none;
    }
    .vehicle-carousel::-webkit-scrollbar {
      height: 8px;
    }
    .vehicle-carousel::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, .14);
      border-radius: 999px;
    }
    .vehicle-pick-card {
      min-width: 220px;
      max-width: 220px;
      border: 1px solid #e8e8e8;
      border-radius: 16px;
      background: #fff;
      overflow: hidden;
      cursor: pointer;
      scroll-snap-align: start;
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
      box-shadow: 0 6px 16px rgba(0,0,0,.04);
    }
    .vehicle-carousel.is-list .vehicle-pick-card {
      min-width: 100%;
      max-width: 100%;
      width: 100%;
      display: flex;
      align-items: stretch;
      scroll-snap-align: none;
      border-radius: 14px;
    }
    .vehicle-pick-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }
    .vehicle-pick-card.is-selected {
      border-color: #ffca05;
      box-shadow: 0 0 0 2px rgba(255,202,5,.35), 0 10px 24px rgba(0,0,0,.08);
    }
    .vehicle-pick-media {
      height: 124px;
      background: linear-gradient(135deg, #fff7d1, #f8f9fa);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .vehicle-carousel.is-list .vehicle-pick-media {
      width: 130px;
      min-width: 130px;
      height: auto;
    }
    .vehicle-pick-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .vehicle-pick-empty {
      color: #a0a7ad;
      text-align: center;
      font-size: .82rem;
    }
    .vehicle-pick-body {
      padding: 12px;
    }
    .vehicle-carousel.is-list .vehicle-pick-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 10px 12px;
    }
    .vehicle-pick-name {
      font-weight: 700;
      font-size: .96rem;
      color: #202428;
      margin-bottom: 3px;
      line-height: 1.2;
    }
    .vehicle-pick-meta {
      color: #6c757d;
      font-size: .82rem;
      line-height: 1.35;
    }
    .vehicle-view-toggle {
      border-radius: 999px;
      width: 36px;
      height: 36px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
    }
    .vehicle-view-toggle i {
      line-height: 1;
    }
    .vehicle-view-toggle[aria-pressed="true"] {
      color: #1f2328;
      border-color: #ffca05;
      background: #fff5cc;
    }
    @media (max-width: 768px) {
      .vehicle-carousel.is-list .vehicle-pick-media {
        width: 108px;
        min-width: 108px;
      }
    }


/* SOURCE: resources/views/checar/profile.blade.php */
html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }
    .profile-card {
      border: 0;
      border-radius: 14px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    .profile-avatar {
      width: 74px;
      height: 74px;
      border-radius: 50%;
      background: var(--checar-yellow);
      color: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1.4rem;
      flex-shrink: 0;
    }
    .profile-field {
      padding: 10px 0;
      border-bottom: 1px dashed #ececec;
      display: flex;
      justify-content: space-between;
      gap: 12px;
    }
    .profile-field:last-child {
      border-bottom: 0;
    }
    .profile-field-label {
      color: #6c757d;
      font-size: .9rem;
    }
    .profile-field-value {
      font-weight: 600;
      text-align: right;
      font-size: .92rem;
      color: #1f2937;
    }


/* SOURCE: resources/views/checar/profile-edit.blade.php */
html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }
    .form-card {
      border: 0;
      border-radius: 14px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }


/* SOURCE: resources/views/checar/index.blade.php */
html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }


/* SOURCE: resources/views/checar/dashboard-taller.blade.php */
html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }
    .soft-card { border: 0; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
    .metric-value { font-size: 1.4rem; font-weight: 700; }


/* SOURCE: resources/views/checar/dashboard-cliente.blade.php */
html, body { max-width: 100%; overflow-x: hidden; background: #f5f5f5; }
    .soft-card { border: 0; border-radius: 14px; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
    .metric-value { font-size: 1.4rem; font-weight: 700; }


/* ── VEHICLES LIST — CLASES FALTANTES ─────────────────────────── */

/* Contenedor principal del encabezado de vehículos */
.vehicles-header-block { margin-bottom: 1rem; }

/* Fila superior: título + botón volver */
.vehicles-header-top { row-gap: 8px; }

/* Fila de acciones: PDF, Reportes, Papelera, Registrar */
.vehicles-header-actions { row-gap: 8px; flex-wrap: wrap; }

/* Bloque de ordenamiento */
.vehicles-sort-block { margin-bottom: 1rem; }

/* Select de ordenamiento por servicio */
.vehicles-sort-select {
  min-width: 160px;
  max-width: 200px;
  border-radius: 8px;
  border: 1px solid #d8dee4;
  font-size: .875rem;
}
.vehicles-sort-select:focus {
  border-color: var(--checar-yellow);
  box-shadow: 0 0 0 .2rem rgba(255,202,5,.15);
  outline: none;
}

/* Botones solo visibles en desktop (ocultos en móvil) */
@media (max-width: 767.98px) {
  .vehicles-desktop-only { display: none !important; }
}

/* Badge de vehículo bloqueado (requiere suscripción) */
.locked-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  backdrop-filter: blur(2px);
}

/* Nota dentro de tarjeta de vehículo bloqueado */
.vehicle-lock-note {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .78rem;
  color: #5c4a00;
  line-height: 1.4;
  margin-top: 10px;
}

/* Nota al pie sobre límite gratuito / suscripción */
.subscription-legend-footer {
  margin-top: 18px;
  padding: 12px 14px;
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: 10px;
  font-size: .8rem;
  color: #6c757d;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

/* Leyenda de colores de botones de acción */
.action-buttons-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: .78rem;
  color: #6c757d;
  margin-top: 12px;
  padding: 8px 0;
}
.action-legend-item { display: flex; align-items: center; gap: 4px; }
.action-legend-edit i   { color: var(--checar-yellow); }
.action-legend-km i     { color: #0d6efd; }
.action-legend-service i { color: #6c757d; }
.action-legend-delete i  { color: #dc3545; }

/* Badge completed (alias de badge-completado para consistencia) */
.badge-completed {
  background: #d4edda;
  color: #155724;
}
