.files{
    margin-top: 15px;
}
.bg-info{
    padding: 20px;
}
.addDoclist{
    width:550px;}
.popover{margin-right: 100px; width: 500px;}
.popover-title{background-color: #5cb85c}
.popover-left{margin-left: -200px;}
.download-document{cursor: pointer;}
.modal-header{
    color: #fff;
    background: #00a65a;
}

/* Documents List Modern Styles */
.documents-container {
    padding-top: 20px;
    padding-bottom: 40px;
    background-color: #f9f9f9;
}

.documents-header {
    margin-bottom: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 5px solid #3c8dbc;
    position: relative;
}

.documents-header p {
    color: var(--oe-muted-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.documents-header .lead {
    color: var(--oe-muted-color);
    margin-bottom: 15px;
    font-size: var(--oe-lead-size);
    font-weight: 500;
}

.documents-title {
    font-size: var(--oe-h2-size);
    font-weight: 700;
    color: var(--oe-base-color);
    margin-bottom: 10px;
    margin-top: 0;
}

.documents-header-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.document-list-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.document-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.document-list-header {
    background: #f8f9fa;
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.document-list-header h4 {
    margin: 0;
    font-weight: 700;
    color: var(--oe-base-color);
    font-size: var(--oe-h4-size);
}

.document-list-body {
    padding: 0;
}

.document-row {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid #f4f4f4;
    transition: background-color 0.2s;
}

.document-row:last-child {
    border-bottom: none;
}

.document-row:hover {
    background-color: #fcfdfe;
}

.document-number {
    width: 40px;
    font-weight: 600;
    color: #999;
    font-size: 14px;
}

.document-main {
    flex-grow: 1;
}

.document-title {
    font-size: 16px;
    font-weight: 600;
    color: #3c8dbc;
    margin-bottom: 2px;
}

.document-title a {
    color: inherit;
    text-decoration: none;
}

.document-title a:hover {
    text-decoration: underline;
}

.document-code {
    font-weight: 700;
    color: #555;
}

.document-date {
    font-size: 13px;
    color: #888;
    margin-left: 5px;
}

.document-summary {
    font-size: 13px;
    color: #777;
    margin-top: 4px;
    line-height: 1.4;
}

.document-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.status-draft {
    background-color: #f39c12;
    color: #fff;
}

.status-pending {
    background-color: #00c0ef;
    color: #fff;
}

.document-download-btn {
    width: 45px;
    text-align: center;
    color: #3c8dbc;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.document-download-btn:hover {
    color: #286090;
    transform: scale(1.1);
}

.document-remove-btn {
    width: 120px;
    text-align: right;
    font-size: 12px;
    color: #dd4b39;
    cursor: pointer;
}

.document-remove-btn:hover {
    text-decoration: underline;
}

.document-stats-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px 25px;
    margin-top: 20px;
    border-top: 3px solid #d2d6de;
}

.document-stats-item {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.document-stats-label {
    font-weight: 600;
    color: #444;
    width: 100px;
    display: inline-block;
}

.download-panel {
    margin-top: 30px;
}

.file-download-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    padding: 15px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: box-shadow 0.2s;
}

.file-download-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.file-icon-wrapper {
    margin-right: 15px;
}

.file-icon-wrapper img {
    width: 32px;
    height: 32px;
}

.file-details {
    flex-grow: 1;
}

.file-link {
    font-weight: 600;
    color: #3c8dbc;
    display: block;
}

.file-info {
    font-size: 11px;
    color: #999;
}

.documents-controls {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.documents-controls .form-group {
    margin-bottom: 10px;
}

.documents-controls .form-inline {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 34px;
}

.documents-controls .select2-container--bootstrap .select2-selection {
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid #d2d6de;
    height: 34px;
}

.document-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #3c8dbc;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.document-card-body {
    padding: 20px;
    display: flex;
    align-items: center;
}

.document-icon {
    font-size: 24px;
    color: #3c8dbc;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.document-info {
    flex-grow: 1;
}

.document-title-link {
    font-size: var(--oe-h4-size);
    font-weight: 700;
    color: #3c8dbc;
    display: block;
    margin-bottom: 5px;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.3;
}

.document-title-link:hover {
    color: #286090;
    text-decoration: underline;
}

.document-meta {
    font-size: 13px;
    color: #666;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.document-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.document-meta i {
    font-size: 14px;
}

.document-tags {
    margin-top: 8px;
}

.document-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 11px;
    color: #555;
    margin-right: 5px;
}

.document-tag:hover {
    background: #e0e0e0;
    text-decoration: none;
    color: #333;
}

.document-actions {
    margin-left: 20px;
}

.btn-add-doc {
    background-color: #00a65a;
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-add-doc:hover {
    background-color: #008d4c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pagination-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* Doclist Specific Styles */
.doclist-group-section {
    margin-bottom: 40px;
}

.doclist-group-header {
    border-bottom: 2px solid #3c8dbc;
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.doclist-group-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.doclist-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #00a65a;
}

.doclist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.doclist-card-body {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doclist-main-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.doclist-icon {
    font-size: 24px;
    color: #00a65a;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
}

.doclist-content {
    flex-grow: 1;
}

.doclist-title-link {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 2px;
}

.doclist-title-link:hover {
    color: #00a65a;
    text-decoration: none;
}

.doclist-description {
    font-size: 13px;
    color: #777;
    margin-bottom: 0;
}

.doclist-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-edit-doclist {
    color: #3c8dbc;
    padding: 5px;
    transition: color 0.2s;
}

.btn-edit-doclist:hover {
    color: #286090;
}

.groups-collapsible-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.groups-collapsible-header {
    background: #f8f9fa;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.groups-collapsible-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #444;
}

.groups-collapsible-body {
    padding: 20px;
}

.group-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.group-link-item {
    background: #f0f4f8;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    color: #3c8dbc;
    transition: all 0.2s;
    border: 1px solid #d1dce5;
}

.group-link-item:hover {
    background: #3c8dbc;
    color: #fff;
    text-decoration: none;
    border-color: #3c8dbc;
}

.back-to-top-container {
    margin-top: -10px;
    margin-bottom: 30px;
    text-align: right;
}

.back-to-top-link {
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s;
}

.back-to-top-link:hover {
    color: #3c8dbc;
}

/*
align with institutes
 */
.search-container {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-field {
    flex-grow: 1;
    min-width: 250px;
}

.filter-field {
    width: 200px;
}

.limit-field {
    width: 100px;
}


