.daily-publications {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.4;
}

.daily-title {
    text-transform: uppercase;
    font-size: 20px;
    margin: 10px 0 0 0;
    text-align: center;
    color: #1A237E;
}

.daily-not {
    font-size: 22px;
    font-weight: 700;
    margin-top: 20px;
    min-height: calc(100vh - 150px);
    text-align: center;
    color: #1A237E;
}

.page-stats {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    text-align: center;
    color: #666;
}

.daily-controls {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: right;
    color: #666;
}

.docs-per-page {
    padding: 2px 5px;
    border: 1px solid #ccc;
    background: #fff;
}

.print-link {
    font-size: 14px;
    color: #0000FF;
    cursor: pointer;
}

.print-link .doc-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.print-link:hover {
    color: #FF0000;
}

.daily-item {
    display: flex;
    padding: 20px;
    border-bottom: 2px solid #EEEE;
    background: #FFFF;
}

.daily-number {
    font-size: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-right: 20px;
    color: #1A237E;
}

.daily-content {
    flex: 1;
}

.doc-title {
    color: #0000FF;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.doc-title .doc-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin: 0 5px 0 0;
}

.doc-title-link {
    color: inherit;
    text-decoration: none;
}

.doc-title-link:hover {
    color: #FF0000;
}

.doc-text {
    margin-bottom: 10px;
    color: #000;
}

.daily-meta {
    margin-bottom: 10px;
    font-size: 14px;
}

.meta-number,
.meta-date {
    margin-top: 10px;
    display: inline-block;
    margin-right: 25px;
}

.meta-text {
    color: #666;
    font-weight: 600;
}

.meta-label {
    color: #FF0000;
    font-weight: 300;
}

.daily-files {
    font-size: 12px;
}

.file-link {
    display: inline-block;
    color: #0066cc;
    text-decoration: none;
    padding: 2px 6px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    margin-right: 10px;
    transition: all 0.2s;
}

.file-link:hover {
    background: #e6f3ff;
    border-color: #0066cc;
    color: #004499;
}

.file-link-pdf {
    border-left: 4px solid #d32f2f;
}

.file-type {
    font-weight: bold;
    margin-right: 4px;
}

.file-size {
    font-weight: bold;
    color: #000;
    margin: 0 4px;
}

.file-pages {
    color: #666;
    font-size: 11px;
}

.no-file {
    color: #999;
}

.daily-pagination {
    padding: 10px 10px;
}

.page-numbers {
    text-align: center;
    margin-top: 10px;
}

.page-link {
    display: inline-block;
    padding: 4px 8px;
    margin: 0 2px;
    border: 1px solid #ccc;
    text-decoration: none;
    color: #0066cc;
    font-size: 12px;
}

.page-link.current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

.page-ellipsis {
    margin: 0 5px;
    color: #999;
}

.count-docs {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #1A237E;
}

.date-info {
    font-family: 'Roboto', Arial, sans-serif;
    color: #1A237E;
    text-align: left;
    font-size: 16px;
}

.date-info__value {
    font-weight: 500;
}


.pm-view-pdf-error {
    padding: 20px;
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
    border-radius: 4px;
}

.pm-view-pdf-full {
    position: relative;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.pm-view-pdf-full iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.pm-login-page {
    font-family: Roboto,Arial,sans-serif;
    background: #EEEEEE;
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.pm-login-page-inner {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.pm-login-avatar {
    position: absolute;
    top: -57px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    box-shadow: 0 6px 18px #0f172a1f;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-login-avatar-img {
    max-width: 120%;
    max-height: 120%;
    display: block;
}

.pm-login-page #pm-login {
    width: 100%;
    padding: 48px 24px 28px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 18px #0f172a1f;
    box-sizing: border-box;
}

.pm-login-page #pm-login h1 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    color: #111827;
}

.pm-login-page #pm-login .pm-login-message,
.pm-login-page #pm-login .pm-login-error {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.pm-login-page #pm-login .pm-login-message {
    border-left: 4px solid #16a34a;
    background-color: #dcfce7;
    color: #14532d;
}

.pm-login-page #pm-login .pm-login-error {
    border-left: 4px solid #dc2626;
    background-color: #fee2e2;
    color: #7f1d1d;
}

.pm-login-page label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #444;
}

.pm-login-page .pm-input {
    display: block;
    width: 100%;
    padding: 8px 10px;
    margin: 0 0 14px;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    color: #111827;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-login-page .pm-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb33;
}

.pm-login-page .pm-login-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.pm-login-page .pm-login-actions .forgetmenot {
    margin: 0;
    font-size: 13px;
    color: #444;
}

.pm-login-page .pm-login-actions .forgetmenot input[type="checkbox"] {
    margin-right: 6px;
}

