/* =========================================================
  THIS CSS support all but for mobile need to correct the setting of browser to desktop site
  CUSTOMIZE THEME RECCOMENDE. e.g latest JAZZMIN theme. ALSO check for RESPONSIVE UI - to support for all device. 
========================================================= */
/* =========================================================
   GLOBAL NAV / LANGUAGE SWITCHER
========================================================= */
#nav-global {
    display: flex;
    align-items: center;
    gap: 0;
}
.language-switcher {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.language-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0 3px;
    font: inherit;
    color: var(--link-fg);
    cursor: pointer;
}
.language-link:hover {
    text-decoration: underline;
}
.language-link.selected {
    font-weight: bold;
    cursor: default;
    text-decoration: none;
}
.separator {
    margin: 0 4px;
    color: var(--hairline-color);
}

/* =========================================================
   DASHBOARD LAYOUT
========================================================= */
#content-main {
    /* display: grid; */ 
    gap: 18px;
    align-items: start;
     display: flex;
    flex-wrap: wrap;
}
/* Module container */
/* #content-main > .module {
    box-sizing: border-box;
    margin: 0;
} */
/* =========================================================
   MODULE TABLE
========================================================= */
#content-main .module table {
    width: 100%;
    border-collapse: collapse;
}
#content-main>div.module {
    flex: 1 1 300px;
    /* Each module grows equally, base width 300px */
    min-width: 250px;
    /* Prevent too small on narrow screens */
    box-sizing: border-box;
    margin-bottom: 2px;
}
 
/* =========================================================
   MODULE HEADER / CAPTION
========================================================= */
#content-main .module table caption {
    background: rgb(65, 118, 144);
    color: white;
    padding: 10px 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 4px 4px 0 0;
    user-select: none;
    transition: background 0.25s ease,
                transform 0.15s ease;
}
#content-main .module table caption:hover {
    background: #2c3e50;
}

/* Caption link styling */

#content-main .module caption a.section {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
}

/* =========================================================
   COLLAPSE ARROW
========================================================= */
.collapse-arrow {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    margin-right: 8px;

    font-size: 0.8em;

    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.is-collapsed .collapse-arrow {
    transform: rotate(-90deg);
}

/* =========================================================
   MODULE BODY
========================================================= */
#content-main .module tbody {
    display: table-row-group;
    transition: opacity .25s ease;
}
.is-collapsed tbody {
    display: none !important;
}

/* =========================================================
   TABLE ROWS
========================================================= */

#content-main .module th,
#content-main .module td {

    padding: 8px 10px;
    vertical-align: middle;
}

#content-main .module th {
    font-weight: 500;
}

/* =========================================================
   OBJECT TOOLS (ADD BUTTONS)
========================================================= */
 .object-tools {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 20px 0; /* Space between tools and the modules below */
    list-style: none;
    padding: 0;
    width: 100%; /* Ensure it spans the full width of the container */
}
.object-tools li {
    display: block;
    margin: 0;
}
.object-tools a {
    background: var(--button-bg, #79aec8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.object-tools a:hover {
    background: #417690;
}

/* =========================================================
   RESPONSIVE IMPROVEMENTS
========================================================= */
@media (max-width: 900px) {

    #content-main {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

}
@media (max-width: 600px) {

    #content-main {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   MINOR ADMIN POLISH
========================================================= */
#content-main h1,
#content-main h2 {
    display: flex;
    align-items: center;
}
#content-main h2 span {
    transition: transform .2s ease;
}
/* =========================MINIMAL CSS========================================= */
/* Match Django admin top-right nav style
#nav-global {
    display: flex;
    align-items: center;
    gap: 0;
}
.language-switcher {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.language-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0 2px;
    font: inherit;
    color: var(--link-fg);
    cursor: pointer;
}
.language-link:hover {
    text-decoration: underline;
}
.language-link.selected {
    font-weight: bold;
    cursor: default;
    text-decoration: none;
}

.separator {
    margin: 0 4px;
    color: var(--hairline-color);
}

#content-main h2 {
    display: flex;
    align-items: center;
}
#content-main h2 span {
    transition: transform 0.2s;
}
#content-main {
    display: flex;
    flex-wrap: wrap; 
    gap: 80px; 
}
#content-main>div.module {
    flex: 1 1 300px;
    min-width: 250px;
    box-sizing: border-box;
    margin-bottom: 2px;
}

#content-main .module table {
    width: 100%;
}

#content-main .module table caption {
    background: rgb(65, 118, 144);
    color: white;
    padding: 10px 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 4px;
    transition: background 0.3s ease, transform 0.1s active;
    user-select: none;
    margin-bottom: 0px;
    width: 50%;
}

#content-main .module table caption:hover {
    background: #2c3e50;
}
.collapse-arrow {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.8em;
    width: 20px;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.is-collapsed .collapse-arrow {
    transform: rotate(-90deg);
}
#content-main .module tbody {
    transition: opacity 0.3s ease;
    display: table-row-group;
}

.is-collapsed tbody {
    display: none !important;
}
.object-tools {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 20px 0; 
    list-style: none;
    padding: 0;
    width: 100%; 
}
.object-tools li {
    display: block;
    margin: 0;
}
.object-tools a {
    background: var(--button-bg, #79aec8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.object-tools a:hover {
    background: #417690;
} */

 