/* =========================================================
   InfoDosar / modul rulare
   Prefix unic: idr-
   ========================================================= */

.idr-module {
    width: 100%;
    margin-top: 6px;
    color: #2f3a45;
    font-family: 'Ubuntu', Arial, Helvetica, sans-serif;
}

.idr-module *,
.idr-module *::before,
.idr-module *::after {
    box-sizing: border-box;
}

.idr-hidden {
    display: none !important;
}

.idr-module a,
.idr-module a:visited,
.idr-module a:hover,
.idr-module a:active {
    text-decoration: none;
}

.idr-card {
    background: #ffffff;
    border: 1px solid #dde6ef;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(19, 44, 72, 0.06);
    margin: 0 0 18px 0;
    padding: 20px;
}

.idr-card--intro {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.idr-card--menu {
    padding: 0;
    overflow: hidden;
    margin-top: 0;
}

.idr-card--content {
    min-height: 120px;
}

.idr-card--auth {
    margin-top: 0;
}

.idr-title-main {
    margin: 0 0 12px 0;
    color: #163a5f;
    font-size: 28px;
    line-height: 1.25;
    font-family: 'Droid Serif', Arial, Helvetica, sans-serif;
}

.idr-section-title {
    margin: 0 0 14px 0;
    color: #163a5f;
    font-size: 24px;
    line-height: 1.3;
    font-family: 'Droid Serif', Arial, Helvetica, sans-serif;
}

.idr-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: #506172;
}

.idr-menu-wrap {
    display: block !important;
    width: 100%;
    background: #0b4971;
    border-radius: 10px;
}