.pm-login-page .pm-login-actions .submit {
    margin: 0;
}

.pm-login-page .pm-button-primary {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-login-page .pm-button-primary:hover {
    background: #ED8A0A;
    box-shadow: 0 4px 10px #ED8A0A4d;
}

.pm-login-page .pm-extra-links {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.pm-login-page .pm-extra-links a {
    color: #2563eb;
    text-decoration: none;
}

.pm-login-page .pm-extra-links a:hover {
    text-decoration: underline;
}

.pm-password-wrap {
    position: relative;
}

.pm-password-wrap .pm-password-input {
    padding-right: 40px; 
}

.pm-password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-password-toggle-icon {
    display: block;
    width: 20px;
    height: 20px;
}


.publication-form {
    max-width: 100%;
    margin: 10px 50px;
    padding: 20px 30px;
    font-family: Roboto, Arial, sans-serif;
    background: #E8ECF5;
}

.publication-form p {
    margin-bottom: 15px;
}

.publication-form label {
    display: block;
    margin-bottom: 5px;
    color: #111827;
}

.publication-form input,
.publication-form textarea,
.publication-form select {
    padding: 12px;
    font-size: 14px;
    font-family: Roboto, Arial, sans-serif;
    border-radius: 4px;
    border: 1px solid #444;
    box-sizing: border-box;
    background: #ffffff;
    box-shadow: 0 6px 18px #0f172a1f;
}

.publication-form input[name="publication_number_display"] {
    width: 100%;
    max-width: 350px; 
    background: #EEEEEE;
}

.publication-form select[name="gov_id"] {
    width: 100%;
    max-width: 700px; 
}

.publication-form select[name="type_id"] {
    width: 100%;
    max-width: 350px; 
}

.publication-form input[name="document_date"] {
    width: 100%;
    max-width: 200px; 
}

.publication-form input[name="document_number"] {
    width: 100%;
    max-width: 350px; 
}

.publication-form textarea[name="document_title"] {
    width: 100%;
    max-width: 100%;
    min-height: 150px;
}

.publication-form input[type="file"] {
    width: 100%;
    max-width: 100%;
}            

.publication-form input:focus,
.publication-form textarea:focus,
.publication-form select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 6px 18px #2563eb33;
}

.publication-form button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

.publication-form button:hover {
    background: #ED8A0A;
    box-shadow: 0 4px 10px #ED8A0A4d;
}

#form-message.success {
    color: green;
}

#form-message.error {
    color: red;
}

#pdf-file-row.pdf-file-ok #pdf-file-info {
    color: green;
}

#pdf-file-row.pdf-file-error #pdf-file-info {
    color: red;
}

.publication-loader {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

.publication-loader__spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    animation: publication-spin 0.8s linear infinite;
    margin-bottom: 10px;
}

.publication-loader__text {
    color: #f9fafb;
    font-size: 14px;
    font-family: Roboto, Arial, sans-serif;
}

#pm-global-loader {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

@keyframes publication-spin {
    to { transform: rotate(360deg); }
}

.publication-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.publication-modal__content {
    background: #ffffff;
    max-width: 480px;
    width: 100%;
    margin: 0 16px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
    overflow: hidden;
    font-family: Roboto, Arial, sans-serif;
}

.publication-modal__header {
    padding: 16px 20px;
    background: #1f2937;
    color: #f9fafb;
}

.publication-modal__header h2 {
    margin: 0;
    font-size: 18px;
}

.publication-modal__body {
    padding: 16px 20px;
    font-size: 14px;
    color: #111827;
}

.publication-modal__footer {
    padding: 12px 20px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f3f4f6;
}

.publication-modal__footer button {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

#publication-modal-exit {
    background: #6b7280;
    color: #f9fafb;
}

#publication-modal-exit:hover {
    background: #4b5563;
}

#publication-modal-continue {
    background: #2563eb;
    color: #ffffff;
}

#publication-modal-continue:hover {
    background: #1d4ed8;
}

.publication-modal--success .publication-modal__header {
    background: #15803d;
}

.publication-modal--error .publication-modal__header {
    background: #b91c1c;
}

.pm-logout-button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;         
    background: #ED8A0A;;
    box-shadow: 0 6px 18px #0000004d;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pm-logout-button:hover {
    background: #FFFFFF;;
    color: #ED8A0A;
    box-shadow: none;
    transform: translateY(-1px);
}

.pm-logout-button:active {
    transform: translateY(0);
}

.publication-form .pm-btn-preview {
    background-color: #f6f7f7 !important;
    border: 1px solid #7e8993 !important;
    color: #1d2327 !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.15) !important;
    padding: 6px 14px;
    height: auto;
    line-height: 1.2;
    border-radius: 3px;
}

