body{
margin:0;
font-family:Arial, sans-serif;
background:#eef2f7;
color:#111827;
}

[hidden]{
display:none!important;
}

header{
background:#004a99;
color:white;
padding:28px 20px;
text-align:center;
}

.company-logo{
display:block;
width:auto;
height:76px;
max-width:220px;
object-fit:contain;
margin:0 auto 16px;
}

header p{
margin:0 0 8px;
font-size:14px;
letter-spacing:.08em;
text-transform:uppercase;
}

header h1{
margin:0;
font-size:32px;
line-height:1.15;
}

.container{
width:min(960px, calc(100% - 32px));
margin:32px auto;
}

.document-card{
display:flex;
flex-direction:column;
gap:10px;
width:min(360px, 100%);
min-height:132px;
box-sizing:border-box;
padding:22px;
background:white;
border-radius:8px;
box-shadow:0 3px 15px rgba(0,0,0,.2);
font-size:16px;
transition:.3s;
}

.document-card:hover{
transform:translateY(-5px);
}

.document-card strong{
font-size:24px;
line-height:1.2;
}

.document-card span:last-child{
color:#004a99;
font-weight:700;
}

.document-type{
width:max-content;
padding:5px 9px;
border-radius:6px;
background:#e8f1ff;
color:#004a99;
font-size:12px;
font-weight:700;
letter-spacing:.08em;
}

a{
text-decoration:none;
color:black;
}

.viewer-page{
background:#20242a;
}

.pdf-viewer{
min-height:100vh;
display:flex;
flex-direction:column;
}

.viewer-toolbar{
display:flex;
justify-content:space-between;
align-items:center;
gap:12px;
padding:12px 16px;
background:#111827;
}

.viewer-toolbar a,
.viewer-toolbar span{
color:white;
font-size:14px;
font-weight:700;
}

.canvas-viewer{
flex:1;
display:flex;
flex-direction:column;
min-height:0;
}

.canvas-shell{
flex:1;
overflow:auto;
padding:20px;
text-align:center;
background:#2f343b;
}

#pdf-canvas{
max-width:100%;
height:auto;
background:white;
box-shadow:0 8px 30px rgba(0,0,0,.35);
}

.pdf-controls{
display:flex;
align-items:center;
justify-content:center;
gap:10px;
padding:12px;
background:#111827;
}

.pdf-controls button{
min-height:42px;
padding:0 14px;
border:0;
border-radius:8px;
background:white;
color:#111827;
font-weight:700;
cursor:pointer;
}

.pdf-controls button:disabled{
opacity:.45;
cursor:not-allowed;
}

.pdf-controls span{
min-width:72px;
color:white;
font-weight:700;
text-align:center;
}

.pdf-error{
color:white;
padding:24px;
}

@media (max-width: 640px){
header{
padding:22px 16px;
}

.company-logo{
height:58px;
max-width:180px;
margin-bottom:14px;
}

header h1{
font-size:26px;
}

.container{
width:calc(100% - 24px);
margin:20px auto;
}

.document-card{
width:100%;
min-height:120px;
padding:20px;
}

.document-card strong{
font-size:22px;
}

.viewer-toolbar{
padding:12px;
}

.viewer-toolbar a,
.viewer-toolbar span{
font-size:13px;
}

.canvas-shell{
padding:12px;
}

.pdf-controls{
position:sticky;
bottom:0;
flex-wrap:wrap;
gap:8px;
}

.pdf-controls button{
flex:1 1 42%;
min-height:46px;
}

.pdf-controls span{
flex:1 1 100%;
order:-1;
}
}