.idr-menu {
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.idr-menu__item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.idr-menu__link {
    display: block;
    padding: 14px 18px;
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.idr-menu__link:hover,
.idr-menu__link:focus {
    background: #116394;
    color: #ffd38a !important;
    text-decoration: none !important;
}

.idr-menu__link--active {
    background: #116394;
    color: #ffd38a !important;
}

.idr-form {
    width: 100%;
}

.idr-form__title {
    margin: 0 0 18px 0;
    color: #163a5f;
    font-size: 26px;
    line-height: 1.3;
    font-family: 'Droid Serif', Arial, Helvetica, sans-serif;
}

.idr-form__intro {
    margin: -6px 0 18px 0;
    color: #5a6d7e;
    font-size: 14px;
    line-height: 1.7;
}

.idr-form__group {
    margin-bottom: 16px;
}

.idr-form__label {
    display: block;
    margin: 0 0 7px 0;
    color: #23435f;
    font-size: 14px;
    font-weight: 600;
}

.idr-form__input {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #c8d6e3;
    border-radius: 8px;
    background: #ffffff;
    color: #243444;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.idr-form__input:focus {
    border-color: #2f80c3;
    box-shadow: 0 0 0 3px rgba(47, 128, 195, 0.12);
}

.idr-form__actions {
    margin-top: 10px;
}

.idr-form__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e1e8f0;
}

.idr-link-action {
    color: #1d6fa5 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

.idr-link-action:hover,
.idr-link-action:focus {
    text-decoration: underline !important;
}

.idr-link-action--active {
    color: #163a5f !important;
}

.idr-btn {
    display: inline-block;
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.idr-btn:hover,
.idr-btn:focus {
    transform: translateY(-1px);
    text-decoration: none;
}

.idr-btn--primary {
    background: #1e79b7;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(30, 121, 183, 0.18);
}

.idr-btn--primary:hover,
.idr-btn--primary:focus {
    background: #16679d;
    color: #ffffff !important;
}

.idr-btn--secondary {
    background: #eef5fb;
    color: #1e5f91 !important;
    border: 1px solid #cfe0f0;
}

.idr-btn--secondary:hover,
.idr-btn--secondary:focus {
    background: #ddebf7;
    color: #124b77 !important;
}

.idr-btn--small {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
}

.idr-is-loading {
    opacity: 0.8;
    pointer-events: none;
}

.idr-notify-area {
    margin-bottom: 16px;
}

.idr-notify {
    padding: 13px 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.6;
}

.idr-notify--info {
    background: #eef5ff;
    color: #124a7a;
    border-color: #cfe0f5;
}

.idr-notify--success {
    background: #edf9ed;
    color: #216b21;
    border-color: #cce8cc;
}

.idr-notify--warning {
    background: #fff8e5;
    color: #8a6d1d;
    border-color: #f1dfb4;
}

.idr-notify--error {
    background: #fff0f0;
    color: #9b1c1c;
    border-color: #f0caca;
}

.idr-profile-box {
    width: 100%;
}

.idr-captcha-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.idr-captcha-image {
    display: inline-block;
    border: 1px solid #d6dee8;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}

.idr-step-label {
    display: inline-block;
    margin-left: 6px;
    color: #5d748b;
    font-size: 15px;
    font-family: 'Ubuntu', Arial, Helvetica, sans-serif;
}

.idr-list-header {
    margin-bottom: 10px;
}

.idr-loading-box {
    padding: 16px 18px;
    border: 1px dashed #c7d6e4;
    border-radius: 8px;
    background: #f8fbfe;
    color: #557086;
    font-size: 14px;
}

.idr-module .listadosare {
    width: 100%;
    border-collapse: collapse;
}

.idr-module .listadosare td {
    padding: 8px 10px;
    vertical-align: top;
}

.idr-module .data-grid {
    background: #ffffff;
}

.idr-module .data-grid a {
    font-size: 13px;
    font-family: Tahoma, Verdana, sans-serif;
    color: #3768c1;
    text-align: left;
}

.idr-module #dosarecontainer ul,
.idr-module #dosarecontainer li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.idr-module table {
    max-width: 100%;
}

.idr-module img {
    max-width: 100%;
    height: auto;
}

@media screen and (max-width: 920px) {
    .idr-menu {
        flex-direction: column;
    }

    .idr-menu__link {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .idr-title-main {
        font-size: 24px;
    }

    .idr-form__title,
    .idr-section-title {
        font-size: 22px;
    }
}

@media screen and (max-width: 640px) {
    .idr-module {
        margin-top: 2px;
    }

    .idr-card {
        padding: 16px;
        border-radius: 8px;
    }

    .idr-form__links {
        flex-direction: column;
        gap: 10px;
    }

    .idr-btn {
        width: 100%;
    }

    .idr-btn--small {
        width: auto;
    }

    .idr-title-main {
        font-size: 22px;
    }

    .idr-form__title,
    .idr-section-title {
        font-size: 20px;
    }
}
.idr-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.idr-data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.idr-data-table th,
.idr-data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e3ebf3;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.5;
}

.idr-data-table th {
    background: #f5f9fc;
    color: #23435f;
    font-weight: 700;
}

.idr-data-table tr.data-row-odd td {
    background: #fbfdff;
}

.idr-empty-state {
    padding: 16px 18px;
    border: 1px dashed #c7d6e4;
    border-radius: 8px;
    background: #f8fbfe;
    color: #557086;
    font-size: 14px;
}

.idr-action-muted {
    color: #8a97a3;
    font-size: 14px;
}
/* =========================================
   LISTA DOSARE - rafinare butoane + mobil
========================================= */

.idr-data-table th:last-child,
.idr-data-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

.idr-action-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 190px;
}

.idr-btn {
    appearance: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12.5px;
    line-height: 1.25;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    min-height: 38px;
    box-shadow: none;
}

.idr-btn--primary {
    background: linear-gradient(135deg, #0079c1, #0a5fa8);
    color: #fff;
    border: 1px solid rgba(0, 121, 193, 0.9);
    box-shadow: 0 6px 14px rgba(0, 121, 193, 0.16);
}

.idr-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 121, 193, 0.20);
}

.idr-btn--danger {
    background: #fff7f7;
    color: #c93030;
    border: 1px solid #efc9c9;
}

.idr-btn--danger:hover {
    background: #fff0f0;
}

.idr-btn--success-muted {
    background: #f1f8f3;
    color: #2d7a46;
    border: 1px solid #cfe4d6;
}

.idr-btn--primary,
.idr-btn--danger,
.idr-btn--success-muted {
    min-width: 175px;
    text-align: center;
    justify-content: center;
}

/* tabel mai aerisit pe desktop */
.idr-data-table thead th {
    padding: 13px 14px;
    font-size: 13px;
}

.idr-data-table tbody td {
    padding: 14px 14px;
    font-size: 13px;
}

/* numar dosar mai elegant */
.idr-dosar-link {
    color: #2e63c7;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.idr-dosar-link:hover {
    text-decoration: underline;
}

/* instanta */
.idr-instanta-text {
    color: #4f6583;
    font-style: italic;
    line-height: 1.45;
}

/* =========================================
   TABLETĂ
========================================= */
@media (max-width: 900px) {
    .idr-data-table thead th,
    .idr-data-table tbody td {
        padding: 12px 10px;
        font-size: 12.5px;
    }

    .idr-action-stack {
        min-width: 160px;
        gap: 8px;
    }

    .idr-btn {
        min-width: 155px;
        min-height: 36px;
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* =========================================
   MOBIL
========================================= */
@media (max-width: 700px) {
    .idr-table-wrap {
        overflow-x: visible;
    }

    .idr-data-table,
    .idr-data-table thead,
    .idr-data-table tbody,
    .idr-data-table tr,
    .idr-data-table th,
    .idr-data-table td {
        display: block;
        width: 100%;
    }

    .idr-data-table thead {
        display: none;
    }

    .idr-data-table {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }

    .idr-data-table tbody tr {
        background: #ffffff;
        border: 1px solid #e6edf5;
        border-radius: 14px;
        margin-bottom: 14px;
        padding: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    }

    .idr-data-table tbody tr.data-row-odd {
        background: #ffffff;
    }

    .idr-data-table tbody td {
        border: 0;
        padding: 7px 0;
        white-space: normal;
    }

    .idr-data-table tbody td::before {
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #6b7a8c;
    }

    .idr-data-table tbody td:nth-child(1)::before {
        content: "Nr. dosar";
    }

    .idr-data-table tbody td:nth-child(2)::before {
        content: "Instanță";
    }

    .idr-data-table tbody td:nth-child(3)::before {
        content: "Data modificării";
    }

    .idr-data-table tbody td:nth-child(4)::before {
        content: "Acțiuni";
    }

    .idr-action-stack {
        min-width: 100%;
        width: 100%;
        gap: 8px;
        margin-top: 2px;
    }

    .idr-btn,
    .idr-btn--primary,
    .idr-btn--danger,
    .idr-btn--success-muted {
        width: 100%;
        min-width: 100%;
        min-height: 38px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .idr-dosar-link {
        display: inline-block;
        font-size: 15px;
        line-height: 1.35;
    }

    .idr-instanta-text {
        display: inline-block;
        font-size: 14px;
    }
}
/* =========================================================
   CONT USER NEW - completări
   ========================================================= */

.idr-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 18px 0;
}

.idr-stat-card {
    background: #f8fbff;
    border: 1px solid #dbe6f2;
    border-radius: 10px;
    padding: 18px;
}

.idr-stat-card__label {
    font-size: 13px;
    line-height: 1.4;
    color: #5a6f84;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-weight: 700;
}

.idr-stat-card__value {
    font-size: 30px;
    line-height: 1.1;
    color: #163a5f;
    font-weight: 700;
    font-family: 'Droid Serif', Arial, Helvetica, sans-serif;
    margin-bottom: 6px;
}

.idr-stat-card__meta {
    font-size: 14px;
    line-height: 1.5;
    color: #607487;
}

.idr-split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.idr-subcard {
    background: #ffffff;
    border: 1px solid #dde6ef;
    border-radius: 10px;
    padding: 18px;
}

.idr-subcard__title {
    margin: 0 0 14px 0;
    color: #163a5f;
    font-size: 20px;
    line-height: 1.3;
    font-family: 'Droid Serif', Arial, Helvetica, sans-serif;
}

.idr-mini-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.idr-mini-list__item {
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eef5;
}

.idr-mini-list__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.idr-mini-list__title {
    margin-bottom: 5px;
    color: #163a5f;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.idr-mini-list__meta {
    color: #607487;
    font-size: 13px;
    line-height: 1.55;
}

@media (max-width: 920px) {
    .idr-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .idr-split-grid {
        grid-template-columns: 1fr;
    }
}
.idr-page-flash-wrap {
    margin: 0 0 16px 0;
}

.idr-page-flash {
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
    border: 1px solid transparent;
}

.idr-page-flash--success {
    background: #edf8f0;
    border-color: #b7dfc0;
    color: #1f5f2b;
}

.idr-page-flash--error {
    background: #fdeeee;
    border-color: #efb6b6;
    color: #8f1f1f;
}

.idr-page-flash--warning {
    background: #fff8e8;
    border-color: #ecd9a3;
    color: #8a6512;
}

.idr-page-flash--info {
    background: #eef6ff;
    border-color: #bfd8f4;
    color: #184d80;
}
.idr-modal-overlay {
    display:none;
    position:fixed;
    top:0; left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    z-index:999;
}

.idr-modal {
    display:none;
    position:fixed;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    background:#fff;
    border-radius:10px;
    width:420px;
    max-width:90%;
    z-index:1000;
}

.idr-modal-content {
    padding:24px;
    text-align:center;
}
/* =========================================================
   Urmărește dosar - pagină dosar + modal
   ========================================================= */

.idr-follow-top-wrap,
.idr-follow-bottom-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 14px 0 18px 0;
}

.idr-follow-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    text-decoration: none !important;
}

.idr-follow-btn--watched {
    background: #eef8f1 !important;
    border: 1px solid #cfe6d4 !important;
    color: #2f7a47 !important;
    cursor: default !important;
}

.idr-follow-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 28, 44, 0.58);
    z-index: 9998;
}

