
/* 
 * This CSS file will be applied after all the built in styles.
 * 
 * CSS files are loaded in alphabetic order, hence the  "zzz" in 
 * the filename to force it to load after the other css files!
 * 
 * Add any local over-rides here. 
 * 
 * To totally replace a system css file, create a file of the same 
 * name in this directory. eg. messages.css
 * 
*/
/* Force Login links to be white in the header */
.login-status a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
}
.login-status a:hover {
    color: #ffcc00 !important; /* Turn yellow on hover */
}

/* --- LATEST ADDITIONS STYLING (UNAIR Style) --- */

/* The Blue Header Bars (Today, Yesterday, etc.) */
.ep_view_group_by {
    background: linear-gradient(to right, #004aad, #0078d7); /* UTM Blue */
    color: white;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 5px solid #f6d704; /* Yellow Accent */
}

/* The List Items */
.ep_view_group dd {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #ccc;
}

/* Clean up the links */
.ep_view_group dd a {
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: #004aad;
}
.ep_view_group dd a:hover {
    color: #f6d704;
}

/* --- MODERN ADVANCED SEARCH FORM --- */

/* Hide the old help icons to clean up clutter */
.ep_search_fields .ep_form_help_icon {
    display: none; 
}

/* Style the rows */
.ep_search_fields tr {
    border-bottom: 1px solid #eee;
}
.ep_search_fields th {
    text-align: right;
    padding: 15px;
    width: 200px;
    color: #444;
    background-color: #f9f9f9;
    font-weight: 700;
}
.ep_search_fields td {
    padding: 15px;
    background-color: #fff;
}

/* Style Inputs */
.ep_search_fields input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
.ep_search_fields input[type="text"]:focus {
    border-color: #004aad;
    box-shadow: 0 0 5px rgba(0,74,173,0.3);
}

/* Style Select Boxes / Lists */
.ep_search_fields select, .ep_search_fields select[multiple] {
    width: 100%;
    max-width: 500px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* --- BROWSE VIEW HEADERS (Letters A, B, C...) --- */
h3.ep_view_group_heading {
    background: linear-gradient(to right, #004aad, #0078d7); /* UTM Blue Gradient */
    color: white;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 5px solid #f6d704; /* Yellow Accent */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =========================================================
   HALAMAN DETAIL ITEM (summary page)
   Mengikuti tata letak rujukan ISI: tabel metadata bergaris,
   daftar file vertikal, abstrak selebar konten.
   ========================================================= */

.ep_summary_content_main {
    padding: 0 0 20px 0;
}

/* --- sitasi di atas --- */
.ep_summary_citation {
    margin-bottom: 1.2em;
    line-height: 1.6;
}

/* --- daftar file --- */
.ep_summary_files {
    margin: 1em 0 1.5em 0;
}

.ep_summary_page_document {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
}

.ep_doc_icon {
    flex: 0 0 auto;
    padding-top: 2px;
}

.ep_doc_info {
    flex: 1 1 auto;
    line-height: 1.55;
}

.ep_document_link {
    color: #004aad;
    text-decoration: none;
}

.ep_document_link:hover {
    text-decoration: underline;
}

/* --- official url --- */
.ep_summary_official_url {
    margin: 1em 0;
    line-height: 1.6;
}

.ep_summary_official_url a,
.ep_summary_table a {
    color: #004aad;
    text-decoration: none;
}

.ep_summary_official_url a:hover,
.ep_summary_table a:hover {
    text-decoration: underline;
}

/* --- judul bagian (Abstract, Actions) --- */
.ep_summary_h2 {
    font-size: 1.15em;
    font-weight: bold;
    color: #1a1a1a;
    margin: 1.4em 0 0.6em 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

/* --- abstrak --- */
.ep_summary_abstract {
    text-align: left;
    line-height: 1.75;
    margin: 0 0 1.6em 0;
    color: #222;
}

/* --- tabel metadata utama --- */
table.ep_summary_table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0 1.8em 0;
    font-size: 0.95em;
}

table.ep_summary_table tr {
    border-bottom: 1px solid #d8d8d8;
}

table.ep_summary_table tr:first-child {
    border-top: 1px solid #d8d8d8;
}

table.ep_summary_table th {
    width: 190px;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
    color: #333;
    background: #f7f7f7;
    padding: 8px 10px;
    border-right: 1px solid #e4e4e4;
}

table.ep_summary_table td {
    vertical-align: top;
    padding: 8px 12px;
    color: #222;
    line-height: 1.6;
}

table.ep_summary_table tr:hover td,
table.ep_summary_table tr:hover th {
    background: #fbfbfb;
}

/* --- sub-tabel Creators / Contributors --- */
table.ep_summary_people {
    border-collapse: collapse;
    width: 100%;
}

table.ep_summary_people td {
    padding: 2px 0;
    border: none;
    vertical-align: top;
}

table.ep_summary_people td.ep_person_name {
    width: auto;
    padding-right: 10px;
}

table.ep_summary_people td.ep_person_id {
    color: #555;
    font-size: 0.92em;
    white-space: nowrap;
}

/* --- actions --- */
.ep_summary_page_actions {
    margin: 0.5em 0 1.5em 0;
}

.ep_summary_page_actions dt {
    display: inline-block;
    margin-right: 6px;
}

.ep_summary_page_actions dd {
    display: inline;
    margin: 0 0 0 0;
}

.ep_summary_page_actions dd:after {
    content: "";
    display: block;
    margin-bottom: 4px;
}

/* --- responsif: label tabel jadi bertumpuk di layar kecil --- */
@media (max-width: 640px) {
    table.ep_summary_table th,
    table.ep_summary_table td {
        display: block;
        width: auto;
        border-right: none;
    }
    table.ep_summary_table th {
        border-bottom: 1px solid #e4e4e4;
        padding-bottom: 4px;
    }
    table.ep_summary_table td {
        padding-top: 4px;
        padding-bottom: 10px;
    }
}

/* =========================================================
   Tabel compound (Creators / Contributors) di halaman item
   Mengikuti rujukan: grid bergaris, header abu muda tebal
   ========================================================= */

table.ep_summary_table td.ep_summary_people {
    padding: 6px 10px;
}

.ep_compound {
    border: 1px solid #999;
    border-collapse: collapse;
    display: inline-table;
    font-size: 0.95em;
    margin: 2px 0;
}

.ep_compound_header_row {
    display: table-row;
    background: #ececec;
}

.ep_compound_header_cell {
    display: table-cell;
    border: 1px solid #999;
    padding: 5px 10px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.ep_compound_data_row {
    display: table-row;
}

.ep_compound_data_row_cell {
    display: table-cell;
    border: 1px solid #999;
    padding: 5px 10px;
    vertical-align: top;
    color: #222;
}

.ep_compound_data_row:hover .ep_compound_data_row_cell {
    background: #fafafa;
}

.ep_compound .person_name {
    color: #222;
}

/* di layar kecil, tabel compound boleh menggulir mendatar */
@media (max-width: 640px) {
    .ep_compound {
        display: table;
        width: 100%;
        font-size: 0.9em;
    }
    .ep_compound_header_cell,
    .ep_compound_data_row_cell {
        padding: 4px 6px;
    }
}