.publication-form .pm-btn-preview:hover,
.publication-form .pm-btn-preview:focus {
    background-color: #f0f0f1 !important;
    border-color: #757575 !important;
    color: #1d2327 !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.2) !important;
    outline: none;
}

.publication-form .pm-btn-preview:active {
    background-color: #dcdcde !important;
    border-color: #757575 !important;
    box-shadow: inset 0 1px 0 rgba(0,0,0,.15) !important;
}


.pm-search-form {
    background-color: #e8ecf5;
    padding: 25px;
    border-radius: 4px;
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 30px;
}

.pm-search-row {
    display: flex;
    flex-direction: column;
}

.pm-search-row--full-width {
    grid-column: 1 / -1;
}

.pm-search-row label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    color: #333;
    margin-left: 8px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pm-search-form input[type="text"],
.pm-search-form input[type="date"],
.pm-search-date-range .pm-date-input {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-search-form input[type="text"]:focus,
.pm-search-form input[type="date"]:focus,
.pm-search-form select:focus,
.pm-search-date-range .pm-date-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 6px 18px #2563eb33;
}

.pm-search-form input[type="text"]::placeholder {
    color: #999;
    opacity: 0.7;
}

.pm-search-form select {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pm-search-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pm-date-input {
    flex: 1;
    min-width: 120px;
}

.pm-date-separator {
    color: #666;
    font-weight: 600;
    padding: 0 5px;
    user-select: none;
}

.pm-search-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.pm-search-submit {
    padding: 10px 35px;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    min-height: 38px;
}

.pm-search-submit:hover:not(:disabled) {
    background-color: #ED8A0A;
    box-shadow: 0 4px 10px #2563eb4d;
}

.pm-search-submit:active:not(:disabled) {
    background-color: #ED8A0A;
}

.pm-search-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pm-search-reset {
    padding: 10px 35px;
    background-color: #f3f4f6;
    color: #333;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    min-height: 38px;
}

.pm-search-reset:hover {
    background-color: #ED8A0A;
    color: #ffffff;
    box-shadow: 0 4px 10px #2563eb4d;
}

.pm-search-reset:active {
    color: #ffffff;
    background-color: #ED8A0A;
}

.pm-search-reset:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


.daily-publications {
    margin-top: 40px;
}

.daily-publications .daily-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.daily-publications p,
.daily-publications .daily-not {
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 30px;
    background-color: #f9fafb;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

.pm-search-form input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    filter: invert(0.2);
}

.pm-search-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

@media print {

    @page {
        margin: 1cm;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }

    body.printing > * {
        display: none !important;
    }

    body.printing > .print-only {
        display: block !important;
        position: static !important;
        margin: 0;
        padding: 10pt;
        font-size: 12pt;
        font-family: serif;
        background: #ffffff;
        color: #000000;
    }

    .no-print {
        display: none !important;
    }
}

@media screen and (max-width: 1024px) and (min-width: 769px) {
    .count-docs {
        font-size: 16px;
    }

    .pm-search-form {
        grid-template-columns: 1fr;
    }

    .pm-search-row--full-width {
        grid-column: 1;
    }
}

@media screen and (max-width: 768px) and (min-width: 481px) {
    .count-docs {
        font-size: 14px;
    }

    .pm-search-form {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .pm-search-row--full-width {
        grid-column: 1;
    }

    .pm-search-date-range {
        flex-direction: column;
        align-items: stretch;
    }

    .pm-date-input {
        width: 100%;
    }

    .pm-date-separator {
        display: none;
    }

    .pm-search-actions {
        grid-column: 1;
        flex-direction: column;
        gap: 10px;
    }

    .pm-search-submit,
    .pm-search-reset {
        width: 100%;
    }

    .publication-loader__spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #e5e7eb;
    }

    .publication-loader__text {
        font-size: 13px;
    }

    .publication-form {
        margin: 20px 10px;
        padding: 20px;
    }

    .publication-form select[name="gov_id"],
    .publication-form select[name="type_id"],
    .publication-form input[name="publication_number_display"],
    .publication-form input[name="document_date"],
    .publication-form input[name="document_number"] {
        width: 100%;
    }

    .pm-login-page-inner {
        max-width: 320px;
    }

    .pm-login-page #pm-login {
        padding: 44px 18px 24px;
    }

    .pm-login-page #pm-login h1 {
        font-size: 20px;
    }

    .pm-login-avatar {
        width: 64px;
        height: 64px;
        top: -40px;
        font-size: 28px;
    }
}

@media screen and (max-width: 480px) {
    .count-docs {
        font-size: 13px;
    }
}