.idr-follow-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.idr-follow-modal__dialog {
    pointer-events: auto;
    width: 92%;
    max-width: 560px;
    margin: 70px auto 0 auto;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(10, 28, 48, 0.28);
    border: 1px solid #dbe6f0;
    position: relative;
    overflow: hidden;
}

.idr-follow-modal__body {
    padding: 28px 26px;
}

.idr-follow-modal__title {
    margin: 0 0 14px 0;
    color: #163a5f;
    font-size: 28px;
    line-height: 1.25;
    font-family: 'Droid Serif', Arial, Helvetica, sans-serif;
}

.idr-follow-modal__text {
    margin: 0;
    color: #42576c;
    font-size: 16px;
    line-height: 1.8;
}

.idr-follow-modal__actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.idr-follow-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    color: #5a6d80;
    cursor: pointer;
}

.idr-follow-modal__close:hover {
    color: #163a5f;
}

@media (max-width: 640px) {
    .idr-follow-top-wrap,
    .idr-follow-bottom-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .idr-follow-btn,
    .idr-follow-bottom-wrap .urmareste,
    .idr-follow-bottom-wrap .sesizare {
        width: 100%;
        text-align: center;
    }

    .idr-follow-modal__dialog {
        width: calc(100% - 20px);
        margin-top: 36px;
    }

    .idr-follow-modal__body {
        padding: 22px 16px;
    }

    .idr-follow-modal__title {
        font-size: 23px;
    }

    .idr-follow-modal__text {
        font-size: 15px;
        line-height: 1.7;
    }
}