/* Main Content */
        .main-content {
            max-width: 1600px;
            margin: 0 auto;
            padding: 2rem;
        }
   body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
        }

        .header {
            background: linear-gradient(135deg, #4a90e2, #357abd);
            color: white;
            padding: 40px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header h1 {
            font-size: 24px;
            font-weight: bold;
            margin: 0;
        }

        .header .subtitle {
            font-size: 14px;
            opacity: 0.9;
            margin-top: 0px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo img {
            width: 60px;
            height: 60px;
            background: white;
            border-radius: 8px;
            padding: 5px;
        }

        .search-container {
            background: white;
            padding: 30px;
            margin: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-top: -50px;
            z-index: 10;
        }

        .search-form {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr 1fr;
            gap: 20px;
            margin-bottom: 20px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
        }

        .form-group label {
            font-weight: bold;
            margin-bottom: 8px;
            color: #333;
        }

        .form-group select,
        .form-group input {
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }

        .form-group select:focus,
        .form-group input:focus {
            outline: none;
            border-color: #4a90e2;
        }

        .button-group {
            align-items: center;
            display: flex;
            gap: 10px;
            justify-content: flex-end;
            margin-top: 20px;
        }

        .btn {
            height: fit-content;
            padding: 12px 30px;
            border: none;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            transition: background-color 0.3s;
        }

        .btn-success {
            background-color: #28a745;
            color: white;
            font-size: 13px;
        }

        .btn-success:hover {
            background-color: #218838;
        }

        .btn-danger {
            background-color: #dc3545;
            color: white;
            font-size: 13px;
        }

        .btn-danger:hover {
            background-color: #c82333;
        }

        .results-container {
            background: white;
            margin: 20px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #eee;
        }

        .show-entries {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .show-entries select {
            padding: 5px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .search-box {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .search-box input {
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
            width: 200px;
        }

        .table-container {
            overflow-x: auto;
            padding: 20px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            table-layout: fixed;
        }

        thead th:nth-child(1) { width: 10%; } /* Tipo de Documento */
        thead th:nth-child(2) { width: 40%; } /* Asunto */
        thead th:nth-child(3) { width: 4%; } /* Año */
        thead th:nth-child(4) { width: 5%; } /* N° */
        thead th:nth-child(5) { width: 5%; } /* Fecha Emisión */
        thead th:nth-child(6) { width: 3%; } /* Doc */

        th {
            background:  #357abd;
            color: white;
            padding: 10px 10px;
            text-align: center;
            font-size: small;
            font-weight: bold;
            position: relative;
        }

        th:hover {
            background: linear-gradient(135deg, #357abd, #2968a3);
        }

        th::after {
            content: '⇅';
            position: absolute;
            right: 8px;
            cursor: pointer;
            opacity: 0.7;
        }

        td {
            padding: 15px 10px;
            border-bottom: 1px solid #eee;
            vertical-align: top;
        }

        tr:hover {
            background-color: #f8f9fa;
        }

        .doc-btn {
            background-color: #dc3545;
            color: white;
            padding: 8px 15px;
            border: none;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .doc-btn:hover {
            background-color: #c82333;
        }

        .doc-btn::before {
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            content: "\f1c1";
        }

        .no-results {
            text-align: center;
            padding: 50px;
            color: #666;
            font-style: italic;
        }

        @media (max-width: 768px) {
            .search-form {
                grid-template-columns: 1fr;
            }
            
            .search-container {
                margin: 10px;
                padding: 20px;
            }
            
            .results-container {
                margin: 10px;
            }
            
            .results-header {
                flex-direction: column;
                gap: 15px;
                align-items: stretch;
            }
        }