:root{
    --p:#2b1260;
    --g:#d9aa2b;
    --bg:#f5f3f8;
    --red:#b8241a;
}

*{
    box-sizing:border-box;
}

html{
    min-height:100%;
}

body{
    margin:0;
    min-height:100vh;

    font-family:Arial,sans-serif;
    color:#1f1630;

    /*
    |--------------------------------------------------------------------------
    | SUURMAN BROTHERS GLOBAL BACKGROUND
    |--------------------------------------------------------------------------
    */

    background-color:var(--bg);
    background-image:url("/assets/logo-watermark.png");
    background-repeat:no-repeat;
    background-position:center 180px;
    background-size:500px auto;
    background-attachment:fixed;
}


/*
|--------------------------------------------------------------------------
| HEADER
|--------------------------------------------------------------------------
*/

header{
    min-height:84px;

    background:linear-gradient(
        90deg,
        #1d0c49,
        #412176
    );

    color:white;

    display:flex;
    align-items:center;

    padding:10px 5%;

    gap:14px;
}

header img{
    width:62px;
    height:62px;

    object-fit:contain;

    border-radius:50%;
}

header small{
    display:block;

    color:#f3d87b;

    margin-top:5px;
}

.spacer{
    flex:1;
}


/*
|--------------------------------------------------------------------------
| NAVIGATION
|--------------------------------------------------------------------------
*/

nav{
    padding:12px 5%;

    background:white;

    display:flex;

    gap:8px;

    flex-wrap:wrap;

    box-shadow:0 2px 10px #0001;
}

nav a,
.btn{
    background:#eee8f7;

    color:#241052;

    text-decoration:none;

    padding:10px 14px;

    border-radius:9px;

    border:0;

    cursor:pointer;
}

.btn.primary,
nav a:hover{
    background:var(--p);

    color:#fff;
}

.btn.danger{
    background:var(--red);

    color:white;
}


/*
|--------------------------------------------------------------------------
| MAIN CONTENT
|--------------------------------------------------------------------------
*/

main{
    max-width:1180px;

    margin:28px auto;

    padding:0 18px;
}


/*
|--------------------------------------------------------------------------
| DASHBOARD GRID
|--------------------------------------------------------------------------
*/

.grid{
    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(210px,1fr)
        );

    gap:14px;
}


/*
|--------------------------------------------------------------------------
| CARDS
|--------------------------------------------------------------------------
|
| Cards are slightly transparent so that the society logo can appear
| faintly behind them.
|
*/

.card{
    background:rgba(255,255,255,0.92);

    border-radius:15px;

    padding:18px;

    box-shadow:
        0 4px 18px
        rgba(0,0,0,0.04);

    margin-bottom:16px;
}


/*
|--------------------------------------------------------------------------
| LARGE DASHBOARD VALUES
|--------------------------------------------------------------------------
*/

.big{
    font-size:28px;

    color:var(--p);

    font-weight:bold;
}


/*
|--------------------------------------------------------------------------
| STATUS PILLS
|--------------------------------------------------------------------------
*/

.pill{
    display:inline-block;

    padding:6px 10px;

    border-radius:20px;

    background:#e1f4e8;
}


/*
|--------------------------------------------------------------------------
| WARNINGS
|--------------------------------------------------------------------------
*/

.warn{
    background:#fff0cc;

    border-radius:8px;

    padding:12px;
}


/*
|--------------------------------------------------------------------------
| SUCCESS
|--------------------------------------------------------------------------
*/

.ok{
    background:#daf2df;
}


/*
|--------------------------------------------------------------------------
| TABLES
|--------------------------------------------------------------------------
*/

table{
    width:100%;

    border-collapse:collapse;

    background:rgba(255,255,255,0.94);
}

.table th,
.table td{
    padding:11px;

    border-bottom:1px solid #eee;

    text-align:left;
}

.table th{
    background:#f0ebf6;
}


/*
|--------------------------------------------------------------------------
| FORMS
|--------------------------------------------------------------------------
*/

input,
select,
textarea{
    width:100%;

    padding:10px;

    border:1px solid #d8d2df;

    border-radius:8px;

    margin:5px 0 12px;

    background:white;
}

label{
    font-weight:bold;
}


/*
|--------------------------------------------------------------------------
| NOTICES
|--------------------------------------------------------------------------
*/

.notice{
    padding:12px;

    border-radius:8px;

    background:#fff0c9;

    margin:10px 0;
}


/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

footer{
    text-align:center;

    padding:30px;

    color:#777;
}


/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media(max-width:700px){

    header{
        height:auto;

        flex-wrap:wrap;
    }

    header img{
        width:52px;
        height:52px;
    }

    nav{
        overflow:auto;
    }

    .table{
        font-size:13px;
    }

    body{
        background-position:center 180px;

        background-size:320px auto;
    }
}
